Question: C++ code :- A teacher has five students who have taken four test. The teacher uses the following grading scale to assign a letter grade

C++ code :-

A teacher has five students who have taken four test. 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 program (C++) that uses an array of string objects to hold the five students names, an array of five characters to hold the five students letter grades, and five arrays of four doubles to hold each students set of test scores.

The program should allow the user to enter each students name and his or her four test scores. It should then calculate and display each students average test score and a letter grade based on the average.

Input Validation: Do not accept test score less than 0 or greater than 100

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!