Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions