Computer Science I (CS 170)
Dr. William J. Joel, WS 110, 7-9353
Project No. 6 (10 points)
(Due Thursday, May 3, 2001)

Problem: To create a program that will allow a teacher to ...
(a) enter the name of file where anywhere from 1 to 10 grades are listed, 
(b) read a student's name and grades from the file, 
(c) allow the teacher to select, from a menu, which statistical test to perform, and 
(d) printout to a second file a grade report for the student. 
This report includes the student name and grades read from the original file, and the statistical result.
Task:
  • Review the use of file I/O, loops and arrays
  • Create a class, cGradeReport
  • Include member variables for ...
    • student name
    • number of grades
    • student grades (array)
    • type of statistical method
    • statistical result
  • Include member functions to ...
    • initialize all variables (constructor)
    • get a filename from the user and read in student name and grades from the file
    • display a menu and allow the user to select one (1) statistical method from the following
      • mean (average)
      • median
      • standard deviation
    • print out the final report to the file student.out
  • Submit your assignment according to Project Submission Guidelines.
Notes:
  • The input file, student.dat, can be found on this website.
  • Remember! Be sure you've completed this project as described above. If you wish to do more, you will neither receive extra points if you succeed, nor lose points if you you are unsuccessful, but you will receive feedback when the project is graded.