Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Program Details: write a program that reads a student’s name together with hisor

ID: 3610124 • Letter: P

Question

Program Details:

write a program that reads a student’s name together with hisor her test scores. The program should then compute the averagetest score for each student and assign the appropriate grade. Thegrade scale is as follows: 90-100, A; 80-89, B; 70-79, C; 60-69, D;0-59, F. The program needs use the following functions:

a. A void function, calculateAverage, to determine the average ofthe five test scores for each student. Use a loop to read and sumthe five test scores. (This function does not output the averagetest score. The task must be done in the function main.)
b. A value-returning function, calculateGrade, to determine andreturn each student’s grade. (This function does not outputthe grade. The task must be done in the function main.)

The program needs to use the following data. Read the data from afile and send the output to a file. PLease do not use any globalvariables. Use the appropriate parameters to pass values in and outof 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

Explanation / Answer

//Hope this will help you.. #include#include #include #include using namespace std;struct stud{char name[100];int num[5];double avg;char grade;};char calculateGrade(double v){if(v < 60)return 'F';elseif(v
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote