(Game: lottery) Revise Listing, Lottery.cpp, to generate a lottery of a three digit number. The program 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 in the user input matches a digit in the lottery number, the award is $1,000.
Listing

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.