Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

0764549634, 9780764549632

More Books

Students also viewed these Databases questions

Question

What is Form 941?

Answered: 1 week ago

Question

5. Understand how cultural values influence conflict behavior.

Answered: 1 week ago

Question

e. What do you know about your ethnic background?

Answered: 1 week ago