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 beprompted 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 match.

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 2GZ
icon
Related questions
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 of this range, then they must beprompted 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 match.

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,