Write down a program which reads student's name together with his or her test scores. Program must calculate the average test score for each student and allot the suitable grade. Grade scale is as follows: 90-100, A; 80-89, B; 70-79, C; 60-69, D; 0-59, F. Program use the following functions:
a. Void function, calculateAverage, to find out average of five test scores for each student. Use loop to read and sum five test scores. (This function doesn't output average test score. Task should be done in function main.)
b. Value-returning function, calculateGrade, to find out and return each student's grade. (This function doesn't output grade. The task should be done in function main.)
The program requires to use following data. Read data from file and send output to a file. Do not use any global variables. Use suitable parameters to pass values in and out of functions.
Johnson 85 83 77 91 76
Aniston 80 90 95 93 48
Cooper 78 81 11 90 73
Gupta 92 83 30 69 87
Blair 23 45 96 38 59
Clark 60 85 45 39 67
Kennedy 77 31 52 74 83
Bronson 93 94 89 77 97
Sunny 79 85 28 93 82
Smith 85 72 49 75 63