Create structured, commented Python 3 code to determine any individual number's position on the roulette table. The user should input any number between 0-36 and the program should calculate and output: 1. If the chosen number is odd, even or zero 2. If the chosen number is high, low or zero 3. If the chosen number is first dozen, second dozen, third dozen or zero 4. If the chosen number is in the first column, second column, third column or zero

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 8E: In the game Rock paper Scissors, two players simultaneously choose one of three options: rock,...
icon
Related questions
Question
100%
ASSIGNMENT BRIEF
Introduction
Roulette is a popular casino game named after the French word for 'little wheel'. In the game, players
may choose to place bets on single numbers or various groupings which will determine their payout.
To determine the winning number a ball is spun in the opposite direction of a spinning wheel. As the
ball loses momentum it comes to rest in one of the slots of the wheel.
Winnings are then paid to anyone who places a successful bet.
n 00
2.
1ST12
2ND12
3RD12
1T018 EVEN
ODD |19то36
Figure 1: Layout of a European roulette table
Numbers can be classified in several ways:
1. Red or Black
2. Odd or Even
3. High or Low - if a number is in the first half of the table it is considered low (1-18).
If a number is in the second half of the table, it is considered high (19-36).
4. Dozens - a number can be in the first dozen(1-12), second dozen (13-24) or third dozen (25-36)
5. Columns - A number may be in any of the three columns of the table
6. Zero - the number '0' is green in colour and has its own classification
Your Task
Create structured, commented Python 3 code to determine any individual number's position on the
roulette table.
The user should input any number between 0-36 and the program should calculate and output:
1. If the chosen number is odd, even or zero
2. If the chosen number is high, low or zero
3. If the chosen number is first dozen, second dozen, third dozen or zero
4. If the chosen number is in the first column, second column, third column or zero
16 17| 18.
19 20 21.
Iz oz L61.
tz sz zz
34
35
2ro1| 2r01 | 2ro1
Transcribed Image Text:ASSIGNMENT BRIEF Introduction Roulette is a popular casino game named after the French word for 'little wheel'. In the game, players may choose to place bets on single numbers or various groupings which will determine their payout. To determine the winning number a ball is spun in the opposite direction of a spinning wheel. As the ball loses momentum it comes to rest in one of the slots of the wheel. Winnings are then paid to anyone who places a successful bet. n 00 2. 1ST12 2ND12 3RD12 1T018 EVEN ODD |19то36 Figure 1: Layout of a European roulette table Numbers can be classified in several ways: 1. Red or Black 2. Odd or Even 3. High or Low - if a number is in the first half of the table it is considered low (1-18). If a number is in the second half of the table, it is considered high (19-36). 4. Dozens - a number can be in the first dozen(1-12), second dozen (13-24) or third dozen (25-36) 5. Columns - A number may be in any of the three columns of the table 6. Zero - the number '0' is green in colour and has its own classification Your Task Create structured, commented Python 3 code to determine any individual number's position on the roulette table. The user should input any number between 0-36 and the program should calculate and output: 1. If the chosen number is odd, even or zero 2. If the chosen number is high, low or zero 3. If the chosen number is first dozen, second dozen, third dozen or zero 4. If the chosen number is in the first column, second column, third column or zero 16 17| 18. 19 20 21. Iz oz L61. tz sz zz 34 35 2ro1| 2r01 | 2ro1
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
C-string
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT