Question: In c++ programming complete the following problem , following all instructions. Everything is in the two pictures. Please make sure dynamic arrays are used for
In c++ programming complete the following problem , following all instructions. Everything is in the two pictures. Please make sure dynamic arrays are used for the bet. Thank You!


Problem: You are to develop a program that simulates playing roulette. The roulette wheel will be a modified version of an actual roulette wheel. It will only contain the numbers 0-36 (no 00). 0 is neither even, nor odd, nor red, nor black. The numbers 1-36 are associated with a color; either red or black (see http://www.predictem.com/images/roulette.gif) The gambler will have the option of placing a maximum of 8 bets on the table per "spin". The bets may be of any of the following types: . Single number (0-36) pays $35 for each $1 bet Red or black pays $1 for each $1 bet .Odd or even pays $1 for each $1 bet First 12 (1-12), second 12 (13-24), or third 12 (25-36) pays $2 for each $1 bet First half (1-18) or second half (19-36) - pays $1 for each $1 bet First column (1,4,7,10,13,16,19,22,25,28,31,34), second column (2,5,8,11,14,17,20,23,26,29,32,35), third column (3,6,9,12,15,18,21,24,27,30,33,36)-all columns pay $2 for each $1 bet Please note that everything the gambler wins is in excess of the current bet. If a gambler bets $2 on a single number and wins he/she keeps the $2 bet and the casino gives him/her $70. All information concerning the bets (type of bet, amount of bet, net gain, etc.) will be held in a dynamic array (possibly a multi-dimensional array). This array should be destroyed after each spin and a new one created for the next series of bets. The size of the array is determined by the number of bets placed per spin. The gambler may never place a bet that would cause him/her to have negative dollars. The program should keep track of all bets placed for a spin and never let the gambler bet more than he/she has available. For example, if the gambler tries to place 4 bets and the third bet exceeds the amount of
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
