Site hosted by Angelfire.com: Build your free website today!

Program 44
 

 


C++

K. DZWONKIEWICZ

 

 

This program will keep track of a small group of student’s grades for a class…using an array of classes.

 

The class data will consist of the student’s name and an array of their test scores.  The data will be in a data file that looks like this…

 

4

Byron, Lumpy

88

Consider how your souls were sown; you were not made to live like brutes or beasts, but to pursue virtue and knowledge.

             

-Dante

 
99

77

66

Bourbaki, M.N.

88

77

66

99

Bunyan, Paul

68

81

80

92

 

The first thing in the file is an index of how many tests the group has taken; then the name and test scores.  The program will load the data file into an array of class… people[12] with {apstring nam; apvector<int> test(10)}; …up to 10 tests and 12 people max.

A menu is called…

 

1)     Display all names

2)     Display names with all tests

3)     Display names with average and grade

4)     Add new test score

5)     Correct old test score

6)    

“Chaos represents systems that are random in the long run but have just enough structure so that in the short run you can figure out what they’re going to do.”

           -Norman Packard

 
Resave and QUIT

7)     Quit without resaving

Enter number of your choice:__