Question: This assignment was locked Apr 2 8 at 1 1 : 5 9 pm . Now that we have gone over exception handling and methods,

This assignment was locked Apr 28 at 11:59pm.
Now that we have gone over exception handling and methods, let's go back and create an improved version of Grade Tracker from week 3.
General Requirements - you should all know what these are. (Comment with your name, now all methods with Java Doc comments)
Specific Requirements:
The code must not crash. Use exception handling (try/catch code) to reject input like "qwerty" or "three point four" in response to the prompts.
The code must be modular. Write good methods and use them wisely.
The code must doing the comparison by rounding the decimal grade to one digit. So, if you enter 3.5 for the desired grade and 89.7 as the current percentage, then the code should show you are on track.
Specifically, put the code for the grade check into it's own method that returns a boolean - true if you are on track and false if your percentage is not on track. For example:
if ( gradeOnTrack( targetGrade, currentPercent)){
System.out.println("Congrats, you are one track...)
}
else {
....
}
Design Process:
How many methods? What should they do? What parameters should be passed into these methods? What should these methods return, if anything?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!