CSE 142 Lecture Notes - Lecture 9: Prime Number

60 views6 pages
Verified Note

Document Summary

1 // a program to calculate a student"s overall grade in a course. 3 // notice the use of parameters and return values to capture the. 4 // structure of the program while still allowing main to retain. 16 double pct = hwscore(score1, poss1, score2, poss2, score3, poss3, score4, poss4); 20 // computes and return a student"s homework score. 22 // int score1 - the students score on hw1. 23 // int poss1 - the maximum possible score on hw1. 24 // int score2 - the students score on hw2. 25 // int poss2 - the maximum possible score on hw2. 26 // int score3 - the students score on hw3. 27 // int poss3 - the maximum possible score on hw3. 28 // int score4 - the students score on hw4. 29 // int poss4 - the maximum possible score on hw4. 30 public static double hwscore( int score1, int poss1, int score2, int poss2,

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions