Question: Write the pseudocode to create a lotto game. The user will select three numbers from 1 to 9. If the user enters a number outside

Write the pseudocode to create a lotto game. The user will select three numbers from 1 to 9. If the user enters a number outside of this range, then they must be prompted to re‐enter the number until it meets the criteria. The numbers must be unique and must not be duplicated.   Generate three random numbers from 1 to 9 in value and compare the three random numbers against the user’s selection of numbers. If they are equal to the random number, then that is a match.   HINT: In your pseudocode, use the following to indicate that a random number is being generated ‐ random( ).

Step by Step Solution

3.36 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Below is a simple pseudocode for a lotto game that meets the criteria youve described Function gener... View full answer

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 Programming Questions!