Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in Java Write a Java program that asks the user to enter five test scores. The program should display a letter grade for each score

image text in transcribedin Java

Write a Java program that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score. The program must have two classes - ScoreGrade and ScoreGradeDrive classes. Write the following methods in the ScoreGrade class: calcAverageThis method should accept five test scores as arguments and return the average of the scores. determine Grade-This method should accept a test score as an argument and return a letter grade for the score, based on the following grading scale: Score 90-100 80-89 7079 60-69 Below 60 Letter Grade A B D F The ScoreGradeDrive class reads five test scores entered by the user, calls appropriate methods in the ScoreGrade class, and displays a letter grade for each score and the average test score. (5 pts)

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

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions