Question: Create a program in Java that does the following Prompt the user to enter a number between 1 - 5 inclusive If the user enters
Create a program in Java that does the following
Prompt the user to enter a number between inclusive
If the user enters a number outside of this range, make them reenter the number.
Depending on the number the user chooses, tell them they won a prize using a "for" loop
Each number must have a different prize and your prizes must be different from the example in class
The "for" loop will run based on the number they input. If the user input the loop will run three times displaying prize number each timesample output
Enter a number between inclusive. You have entered an incorrect number. Enter a number between inclusive. You have won the white rabbit! You have won the white rabbit! You have won the white rabbit! You have won the white rabbit!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
