

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Fall, 2009 Programming Assignment 3
A university needs to keep know the grade point average of each student and class. You are to write a program that reads in a list of class grades. The table below shows some class and student data.
Name Class Grade Martin Jones Database Fundamentals A Susan Smith CS 1 C Arthur White CS 1 B Martin Jones CS 1 C Michael Brown Database Fundamentals C Jane Doe Networking B
There is a test file on the LMS site. The test file has a CSV (Comma Separated Value) format. The first line of the file contains header information that must be ignored in the processing (to see the format open it with wordpad or notepad).
You are to process the data as follows
For example, if #define SHOW_STUDENT is 1 then the following will be listed for Martin Jones and all the other students:
Martin Jones GPA=3.0 Credit_Hours= Database Fundamentals A CS 1 A
And if #define SHOW_CLASS is 1 then the following values will be shown for CS 1 and all the other classes:
CS 1 3 students Average_of_GPA’s=2. Susan Smith Arthur White Martin Jones
Because the GPA for Susan is 2.0, Arthur 3.0 and Martin 3.0.
Grading: Compiles (and is a sincere attempt) 20% Defines classes and vector correctly as specified 20% Reads in the initial data correctly and prints the correct number of records 10% Creates all the student objects and prints the correct number of credit hours. 10% Creates all the class objects and prints the correct number of students and the correct GPA 10% Displays the correct results for #define SHOW_STUDENT 10% Displays the correct results for #define SHOW_CLASS 10% Proper commenting, easy to read output and good program structure 10%