- Elliott Plack
- 24 OCT 2013
Write a C++ program that will perform three functions based off of an input of 10 integers into an array.
- Declare three function prototypes(float)
- Declare array numbers[10]
- Do input checks on the input
- Set variables equal to called functions
- Output variables
###Largest number in array
d = 0
for (j=1; j < 10; j++)
If data[j] > data[d]
D = j
return d
- For loop
- Sum of all elements
- Divide by number
- Return result
- Opposite of largest