Question: Write a C++ program that reads a list of students 'grades from a file called students.dat. The program should read the grades, store them

Write a C++ program that reads a list of students 'grades from a file called students.dat. The program should

Write a C++ program that reads a list of students 'grades from a file called students.dat. The program should read the grades, store them in a container (vector or array) and then compute the average and the standard deviation of the list of grades. The program should output the average and the standard deviation to the standard output device as well as to a file called output.dat. Note, if the grades are X, X2, X3, x4, and x5, then the average is: X = (X + x + x3 + x4+x5) + 5 and the standard deviation is: S= (x-x) + (x-x) + (x3x) + (x4-X) + (x5 - x) n Write a C++ program that reads a list of students 'grades from a file called students.dat. The program should read the grades, store them in a container (vector or array) and then compute the average and the standard deviation of the list of grades. The program should output the average and the standard deviation to the standard output device as well as to a file called output.dat. Note, if the grades are X, X2, X3, x4, and x5, then the average is: X = (X + x + x3 + x4+x5) + 5 and the standard deviation is: S= (x-x) + (x-x) + (x3x) + (x4-X) + (x5 - x) n Write a C++ program that reads a list of students 'grades from a file called students.dat. The program should read the grades, store them in a container (vector or array) and then compute the average and the standard deviation of the list of grades. The program should output the average and the standard deviation to the standard output device as well as to a file called output.dat. Note, if the grades are X, X2, X3, x4, and x5, then the average is: X = (X + x + x3 + x4+x5) + 5 and the standard deviation is: S= (x-x) + (x-x) + (x3x) + (x4-X) + (x5 - x) n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The task asks us to write a C program that will read student grades from a file calculate the averag... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!