Answered step by step
Verified Expert Solution
Link Copied!

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 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
$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 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are the components of the cash budget? Describe each.

Answered: 1 week ago