Question
CPS 2231 0 Summer review lab Write a Java Class that reads students grades and assigns grades based on the following grading scheme: Grade is
CPS 2231 0 Summer review lab
Write a Java Class that reads students grades and assigns grades based on the following grading scheme:
Grade is A if the score is greater than the highest score 10.
Grade is B if the score is greater than the highest score 20.
Grade is C if the score is greater than the highest score 30.
Grade is D if the score is greater than the highest score 40.
Grade is F otherwise.
The main method will do the following:
Prompt the user for 5 scores. The grades will all be integers.
Read in the grades and store them in an array.
public static int findMax(int [] theArray)
Sample output:
Enter grade
50
Enter grade
60
Enter grade
70
Enter grade
80
Enter grade
90
The highest grade is 90
Student Score Grade
======= ===== =====
0 50 F
1 60 D 2 70 C 3 80 B 4 90 A
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