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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education