Question: in java Write a program which asks the user to input an integer from 1 to 10 (inclusive). - If they input something that is
Write a program which asks the user to input an integer from 1 to 10 (inclusive). - If they input something that is not an integer, you should output "Not an integer" and end the program (hint: look at this Example Program from the text). - If they input an integer that is not in that range, you should output "(number) is not in the range 1-10" where (number) is replaced by whatever the user actually inputted. - If they do input a number in that range, you should output "Good job! You inputted (number)", where (number) is replaced by whatever the user actually inputted
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
