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

Please write in C++ in Microsoft Visual Studio 2015! A teacher has five students

ID: 3828144 • Letter: P

Question

Please write in C++ in Microsoft Visual Studio 2015!

A teacher has five students who have taken four tests. The teacher uses the following grading scale to assign a letter grade to a student, based on the average of his or her four test scores. Notice that the grade scales are written in interval notation. Write a program that uses an array of string objects to hold the five student names, an array of five characters to hold the five students' letter grades, and another array of four doubles to hold each student's set of test scores. The program should allow the user to enter each student's name and his or her four test scores. It should then calculate and display each student's average test score and a letter grade based on the average. Input Validation: Do not accept test scores less than 0 or greater than 100.

Explanation / Answer

#include #include #include #include using namespace std; const int MAX = 50; // a function called GetData to read and store data into two arrays, void GetData(ifstream& infile,string name[],int scores[][5],int& n) { n = 0; int i=0; int j=0; while(!infile.eof()) { infile >> name[i]; for(int j=0; j> scores[i][j]; i++; } n = i; } char determineGrade(double avg) { if(avg>=90 && avg=80 && avg=70 && avg=60 && avg=0 && avg