Question: Write a program, named IncomeApp.java, which accepts non-negative a double type of number as an income until a negative number is entered as the negative
Write a program, named IncomeApp.java, which accepts non-negative a double type of number as an income until a negative number is entered as the negative number ends the program, then it prints out the minimum, average, and maximum for the set of entered incomes (excluding the last negative number because it only indicates the end of user input). For all kind of incomes (including the average), you always display them with at most two decimal numbers. Assume the largest number can be entered by user is 1,000,000.00 for your program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
