View the step-by-step solution to:

Grade Book A teacher has five students who have each taken four tests.

I need help with this java programming challenge:

8. 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.

Sign up to view the entire interaction

Top Answer

View the full answer
Marks_SnapShot_1.PNG

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online