Question: create a java program that generates a random number between 1 to 10 . then ask user to guess the random number, if the user

create a java program that generates a random number between 1 to 10 . then ask user to guess the random number, if the user can guess it then print "you win" if not print "try again". let the user try again 5 times. if after 5 times still not guessing the random number then print "sorry you lose".

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!