Question: Do problem 1 through 3 and submit for each problem a .py file a screenshot of the result Problem 1 (20 Points): Area of Rectangles
Do problem 1 through 3 and submit for each problem
- a .py file
- a screenshot of the result
Problem 1 (20 Points): Area of Rectangles
The area of a rectangle is the rectangles length times its width. Write a program that asks
for the length and width of two rectangles. The program should tell the user which rectangle
has the greater area, or if the areas are the same.
Problem 2 (25 Points): 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 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. The program should display an error message if the user enters a number that is outside the range of 0 through 36.
Problem 3 (25 Points): Money Counting Game
Create a change-counting game that gets the user to enter the number of coins required to make exactly one dollar. The program should prompt the user to enter the number of pennies, nickels, dimes, and quarters. If the total value of the coins entered is equal to one dollar, the program should congratulate the user for winning the game. Otherwise, the program should display a message indicating whether the amount entered was more than or less than one dollar.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
