Program5

advertisement
Programming Assignment #5
CSE 1001
Summer 2008
For this assignment you will modify the program from assignment #4 so that it inputs a list of 5 exam
scores for each student and then, for each exam, outputs 1) an exam average, 2) the highest score along
with the name of the student who achieved it, and 3) the lowest score along with the name of the student
who achieved it. As an example, the output produced by your program should look (exactly) as follows:
Enter the number of students: 4
Enter name #1: Smith
Enter grades: 90 85 92 76 84
Enter name #2: Jones
Enter grades: 65 72 32 91 87
Enter name #3: Brown
Enter grades: 100 54 78 65 83
Enter name #4: Carlos
Enter grades: 78 43 96 75 47
Exam #1:
Exam average: 83.25
Highest grade of 100 was achieved by Brown
Lowest grade of 65 was achieved by Jones
Exam #2:
Exam average: 63.5
Highest grade of 85 was achieved by Smith
Lowest grade of 43 was achieved by Carlos
Exam #3:
Exam average: 74.5
Highest grade of 96 was achieved by Carlos
Lowest grade of 32 was achieved by Jones
Exam #4:
Exam average: 76.75
Highest grade of 91 was achieved by Jones
Lowest grade of 65 was achieved by Brown
Exam #5:
Exam average: 75.25
Highest grade of 87 was achieved by Jones
Lowest grade of 47 was achieved by Carlos
Deliverables: A hardcopy printout of your program, along with a hardcopy printout of the output
produced by your program.
Due Date: Friday, June 20th, 2008
Download