Please Help!! Arrays

Can anyone explain how to write this program?



A group of 50 people have gone apple picking at Shayde Brook Farms in Pennsylvania. Each person has collected a number of apples, in their basket. At the end of the day, prizes will be given to some of these apple pickers.



Write a program including a separate function for each computation, to perform the following:

a. Declare an array to the store 50 numbers using random number(of apples).


b. Input the 50 numbers from data file c:\apple_trip.txt.


c. Count how many of the people picked less than 25 apples.



d. Which person collected the least number of apples ?



e. Which person collected the most number of apples ?



f. Count how many of the numbers are between 80 and 100 apples.


g. Compute the average number of apples picked.


h. Change all apple numbers less than 10 to 0.


Last edited on
help with what ?
Topic archived. No new replies allowed.