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

in java in java Write a program which asks the user to input an

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!