Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Window Help 56 Lab 4 [Compatibility Model t References Mailings Review View AaBbCcDdEe AabCcDdEe A Normal No Spacing Lab 4 (Chapter 3) Possible points: 100

image text in transcribed
Window Help 56 Lab 4 [Compatibility Model t References Mailings Review View AaBbCcDdEe AabCcDdEe A Normal No Spacing Lab 4 (Chapter 3) Possible points: 100 Due Date: 02/19/2018 (Monday) by 11:59 AM on the blackboard. Late submission date with a penalty: 02/21/2018 (Wednesday) by 11:59 PM on the blackboard. Problem Statement: Roulette Wheel Colors On a roulette wheel, the pockets are numbered from 0 to 36. The colors of the pockets are as follows: Pocket 0 is green. For pockets 1 through 10, the odd-numbered pockets are red and the even- numbered pockets are black. For pockets 11 through 18, the odd-numbered pockets are black and the even-numbered pockets are red For pockets 19 through 28, the odd-numbered pockets are red and the even- numbered pockets are black. For pockets 29 through 36, the odd-numbered pockets are black and even- numbered pockets are red. Write a program that asks the user to enter a pocket number and displays whether the pocket is green, red, or black. The program should display an error message if the user enters a number that is outside the range of 0 through 36. The files that you need to upload to the blackboard: 1. Algorithm 2. Flowchart 3. Roulette WheelColors.py 18

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

More Books

Students also viewed these Databases questions