# Arrays and sorting

**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:

> ![[url removed, login to view] (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.)

> ![[url removed, login to view] (2015 bytes)][2]

>

> ![[url removed, login to view] (2024 bytes)][3]

> ![[url removed, login to view] (5105 bytes)][4]

>

> ![[url removed, login to view] (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

( 2 comentários ) United States

ID do Projeto: #3015374

## Concedido a:

notusinganymore

See private message.

\$7 USD em 2 dias
(26 Comentários)
3.2

## 12 freelancers estão ofertando em média \$6 para esse trabalho

devicode

See private message.

\$8.5 USD in 2 dias
(69 Comentários)
4.7
lmxvw

See private message.

\$7.65 USD in 2 dias
(126 Comentários)
4.7
herculesevw

See private message.

\$8.5 USD in 2 dias
(79 Comentários)
4.7
teamvw

See private message.

\$8.5 USD in 2 dias
(35 Comentários)
3.8
vnicky

See private message.

\$8.5 USD in 2 dias
(15 Comentários)
2.8
rccsoft

See private message.

\$5.1 USD in 2 dias
(1 Comentário)
0.0
rezwanvw

See private message.

\$3.4 USD in 2 dias
(0 Comentários)
0.0
coderx2k

See private message.

\$5.1 USD in 2 dias
(0 Comentários)
0.0
alexandruar

See private message.

\$3.4 USD in 2 dias
(0 Comentários)
0.0
mdarko

See private message.

\$5.1 USD in 2 dias
(0 Comentários)
0.0
expertccvc

See private message.

\$4.25 USD in 2 dias
(0 Comentários)
0.0