Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Test Average and Grade Write a program that asks the user to enter five test scores. The program should display a letter grade for each

image text in transcribed

Test Average and Grade Write a 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. Write the following methods in the program: calcAverage: This method should accept five test scores as arguments and return the average of the scores. determineGrade 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 Letter Grade 90-100 A 80-89 B 70-79 C 60-69 D Below 60 F Expected Output: Enter-test-grade for-student1:55 Enter-test-grade for-student 2-65 Enter-test-grade for-student-3:75 Enter-test-grade for-student-4:85 Enter-test-grade for-student-5:95 The letter-grades are-as-follows: Student 1-F Student 2-D Student-3:-C Student-4:-B Student 5:-A The average grade was:-75.00

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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

12.2 Explain how to organize supporting material.

Answered: 1 week ago