Question: how would I do this using C++ programming not java. Write a program to play the lottery. The program randomly generates a lottery of a

how would I do this using C++ programming not java.

Write a program to play the lottery. The program randomly generates a lottery of a three-digit number, prompts the user to enter a three-digit number, and determines whether the user wins according to the following rules:

If the user input matches the lottery number in the exact order, the award is $10,000.

If all the digits in the user input match all the digits in the lottery number, the award is $3,000.

If one digit (or two digits) in the user input matches a digit in the lottery number, the award is $1,000. if anyone could

please help me out I would greatly appreciate it!!

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!