Question: Use Java to wirte the program The program will keep prompting user to input a valid integer (0-100) until a -1 is input, e.g, Please
Use Java to wirte the program
The program will keep prompting user to input a valid integer (0-100) until a -1 is input, e.g, Please input an integer 0-100 (-1 to stop): 2) If an invalid integer is given, the program will print an error message XXX is not a valid input. where XXX is the given integer, and prompt again. 3) After a -1 is input, if no valid number was ever input, i.e., the first input is -1, the program prints Good bye! and exits. Otherwise, the program prints the minimum, maximum, and the average of the integers, and exits.
Please exppain the codes step by step.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
