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

Project 1 is going to be a small gradebook of sorts. The program should prompt f

ID: 3663270 • Letter: P

Question

Project 1 is going to be a small gradebook of sorts. The program should prompt for a filename from the user. the file will contain the number of students in a course on the first line, and the number of assignments on the second line. Then a matrix of scores will follow where each line has a unique alphanumeric student identifier, then the assignment scores. Your program should prompt for a filename from the user read in the number of students and the number of assignments from the file read in the assignment data and place into an array of data, where the rows correspond to an individual student and the columns correspond to an assignment, data on a single row will be separated by whitespace (space, tab, enter, etc) utilize an array of structures, one structure per column and holds the mean, median, minimum and maximum for a single assignment, when calculating the values the zero values should not be included utilize a second array of structures, one structure per row where each structure holds the unique alphanumeric student identifier, average, and number assignments completed Print the results that are stored in the row structure as student id, average, number assignments completed, total number of assignments Print the results that are stored in the column structure as assignment number, mean, median, minimum, maximum all of your code should access memory locations via pointers and pointer arithmetic, no []'s in the code you submit. The student ID field will be less than or equal to 25 characters.

Explanation / Answer

#include #include using namespace std; struct students{ int ID; int q1; int q2; int e1; int e2; int assg1; int assg2; int assg3; }; int main(){ int ID; char command; students grades[Num_grades]; int i =0; int Num_Students = 65; while(!infile.eof()){ infile >> grades[i].ID; infile >> grades[i].q1; infile >> grades[i].q2; infile >> grades[i].e1; infile >> grades[i].e2; infile >> grades[i].assg1; infile >> grades[i].assg2; infile >> grades[i].assg3; i++; } ifstream infile; infile.open("grades.txt"); ofstream outfile; outfile.open("report.txt"); do{ cout