Write a program using an array to store unspecified number


Problem

Write a program using an array to store unspecified number of sales made by sales representatives of a local enterprise. Determine how many of the sales are above or equal to the average and how many sales are below the average. Enter a negative number to signify the end of the input. Assume that the maximum number of sales is 50.

Program Plan:

a) Declare an array to store the sales values. Use a Scanner object to read in sales.
b) Find the average of the entered sales values.
c) |Count the number of above average and below average sales entered.
d) Print average. the number of sales above, equal or below the average value.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a program using an array to store unspecified number
Reference No:- TGS03340772

Expected delivery within 24 Hours