Find the minimum and maximum salaries stored in the array


Discuss the below:

You complete a partially prewritten Java Program that uses an array. The program prompts the user to interactively enter 10 salaries, which the program stores in an array. It should then find the minimum and maximum salaries stored in the array, as well as the average of the 10 salaries. The data file provided for this lab includes the input statement and some variable declarations.

-Write the Java statements as indicated by the comments.

-Execute the program. Enter the following salaries: 45,000.00, 22,000.00, 6,000.00, 100,000.00, 57,000.00, 1,000.00, 90,000.00, 12,000.00, 6,000.00, and 35,000.00. The minimum salary should be 1,000.0 and the maximum salary should be 100,000.00. The average should be 37,400.0.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Find the minimum and maximum salaries stored in the array
Reference No:- TGS01934390

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)