Raymond D. answered 10/02/15
Tutor
5
(2)
Retired, But Enjoy Passing on Math and Computer Knowledge
The following should assist you in getting your program going.
Create a variable for total salary initialized to 0.
Create a loop to get the names and the salaries.
For each salary input, add it to your total salary variable.
Count the number of names and salaries input.
After all salaries are input, divide the total salary variable by the number of values input to get the average.
Add 5000 to average and store in max.
subtract 5000 from average and store in min.
Go through the salary array to find values between min and max and output the names associated with the salaries that fit.