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 21:30
How do you take a green screen out of the video while editing?
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Which of the following tasks is an audio technician most likely to perform while working on a nature documentary? (select all that apply). eliminating potentially distracting background noise adding sound effects making sure the lighting is adequate for a particular scene changing the narration to better match the mood of the documentary
Answers: 3
question
Computers and Technology, 23.06.2019 22:30
What would be the address of the cell, which is at the intersection of the second row and the third column in a worksheet?
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
Verify each identity[tex] \frac{csc}{cot \: x \: + \: tan \: x} = cos \: x[/tex]
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
question
Mathematics, 12.07.2019 03:00
question
Mathematics, 12.07.2019 03:00
Questions on the website: 13722363