Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a java progam - Please use if and else statement - Create class name Grades - Must be able to read grades from keyboard

Create a java progam

- Please use if and else statement

- 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

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

Optimization And Data Science Trends And Applications 5th Airoyoung Workshop And Airo Phd School 2021 Joint Event

Authors: Adriano Masone ,Veronica Dal Sasso ,Valentina Morandi

1st Edition

3030862887, 978-3030862886

More Books

Students also viewed these Databases questions