subject

The program below has 3 errors in it. Fix this program so that it runs without errors. When running it will ask the user how many people are going to a theme park and for how many days. The program will then determine the total amount for the trip. There is a discount when the trip is planned over many days. For instance the price for 1 day is $40 per day. For 2 days the price per day is $35 If the user wants to spend 3 days in the park the price is $25 per day Given the user has 4 people in their party and will be in the park 2 days, the program should print the following: Price per day: $ 35 Total for your trip: $ 280 To test your code prior to grading, click on the Code Visualizer button. Code Visualizer Codio will test your program using 4 people and 2 days. The second test will use different data, All three errors fix Check it! 10. 11 12 13 #declare variables days = int() people = int() total = float() ticket = float) #Ask user for the number of people and the number of days days input("Enter the number of days you will be in the park: ") people = int(input("Enter the number of people in your party: ")) #Determine ticket price if days = 1: price = 40 if days == 2: price = 35 else: price = 25 #Determine total cost total = people price + days #print price per day and total print("Price per day: $", price) print("Total for your trip: $", total) 14. * 15 16 17 18 19 20

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
What is the first view you place in your drawing?
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
Donnie does not have powerpoint. which method would be best for elana to save and share her presentation as is? a pdf a doc an rtf a ppt
Answers: 3
question
Computers and Technology, 24.06.2019 19:30
Which phrase is the best definition of a pivottable a a table containing data that is organized horizontally b a table used to calculate financial pivot values c a tool used to summarize data d a table containing specific formatting
Answers: 1
question
Computers and Technology, 25.06.2019 06:00
Shaniya has misspelled a scientific name in her biology report. she needs to correct it, but she has no access to a computer. she plans to use the word app on her phone without an office 365 subscription. can shaniya correct her mistake? why or why not? yes, she can navigate the window and do simple editing. yes, she can use this application for free and navigate the window. no, her document is “read-only,” so she cannot navigate the window. no, her application has limited features and she cannot access the documen
Answers: 1
You know the right answer?
The program below has 3 errors in it. Fix this program so that it runs without errors. When running...
Questions
Questions on the website: 13722367