Question: You are asked to write a program in C++ using visual studio that will enter test scores of 10 students into an array scores. Your

You are asked to write a program in C++ using visual studio that will enter test scores of 10 students into an array scores. Your program will compute the grade for each student. Grades will be stored in another array grades. Both the arrays have the size to accommodate 10 scores and 10 grades.

There are 10 students so you will use a constant NUM_SCORES equals to 10.

Use the following arrays:

scores - stores scores - type int

grades - stores grades - type char

Use the following functions to perform different tasks.

1. The function getScore will be used to enter the scores into the array.

get_score (scores, NUM_SCORES);

Use this prompt message to enter the score:

Enter score #1: _ _

2. The function computeGrade will compute the grade for each student.

computeGrade (scores, grades, NUM_SCORES);

The grades are assigned based on the following table.

Score Grade

90 - 100 A

80 - 89 B

70 - 79 C

60 - 69 D

0 - 59 F

3. The function pass will determine and return the number of passing scores.

A score greater than or equal to 60 is considered a passing score.

numberPasses = pass (scores, NUM_SCORES);

4. The function findHigh will find out and return the highest test score.

highScore = find_High (scores, NUM_SCORES);

5. The function printSummary will print the output as shown.

printSummary (scores, grades, numberPasses, highScore, NUM_SCORES);

Use the following test data: (10 scores)

97, 70, 65, 59, 89, 80, 78, 45, 90, 79

The output will be displayed as follows:

Score No. Score Grade

1 97 A

2 70 C

. . .

. . .

Number of students passed the test: ___

The highest test score: _

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!