Question: (java) Grade Book A teacher has five students who have each taken four tests. The teacher uses the following grading scale to assign a letter

(java) Grade Book

A teacher has five students who have each taken four tests. The teacher uses the following grading scale to assign a letter grade to a student, based on the average of his or her four test scores: Test Score Letter Grade 90-100 A 80-89 B 70-79 C 60-69 D 0-59 F Write a class that uses a String array or an ArrayList object to hold the five students' names, an array of five characters to hold the five students' letter grades, and five arrays of four doubles each to hold each student's set of test scores. You may find using a single 5x4 multi-dimensional array easier to manage instead of a separate array for each set of test scores. The class should have methods that return a specific student's name, the average test score, and a letter grade based on the average. Although averages are often floating-point values, you should cast the average test score to an integer when comparing with the grading scale. This reduces the possibility of error. Demonstrate the class in a program that allows the user to enter each student's name and his or her four test scores. It should then display each student's average test score and letter grade. Input Validation: Do not accept test scores less than zero or greater than 100.

Run the code like the following one:

Enter student 1 name:Louis Bleriot

Enter student Louis Bleriot's grade for test 1:80

Enter student Louis Bleriot's grade for test 2:80

Enter student Louis Bleriot's grade for test 3:80

Enter student Louis Bleriot's grade for test 4:80

Enter student 2 name:Howard Hughes

Enter student Howard Hughes's grade for test 1:45

Enter student Howard Hughes's grade for test 2:66

Enter student Howard Hughes's grade for test 3:24

Enter student Howard Hughes's grade for test 4:68

Enter student 3 name:Amelia Earhart

Enter student Amelia Earhart's grade for test 1:87

Enter student Amelia Earhart's grade for test 2:75

Enter student Amelia Earhart's grade for test 3:66

Enter student Amelia Earhart's grade for test 4:84

Enter student 4 name:Charles Lindenergh

Enter student Charles Lindenergh's grade for test 1:66

Enter student Charles Lindenergh's grade for test 2:65

Enter student Charles Lindenergh's grade for test 3:62

Enter student Charles Lindenergh's grade for test 4:62

Enter student 5 name:Manfred von Richtofen

Enter student Manfred von Richtofen's grade for test 1:97

Enter student Manfred von Richtofen's grade for test 2:98

Enter student Manfred von Richtofen's grade for test 3:99

Enter student Manfred von Richtofen's grade for test 4:100

=== Grade Book Data ===

Student name: Louis Bleriot

Average test score: 80.00

Letter grade: B

= = = = =

Student name: Howard Hughes

Average test score: 50.75

Letter grade: F

= = = = =

Student name: Amelia Earhart

Average test score: 78.00

Letter grade: C

= = = = =

Student name: Charles Lindenergh

Average test score: 63.75

Letter grade: D

= = = = =

Student name: Manfred von Richtofen

Average test score: 98.50

Letter grade: 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!