Question: On a roulette wheel, the pockets are numbered from 0 to 3 6 . The colors of the pockets are as follows: Pocket 0 is
On a roulette wheel, the pockets are numbered from to The colors of the pockets are as follows:
Pocket is green.
For pockets through
The oddnumbered pockets are red
The even numbered pockets are black
For pockets through
The oddnumbered pockets are black
The even numbered pockets are red
For pockets through
The oddnumbered pockets are red
The even numbered pockets are black
For pockets through
The oddnumbered pockets are black
The 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.
Note
Input Validation The program should display an error message if the user enters a number that is outside the range
through
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
