Question: Create the pseudocode for a lottery game application. Generate three random numbers, each between 0 and 9 . Allow the user to guess three numbers.
Create the pseudocode for a lottery game application. Generate three random numbers, each between and
Allow the user to guess three numbers. Compare each of the users guesses to the three random numbers and
display a message that includes the users guess, the randomly determined three digits, and the amount of money
the user has won, as shown in Figure
Figure Determining
lottery awards Matching
Numbers
Award $
No matches
Any one matching
Any two matching
Three matching, not in order
Three matching in exact order
PSEUDOCODE FORMAT SAME AS PREVIOUS CHAPTERS.
Must use the following declarations in you pseudocode:
Declarations
num randomNumber
num randomNumber
num randomNumber
num guess
num guess
num guess
num win
num LIMIT
num ONEMATCH
num TWOMATCH
num THREEMATCHNOORDER
num THREEMATCHINORDER
num NOMATCH
string PROMPT "Enter three numbers between and
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
