Question: Exercise 4: Fix the Errors The program below has 3 errors in it. Fix this program so that it runs without errors. When running it



Exercise 4: Fix the Errors 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 per day. For 2 days the price per day is . If the user wants to spend 3 days in the park the price is 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 Exercise 4: Fix the Errors To run your code line by line, click on the Code Visualizer. Code Visualizer Codio will test your program using 4 people and 2 days. The second test will use different data. Check 1 failed Output: File "Content/error4.py", line 10 if days =1 : SyntaxError: invalid syntax Expected: Enter the number of days you will be in the park: Enter the number of people in your party: Price per day: $35 Total for your trip: \$280 Feedback: Make sure you have identified and fixed all 3 errors. Check 2 failed Output: File "Content/error4.py", line 10 if days =1 : SyntaxError: invalid syntax Expected: Enter the number of days you will be in the park: Enter the number of people in your party: Price per day: $40 Total for your trip: \$200
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
