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

Write a program that reads a student\'s name together with hisor her test scores

ID: 3615625 • Letter: W

Question

Write a program that reads a student's name together with hisor her test scores. The program should compute the averagetest score for each student and ssign 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 followingfunctions:    a. A void function, calculateAverage,to determine the average of the five test scores for eachstudent. Use a loop to read and sum the five testscores. (This function does not output the average testscore. That task must be done in the function main.)    b. A value-returning function,calculateGrade, to determine and return each student's grade. (Thisfunction does not output the grade. That task must be done inthe function main.) Test your program on the following data. Read the datafrom a file (use an inData.txt) and send the output to afile. Do not use any global variables. Use theappropriate 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 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 Sample output: The output should be of the following form: (fill the last 2columns and the last line showing the class average.) Student   Test1   Test2   Test3   Test4   Test5   Average   Grade 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 Class Average = Please read the problem carefully and use every parameterneeded to answer this problem. Please include your inData.txtfile along with program, if you anwer this question. Ifanswer works in visual studio i will rate LIFESAVER!!! Thanks for all your help! Write a program that reads a student's name together with hisor her test scores. The program should compute the averagetest score for each student and ssign 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 followingfunctions:    a. A void function, calculateAverage,to determine the average of the five test scores for eachstudent. Use a loop to read and sum the five testscores. (This function does not output the average testscore. That task must be done in the function main.)    b. A value-returning function,calculateGrade, to determine and return each student's grade. (Thisfunction does not output the grade. That task must be done inthe function main.) Test your program on the following data. Read the datafrom a file (use an inData.txt) and send the output to afile. Do not use any global variables. Use theappropriate 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 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 Sample output: The output should be of the following form: (fill the last 2columns and the last line showing the class average.) Student   Test1   Test2   Test3   Test4   Test5   Average   Grade 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 Class Average = Please read the problem carefully and use every parameterneeded to answer this problem. Please include your inData.txtfile along with program, if you anwer this question. Ifanswer works in visual studio i will rate LIFESAVER!!! Thanks for all your help!

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("inData.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