(Game: lottery) Revise Listing 3.7, 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. solve in c++