Create a program that reads a student name


Assignment:

Write a program that reads a student's name together with his or her test scores. The program should then compute the average test scores for each student and assign the appropriate grade. The grade scale is as follows: 90-100, A; 80-89, B; 70-79, C; 60-69, D; 0-59, F.

Your program must use the following functions:

Q1. A void function, calculateAverage, to determine the average of the five test scores for each student. Use a loop to read and sum the five test scores. (This function does not output the average test score. That task must be done in the function main.)

Q2. A value-returning function, calculateGrade, to determine and return each student's grade. (This function does not output the grade. That task must be done in the function main.)

Test your program on the following data. Read the data from a file and send the output to a file. Do not use any global variables. Use the appropriate parameters to pass value in and out of functions.Balto 85 83 77 91 76

Mickey 80 90 95 93 48
Minnie 78 81 11 90 73
Doc 92 83 30 69 87
Goofy 23 45 96 38 59
Duckey 60 85 45 39 67
Grumpy 27 31 52 74 83
Sunny 93 94 89 77 97
Piggy 79 85 28 93 82
Pluto 85 72 49 75 63

Sample Output:

The output should be of the following form: (Fill the last two columns and the last line showing the class average.)

Student Test1 Test2 Test3 Test4 Test5 Average Grade
Balto 85 83 77 91 76
Mickey 80 90 95 93 48
etc....

Class Average =

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a program that reads a student name
Reference No:- TGS01937886

Now Priced at $25 (50% Discount)

Recommended (94%)

Rated (4.6/5)