Question: Write a C++ code that randomly generates a lottery of a two-digit number, prompts the user to enter a two-digit number, and determines whether the
Write a C++ code that randomly generates a lottery of a two-digit number, prompts the user to enter a two-digit number, and determines whether the user wins according to the following rule:If the user input matches the lottery in exact order, the award is $10,000.If the user input matches the lottery, the award is $3,000.If one digit in the user input matches a digit in the lottery, the award is $1,000.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
