Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( I need to solution for question three quickly please it is python language ) - Convert the following for loop into a while loop

(
I need to solution for question three quickly please it is python language)
- Convert the following for loop into a while loop
(30 Pts
While Loop (Write your answer below)
]
while a, and (100,0,-1) :
if x%+10==0 :
and apt (x)
what (n)
Q3- Write a Python program that does exactly as the following scenario requires:
An amusement park gives bonus games depending to the amount of games Dlayed. Customers will enter the total number of games they have played during the day to the program you will write. The program will make sure that the customer has entered a positive value to continue running or warn them to enter one and stop. The program will find the bonth's games earned by using the "Conversion Table" and print the result exacthy as in the following example*:
(40 Pts.)
n=[]
for x in range (100,0,-1) : if x%10==0 : n.append (x) print((n)
For Loop
mple: Sample output of the program when the customer enters 17
es played:17 Bonus Games: 4**(Whe the spuce solow efficlently, No extra paperif)
A
es played:17 Bonus Games: 4
if p loged
image text in transcribed

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

Master The Art Of Data Storytelling With Visualizations

Authors: Alexander N Donovan

1st Edition

B0CNMD9QRD, 979-8867864248

More Books

Students also viewed these Databases questions

Question

What are the different methods available for decision making?

Answered: 1 week ago