Lab 6
SUBJECT: Selection, Loops, Program Design
Given: A file that contains a student name and a grade on exam1 and grade on exam2 for 25 students.
Write a program that gives the user the choice of the following calculations:
Class Average (exam1, exam2)
Student Average (all 25 students)
Standard Deviation (exam1, exam2)
Letter grades (all 25 students)
Minimum/Maximum (for each exam and the students who got them),
Locate : given a student name find the grades
Locate All students where the difference between exam1 and exam2>15%
Histogram
Update data (enter name, new test scores)
Quit
Requirements:
You must use :
1) at least one event controlled loop for a calculation
2) one count controlled while loop for a calculation
3) one for loop for a calculation
4) you should include appropriate error messages (one of the problems)
5) Use methods to calculate letter grade, display menu, output table headers (stars).
To make sure you meet all of these requirements and to make it easy for me to find, label them as follows (before loop) This is in addition to any other appropriate comments
//*************************************************************
// #1 Event controlled loop
//*************************************************************
Assumptions
You can assume that there is only one maximum and only one minimum grade (no ties)
Assume the student name may or may not have a space in it.
Notes:
This is a large, complex problem. You must therefore break it down into simpler tasks that you can do. I strongly suggest you perform the tasks as outlined below (more steps will follow). This lab is worth double credit and we