**Purpose:** To gain experience using arrays.
2**. The Problem:** Write a program to load to an array a list of up to 50 scores read from a file. Once the scores have been loaded to the array, provide the user with a menu of options:
> "p" print scores in sorted in ascending order
> "a" calculate and print the average value of the scores
> "m" calculate and print the median value for the scores
> "s" calculate and print the standard deviation of the scores
> "q" quit
3. **More Details:**
1. Your program should accept either lower- or upper-case letters for any of the options. You should accomplish this using either the *toupper(...)* or *tolower(...)* functions in the C++ library: #include <ctype.h>. You should research the use of these functions yourself.
2. Use a *switch* statement to process the menu options.
3. The mean (or average value) of the scores is computed by summing the scores and dividing by total obtained by number of scores. For example, if there are N scores, x1, x2, ..., xN then the mean is:
> ![[login to view URL] (3167 bytes)][1]
4. For example, suppose the scores are: 55.5, 64.4, 76.4, 83.9, and 92.8. (Of course, N is only 5 here, which is not large, but it is useful for illustrating how the computation is done.)
> ![[login to view URL] (2015 bytes)][2]
>
> ![[login to view URL] (2024 bytes)][3]
> ![[login to view URL] (5105 bytes)][4]
>
> ![[login to view URL] (2141 bytes)][5]
4. **Error Checking:** All scores must lie between zero and 100.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
## Platform
win2000, G++ compliler