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 15:50
The file sales data.xlsx contains monthly sales amounts for 40 sales regions. write a sub that uses a for loop to color the interior of every other row (rows 3, 5, etc.) gray. color only the data area, columns a to m. (check the file colors in excel.xlsm to find a nice color of gray.)
Answers: 2
question
Computers and Technology, 23.06.2019 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
question
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
question
Computers and Technology, 24.06.2019 21:00
Which device has the most limited computing functionality?
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, 26.04.2021 23:20
question
Mathematics, 26.04.2021 23:20
question
Social Studies, 26.04.2021 23:20
question
Mathematics, 26.04.2021 23:20
question
Computers and Technology, 26.04.2021 23:20
question
Mathematics, 26.04.2021 23:20
question
Mathematics, 26.04.2021 23:20