Homework 3, Grades.

Short Description:

Write a program that will compute your grade for this class.

Goals

When you finish this homework, you should have:

Formal Description

For this project, you are to create a program that will calculate your grade for this class.

Your program should start by requesting the name of a file containing grade data for the semester. You may assume that the file name will be correct.

Your file ineraction shold be exactaly three lines:

  1. The phrase "Enter a file name: "
  2. The statement "Opening ", followed by the file name
  3. A blank line.
Enter a file name: Bob_Smith.dat
Opening Bob_Smith.dat

Please note, your output will look differently when running interactively. You will have an extra newline between the prompt and the opening statement. This is because the input will be reflected in the terminal. On the screen your output will look like this:
[bennett@mirkwood closed]$ gradebook
Enter a file name: Bob_Smith.dat

Opening Bob_Smith.dat

Grade Report for: Bob Smith
...

This file is in the following format:

From this file you should compute the student's averages for each component as well as for the class, and the student's letter grade.

You should print this information in the following format:

Enter a file name: Bob_Smith.dat
Opening Bob_Smith.dat

Grade Report for: Bob Smith
Homework Average: 84.3%
Groupwork Average: 89.1%
Test Average: 91%
Final Exam: 90%
Class Average 88%
Letter Grade: B
Enter a file name: Susan_Lee.dat
Opening Susan_Lee.dat

Grade Report for: Susan Lee 
Homework Average: 92.0%
Groupwork Average: 80.0%
Test Average: Not Present 
Final Exam: Not Present 
Class Average 88%
Letter Grade: B
Computing the Class average:

Notes

  1. Your code must compile with the following flags
  2. Be warned, the examples are only examples, the data used to test your program will change.
  3. Your program should produce NO output other than the requested output above.
  4. The given data files:
  5. The given output files
  6. Any missing data should be labeld with "Not Present"
  7. Your program must compile and run on devweb1.cis.pennwest.edu
  8. Your program must be well documented.
  9. Your program must include at least four functions, but more would be better.
  10. Your program should follow all standards for style discussed in class and in the style guide.

Required Files

A single source code file.

Submission

Submit the assignment to the D2L folder Homework 3 by the due date.