Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise 4 : Fix the Errors The program below has 3 errors in it . Fix this program so that it runs without errors. When
Exercise : Fix the Errors The program below has 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 day is
$
per day. For days the price per day is
$
If the user wants to spend days in the park the price is per day. Given the user has people in their party and will be in the park days, the program should print the following: Price per day: $ Total for your trip:
$
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started