Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

Students also viewed these Databases questions

Question

Strengthen your personal presence.

Answered: 1 week ago