Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Overall requirements: Provide a completet program that handles the entry and dis

ID: 3536060 • Letter: O

Question

Overall requirements:

Provide a completet program that handles the entry and display of homework scores. As part of your program, provide a YIHwScore class that contains the points earned on a particular homework and also the maximum possible points on that homework. In order to keep track of the overall average, the YIHwScore class also contains the total points earned on all homework cobmined and the toal points earned on all homework combined and the total possible points on all homework combined. In order to determine letter grades, the YIHwScore class specifies cutoff values for the A, B, C, and D letter grades.


More specifically, the YIHScore class shoudl contain these constants and variables:

------------------------------------------------------------------------------------------------

YourNameProg2.java


Provide a main driver method. It should:


------------------------------------------------------------------------------

YIHwScore.java


Within your YIHwScore class, include these requirements:


The YIHwScore class should contain a two-parameter consturctor that handles initializations for the earnedPoints and possiblePoints instance variables.


Implement a printGrade method that prints a particular homework's earned points, possible points, and letter grade. The letter grade is based on this scale: A >= 90%, B >= 80%, C >= 70%, D >= 60%, F <60%.


Implement a class method named printOverallGrade that prints the overall earned points, overall possible points, and overal letter grade.


Use appropriate modifiers for methods. The modifiers we've discussed so far are private, public, and static. Use helping methods when appropriate.


Sample Session:


On this homework, you earned 26.5 out of 30.0 possible points: B

On this homework, you earned 29.0 out of 27.5 possible points: A

On this homework, you earned 0.0 out of 20.0 possible points: F

On this homework, you earned 16.0 out of 20.0 possible points: B

On all homework, you earned 71.5 out of 97.5 possible points: C

Explanation / Answer

YourNameProg2 code: http://pastebin.com/ACgqDAyd (You will probably want to rename the class to your actual name) YIHwScore code: http://pastebin.com/meMTeZix If you have any questions, let me know.