This is my homework for my C++ class. I have bits and pieces of it, however i cannot figure out how to sort an array from the .txt file that is required and use that .txt file throughout the whole project. Please help =] thanks.
You are to write a C++ program that calculates grade statistics for a list of grades that are stored in a single column of integers in a text file called Grades_Fall2010.txt. It must support any number of grades. You will need to create this file. Your program will read the file in and determine the average score, the standard deviation, the maximum score, and the minimum score. The program must display these values, along with total number of grades, with the appropriate output (refer to example output). You must create a separate function for each of these operations. You will need a one-dimensional array for temporary storage of the grades. You will sort the grades, from highest to lowest, and store in another file called Sorted_Grades_Fall2010.txt. If program can not open the input file (Grades_Fall2010.txt), it must exit and display an error message. Follow the coding standard as defined in requirements document as listed on Blackboard for course. Submit the *. cpp file through Blackboard by due date.
Example of Files
Grades_Fall2010.txt : Sorted_Grades_Fall2010.txt
67 94
45 92
92 89
89 87
94 67
87 48
48 45
Example of Output
There are X graded assignments.
The average score is XX.X
The maximum score is XX
The minimum score is XX
The standard deviation is XX.XX