Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C language program: (An example execution of the code is given in the second picture) Problem: The standard roulette wheel contains 37 numbers

Write a C language program: (An example execution of the code is given in the second picture)

image text in transcribed

image text in transcribed

Problem: The standard roulette wheel contains 37 numbers from 0 to 36. Whenever the event occurs that zero is selected the player always loses. The wheel will be spun five different times generating five numbers. The player will select those games that they wish play and each game is described in the table which follows Character Game Points Possible RNumber contains a red background 1, 3, 5, 7, 9, 12,14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36 BNumber contains a black background 2,4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35 E Even number O Odd number. LNumber is in lower half from 1- 18. HNum 1Number is in the first dozen 1- 12. 2Number is in the second dozen 13-24. ber is in higher half from 19-36 3 Number is in the third d Allow the user to enter three characters to select their games and a seed for the random number generator. Simulate the five spins of the roulette wheel, display the results of each game, and the player's total score Example Execution #1: Possible Choices '1', '2', or '3' for the 1st, 2nd, or 3rd Dozen 2 Points R' (Red) or 'B' (Black) E' (Even) or '0' (Odd) L' (Low) or 'H' (High) 1 Point 1 Point 1 Point Enter three choices- R E L Enter the seed- 200 The Ball Landed On: 6 177 15 24 Game 1: Red 2: Even 3: Low Total Score: Score 2 4 7

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

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

1. Describe the types of power that effective leaders employ

Answered: 1 week ago