Question: Display a message telling It will cost the user one dollar to play.Make sure the user has enough balance to play. If the balance is

Display a message telling It will cost the user one dollar to play.Make sure the user has enough balance to play. If the balance is not enough to play a game, inform the user that do not have sufficient money in their account. Ask them if they want to add to their balance. Process their choice accordingly. If the user has enough money to play : Ask the user to guess the number. If it is a correct guess: Display a massage congratulating the user. The user wines $2 dollars. Ask the user if the user wants to play again If yes, start the game again If no, display Main Menu. If it is a wrong guess: Display a massage telling the user they lost. Display the correct number and users guess. Ask the user if the user wants to play again If yes, start the game again If no, display Main Menu.

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!