Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ Design a simple lottery game. (Use vectors in the STL) The winning ticket will consist of 5 winning digits from O to 9 with
c++
Design a simple lottery game. (Use vectors in the STL) The winning ticket will consist of 5 winning digits from O to 9 with no repeats. For example, winninglicket = 4, 0, 7, 9, 2 Allow the user to choose 5 numbers, with no repeats. For example use rTicket= 5, 4, 9, 1, 0 Here the user has 3 matches. A user wins if he has 5 matches. Display to the user the number of matches and ask if he wishes to play again. Next 1 PreviousStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started