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

Hi, I need to write a C++ program but I cannot figure out how to doit. Please wr

ID: 3618506 • Letter: H

Question

Hi, I need to write a C++ program but I cannot figure out how to doit. Please write the entire program. Here is the problem:
Write a program that reads a student's name together with his orher test scores. The program shouuld then computer the average testscore for each student and assign the appropriate grade. The gradescale is as follows: A = 90-100 B = 80-89 C = 70-79 D=60-69 F =0-59 Your program must 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 andsum the five test scores. (This function does not output theaverage test score. That task must be done in the functionmain.)
b. A value returning function, calculateGrade, to determine andreturn each student's grade. (This function does not output thegrade. That task must be done in the function main. )
Test your program on the following data. Read the data from a fileand send the output to a file. Do not use any global variable. Usethe appropriate parameters to pass values in and out offunctions.
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 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


Thanks!

Explanation / Answer

please rate - thanks #include #include using namespace std; char calculateGrade(double); void calculateAverage(ifstream&,int[],int,double&); int main(void) { string name ; int i,numgrades=5,grade[5]; double average; char letter; ifstream in; ofstream out;   in.open("input.txt");          //open file   if(in.fail())            //is it ok?        { cout
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