Due by 8:00 AM on Monday, November 1, 1999 In this assignment you will write a collection of functions that manipulate arrays in ways typically required for statistical analysis. This will be done in the setting of a simple grading program. The program, which should be named Grading, begins by prompting the user for the number of grades to be manipulated. The user is then prompted to enter that many grades, and they are stored in the array. The grades are floating point values between 0 and 100 (inclusive). If they enter a grade that is out of range, go into a correction loop until they enter a valid grade. The program then displays the following menu of options for the user: 1 Display Grades 2 Compute Average of Grades 3 Compute Standard Deviation of Grades 4 Display Position and Value of Lowest Grade 5 Display Position and Value of Highest Grade 9 QuitIf the user picks a valid choice, that action should be performed. Otherwise an error should be displayed. In either case, the menu should then be redisplayed and the process repeated, until the user chooses the Quit option. Here is a sample run of the program. You should try to make your program mimic as closely as possible the behavior of the sample run.
The Your code should print floating point numbers with exactly two digits after the decimal point. Your solution should include and make use of at least the following methods (we have given the method headers, but have only given the types of the formal parameters, not their names):
|
Last modified August 28 for Fall 99 cs5 by fleck@cs.hmc.edu
This page copyright ©1998 by Joshua S. Hodas. It was built with Frontier on a Macintosh . Last rebuilt on Tue, Oct 20, 1998 at 5:01:56 PM. | |
http://www.cs.hmc.edu/~hodas/courses/cs5/week_09/homework.html | |