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

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!