Write aprogram that plays a game called Roulette. Therules of the game are as fo
ID: 3616819 • Letter: W
Question
Write aprogram that plays a game called Roulette.
Therules of the game are as follows:
3. Our Roulette wheel will have 38slots numbered 1 through 36, 0, and 00
4. 0 and 00 are green, odd numbers arered, and even numbers over 0 are black
5. A player places a bet and the wheelis spun. The player either wins or loses, and then may playagain if they choose
6. If the player bets on a number andit hits, it pays 35 to 1
7. If the player bets red or black andhits, they win the amount bet
8. If a player bets green and hits, itpays 17 to 1
9. A player may bet between 1 and 20chips at a time
Explanation / Answer
please rate - thanks you weren't specific about the form of input-hope this is good #include #include using namespace std; int placebet(); int checkbet(int,int,int); int getbet(int); int main() {int chips=100,maxchips=300,minchips=0; int bet,numberchips,wheel,win; srand(time(0)); while(chips>0&&chipsRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.