Question: Having difficulty with a java assignment. The book for the class is Introduction to Java Programming, Comprehensive Version Y. Daniel Liang & Prentice Hall 11th

Having difficulty with a java assignment. The book for the class is Introduction to Java Programming, Comprehensive Version Y. Daniel Liang & Prentice Hall 11th Edition / 2018. We are currently working in Chapter 7 Single-Dimensional Arrays,

Write a program that accepts a number of grades, prints each grades letter grade, the high and low grades and the average of the number of grades entered.

Note: please use you schools grading scale.

Constraints

The user can enter a number of grades from 1 to 99

The user can run the program as many times as they wish Requirements

Ask the user for a number of grades between 1 and 99

Use that number to allocate the size of a single-dimension array

Send that array to a method(1) that randomly selects grades (of type double) between 55 and 100 and places them into the array

Call another method(2) to output each grade from the array, assign it a number and a letter grade in the following format: Grade 1: 69.74 is a C-

Call another method(3) to output the lowest grade from the array

Call another method(4) to output the highest grade from the array

Call another method(5) to output the average of the grades in the array

Only method 2 can be a void method. The others must return a value

Implement a loop to allow the user to repeat the program

Use formatted output

Round results to 2 decimal places

This program will utilize code learned from Week 1 through Week 7

Hints

Make sure you round the values when determining the letter grade (Example: a 79.51 would be a B-, not a C+)

Notice in the sample output, the grade number begins at 1, not 0: Grade 1: ... Grade 2: ... etc.

Use your institutions grading scale to determine the letter grade

Expected Output

The sample output below has run three times in the loop.

Please enter a number of grades between 1 and 99: 6

The letter grades for each score are:

Grade 1: 69.74 is a C

Grade 2: 71.00 is a C-

Grade 3: 55.70 is an F

Grade 4: 71.55 is a C-

Grade 5: 67.75 is a D+

Grade 6: 80.87 is a B-

The lowest grade was: 55.70

The highest grade was: 80.87

The average is: 69.43

Run program again? (Y for Yes, N for No): y

Please enter a number of grades between 1 and 99: 3

The letter grades for each score are:

Grade 1: 59.97 is a D-

Grade 2: 68.61 is a D+

Grade 3: 86.60 is a B+

The lowest grade was: 59.97

The highest grade was: 86.60

The average is: 71.73

Run program again? (Y for Yes, N for No): Y

Please enter a number of grades between 1 and 99: 10

The letter grades for each score are:

Grade 1: 88.37 is a B+

Grade 2: 88.59 is a B+

Grade 3: 69.79 is a C-

Grade 4: 63.53 is a D

Grade 5: 99.05 is an A

Grade 6: 70.43 is a C-

Grade 7: 66.13 is a D

Grade 8: 59.54 is a D-

Grade 9: 67.35 is a D+

Grade 10: 91.41 is an A

The lowest grade was: 59.54

The highest grade was: 99.05

The average is: 76.42

Run program again? (Y for Yes, N for No): n

Thank you. Goodbye!

Below is our grading scale

A 93+ Outstanding 4.00

A- 90-92 Outstanding 3.67

B+ 87-89 High quality 3.33

B 83-86 High quality 3.00

B-80-82 High quality 2.67

C+ 77-79 Acceptable 2.33

C 73-76 Acceptable 2.00

C-70-72 Acceptable 1.67

D+ 67-69 Passing 1.33

D 63-66 Passing 1.00

D-60-62 Passing 0.67

F Below 60 Failing 0.00

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!