Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions

Question

Evaluate lim

Answered: 1 week ago