
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%
Hello. The
Override
10
9
...
What am I doing wrong? Thank you!

Transcribed Image Text:hwenig_lab09.py - /Users/harrisonwenig/Desktop/hwenig_lab09.py (3.9.1)
def checkSeconds (timeInput):
if (timeInput>10):
print("Override")
timeInput=10
return(timeInput)
if (timeInput<3):
print("Override")
timeInput=3
return(timeInput)
def countdown(timeInput):
while(timeInput>0):
print (timeInput)
timeInput=timeInput-1
if (timeInput==0):
print("Blast off!")
def main():
timeInput=int(input("Seconds until launch: "))
checkSeconds (timeInput)
countdown (timeInput)
main()

Transcribed Image Text:>>>
RESTART: /Users/harrisonwenig/Desktop/hwenig_lab09.py
Seconds until launch: 13
Override
13
12
11
10
9
8
7
6
5
4
3
2
Blast off!
>>>
Ln: 325 Col: 4
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 4 steps with 3 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- python Write a program that does temperature converter", "- The user will enter if he wants the result in Celsius or in Fahrenheit. Use the input function to read this option. \n", "- Ask the user the value of the temperature he wants to convert. Use the input function to read this value and convert accordingly.\n", "- If the user wants the temperature in Fahrenheit compute: $ Fahrenheit = Celsius5/9+32$.\n", "- If the user wants the Celsius compute as follows: $ C = (F-32)5/9 $.\n", "\n", "Print the converted temperature and show the unit, like 23.5 C or 67.1 F."arrow_forwardThink of the calculation program completed in week2. What if you wanted to show what the teacher discount amount would be for 5%, 10%, 15%, 20%, and 25%. Write a loop program for the calculated program in week2 to show the teacher discount amount for the different percentages listed above. Below, you will see the sample program from week2. Your program should include: • Variables for each part of problem. See example below: Eg. $apple = 10, $orange = 15, $discount = 0.2 <!DOCTYPE html> <html> <body> <?php $apple = 10; $orange = 15; $discount = 0.2; $subtot = $apple + $orange; echo "Your total before the 20% discount is: "; echo $subtot; $caldiscount = ($apple + $orange) * $discount; $tot = ($apple + $orange) - $caldiscount; echo "<br>Your total after the discount is: "; echo $tot; ?> </body> </html>arrow_forwardWrite a creative quiz program with three original questions that you make up as specified below. Immediately after each question is answered, the program should respond positively to right answers or provide the correct answer if the user's answer is wrong. The quiz doesn't have to be scored. One question should require user input of type intOne question should require user input of type floatOne should require a string input Written in pythonarrow_forward
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education