You should use a good functional decomposition in planning this program.
You should write good structured code that is well documented.
A teacher manages a class using four files. These files are as follows.
Intro, 130, 2001-Fall Homework 4 .05 homework.txt Program 6 .45 programs.txt Test 4 .50 test.txt Bill Anderson 2345 Sue Davidson 5432 Bryan Donaldson 1134 Steve Smith 9893
9893 700 20 -1 1134 88 90 86 84 -1 2345 100 65 -1 5432 87 87 87 87 -1
If a student is missing a score, ie only 5 of 7 homework scores are recorded, then they receive a 0 on all missing scores.
You may assume all scores are between 0 and 100
For the homework, the professor has decided that the students should drop their lowest grade (the 0s mentioned above count as a grade). Your program should do this automatically.
You should read all of the data for each student and calculate a weighted average for the class score.
Output for your program should be a table:
Intro, 130, 2001-Fall Name ID Hmwk Prog Test Class Avg. Avg. Avg. Avg. Anderson, Bill 2345 50 55 75 64.75 Davidson, Sue 5432 70 87 87 86.15 Donaldson, Bryan 1134 90 88 92 90.10 Smith, Steve 9893 30 90 33 58.50
You should prompt the user for the name of the main file.
You should use your editor to create test files for your program.
Please make sure that you document your program, use proper indentation and variable names.
When the program is complete, please send a copy to dbennett@edinboro.edu, the subject of your message should be program4, csci 130
This program is due Monday, November 26 at 11:59 pm.
This program is worth 10 points.