Question
Create a java progam - Don't use Arreys - Please use simple if and else statement and while loops. - Create class name Grades -
Create a java progam
- Don't use Arreys
- Please use simple if and else statement and while loops.
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started