CS 010 – Intro to Computer Science                                 Fall  -  2003

Assignment 8 – due by 10 p.m. Friday, December 5

 

Course Grade Calculator – Part 2

Due by 10 p.m. on Friday 12/5, by electronic turn-in

 

You MUST submit your work to the as8 folder corresponding to your lab class, or it will NOT be graded (e.g. if you are in lab class 023, you must submit your work to the folder as8_023). Remember to include your name, SID or SSN (last 4 digits), lecture & lab section numbers, lab login id, & ucr email address in the header of the file you submit (write them as comments).

 

Modify your program from assignment 7 to calculate grades for an entire class instead of just one student. We will assume the size of the class is 30 students. The input file, scores_class.txt, will have student id and assignment and test scores for exactly 30 students in the same order as before. You should declare an array of your structure variable to hold the information for each student.  The output file, grades_class.txt, should now output the grades for the entire class by student. At the end of the file it should output the average course score, followed by the number of each type of grade assigned to the students. Look at the sample output file to see the correct output for the given input file.

 

We will make available a solution to assignment 7 by Wednesday morning. You may use our solution as your starting point if you wish. There will be lots of hints in the solution we make available, so be sure to look at it even if you want to use your as7 solution.