Question: in Java, create a new class and write a main method where all of the rest of your code will be. Remember to Comment Your
in Java, create a new class and write a main method where all of the rest of your code will be. Remember to Comment Your Code!
Print out a statement asking the user for a number between 0 and 10.
Create a variable to store the number you took in from the user.
Check to make sure the number you got from the user is between 0 and 10. If it is not print out a statement telling the user that their number was incorrect and that you have chosen a different number. Then set the variable you stored their number in to a number between 0 and 10.
Repeat steps one through three until you have asked the user for three numbers.
Calculate the mean of the three numbers you have.
Use a if, else if, else statements to print Wow, that is small if the mean is less than 2, Seems about right if the mean is between 2 and 8, and Big numbers! if the mean is above 8.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
