Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Please help!!!! This is due tonight and I have no clue what to do!!! I will give thumbs up!!! Please read all the instructions
C++ Please help!!!! This is due tonight and I have no clue what to do!!! I will give thumbs up!!!
Please read all the instructions and show all the explanations/comments! Also, make sure the coding works for every example given below! This is C++. Thank you in advance!!! Assignment You will be writing a program to simulate a slot machine. The player will start with $1000 and you will repeatedly ask the user how much money they wish to insert into the machine before spinning, or allow the player to quit. If the player runs out of money, the game is over. Additionally, the player cannot spend more money than they have available. You should store the player's wagers and winnings in order to output statistics when the user is done playing. Spinning and Payouts After placing a bet, the money is immediately subtracted from the player's balance. The slot machine has 3 reels which are spun after the lever is pulled. Each reel will randomly contain a integer value between 2 and 7 inclusive after being spun. If all 3 reels have the value 7, the player obtained a jackpot and will receive the amount which they wagered times 10. If all 3 reels match, but contain a value other than 7, award the player their wagered amount times 5. Otherwise, if only 2 reels match, award the player their wager times 2. If none of the reels match, the player does not receive any earnings. Restrictions / Hints 1. At the start, ask the user for a seed to use for the random number generator. Use this value to seed your random numbers. You must use functionality from theStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started