Write a small program that continually reads in user values


Write a small program that continually reads in user values and calculates the average of all values. The program should first ask the user for the amount of values to be entered. Upon storing this value, the program should proceed to read in that amount of values.

What will be the best strategy here? I suggest only calculating the average after you know you have read in all values. You can expect to use some type of loop to continually read in the values. 

Hint:      Since we will know specifically how many values we need to read, a for-loop may be the best fit. 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write a small program that continually reads in user values
Reference No:- TGS01266509

Now Priced at $20 (50% Discount)

Recommended (97%)

Rated (4.9/5)