Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need help with the bonus. ProbeEM 3 - The number 16 on the whieel ind cates a Jackpot. 0 If the number duided by 3

image text in transcribed

need help with the bonus.

ProbeEM 3 - The number 16 on the whieel ind cates a Jackpot. 0 If the number duided by 3 has a pemainder of 1 , the celur is Y ellowe a If the number duided by 3 has a permainder of 2 , the color is Red. 5ample Output. The program shoedd have No tanctions: naia - This function is the main routine. It should do the following: IDt- whee1 - This funelien has one parameles, FTt-s, which is the number of limes to spin the whised. - Use a tor loop to spin the wheel the namber of tmes speched. - Print the number of the foop iteration and the sein rates as a andsm digit between 1 and 16 insluabe. The number of the loop iterabon should start with 1 . - Aner the for loop is complete, print a meseage thaniby the user for playfing. Run this pregram. Take a sereenahof of the Teminal that ineludes the Ine showing where you started the program run with the reguts. Name the sereensiont Lab04P3-ouput.jpi. Sutmit toth fles, Lab04P3.py and Lab04P3-outputlpg, to alsektoand for crealt. BOWS OPPORTWWTY - 25 PCINTS This program is optional, but in will give you more practee with Pyithen. Il will also give you a chance to bam up to 25 adifenal points en this lab. - Green will payout 320. - Ped will ees the player $25. - Copy Lab04p3,py to another flo and name it Lab0tBonus.py. - In the rain funcion, ask the user how many time to spln the wheel. The program shoukd onty alow the user to enter numbers between 4 and 10 inclushe. Sample Outgut Collect $1:0.02 at Thank toe plesting: - Mabe aure flat the progran heads is appropriadcly updatod

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

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

Students also viewed these Databases questions