Python programming On a roulette wheel, the pockets are numbered from 0 to 36. The colors of the pockets are as follows:

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Python programming On a roulette wheel, the pockets are numbered from 0 to 36. The colors of the pockets are as follows:

Post by answerhappygod »

Python programming
On a roulette wheel, the pockets are numbered from 0 to 36. Thecolors of the pockets are as follows: Pocket 0 is green. For pockets 1 through 20, the odd-numberedpockets are red and the even-numbered pockets are black. For pockets 21 through 38, the odd-numberedpockets are black and the even-numbered pockets are red. For pockets 39 through 48, the odd-numberedpockets are red and the even-numbered pockets are black. For pockets 49 through 56, the odd-numberedpockets are black and the even-numbered pockets are red.Write a program that asks the user to enter a pocket number anddisplays whether the pocket is green, red, or black. The programshould display an error message if the user enters a number that isoutside the range of 0 through 56.Rubric -Input - 1 pointOutput - 1 pointProgram Logic - 3 pointsSubmit the Python file for this question.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply