Question: Mini Lotto: (Must use a class) in C++ The player purchases a lotto ticket for $1. The user either selects 5 different numbers from 1

Mini Lotto: (Must use a class) in C++

The player purchases a lotto ticket for $1. The user either selects 5 different numbers from 1 to 35 for their lotto ticket or specifies they want a quick pick for the 5 different numbers. Your program will need to make sure that the user does pick five distinct lotto numbers. Five distinct random lotto numbers are then picked. The number of matching numbers between the lotto ticket and the numbers picked is then found. If three numbers match, the player wins $5, if four numbers match, the player wins $1000, and if the player matches all five numbers, the player wins $250000. Otherwise, the player loses their $1.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!