Question: Create a java progam - Please use if and else statement - Write in simplest form - Create class name Grades - Must be able

Create a java progam

- Please use if and else statement

- Write in simplest form

- Create class name Grades

- Must be able to read grades from keyboard until you entered -1.

- grades should be between 0 and 100. So 0 is valid grade.

- Decimals grade are fine

- When you entered -1, then user finishes inputing grades.

- User can enter many grades as they want

- Output the count of valid grades, and count of invalid grades

- Output the highest, lowest, and average grade

- entering repeatly decimals are fine. ex 1.3333

- Output list of valid grades

- output list of invalid grades

- All of the valid grade you output must have letter grade in paranthesis next to it. Example - Instead of 90, you must display 90 (A-)

Numbers Letters

93 - 100 A

90 - 92.9 A-

87 - 89.9 B+

83 - 86.9 B

80 - 82.9 B-

77 - 79.9 C+

70 - 76.9 C

60 - 69.9 D

0 - 59.9 F

Sample output -

Enter a grade: Enter a grade: Enter a grade: -2 Error. Grade must be between 0 and 100; or -1 to finish Enter a grade: -20 Error. Grade must be between 0 and 100; or -1 to finish Enter a grade: Enter a grade: Enter a grade: 110 Error. Grade must be between 0 and 100; or -1 to finish Enter a grade: -1 You entered 4 valid grades. You entered 3 invalid grades. Highest grade: Lowest grade: Average: Here are the 4 valid grades: - - - - Here are the 3 invalid grades: -

-

-

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!