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 10:50
Write a 3-4 page apa formatted paper comparing your organization’s it strategy with the best practices outlined in your course text. content should include, but not be limited to: developing and delivering on the it value, developing it strategy for the business value and linking it to business metrics. your paper should include an abstract and a conclusion and a reference page with 3-5 references
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
Write a function so that the main program below can be replaced by the simpler code that calls function original main program: miles_per_hour = float( minutes_traveled = float( hours_traveled = minutes_traveled / 60.0 miles_traveled = hours_traveled * miles_per_hour print('miles: %f' % miles_traveled) sample output with inputs: 70.0 100.0 miles: 116.666667
Answers: 3
question
Computers and Technology, 23.06.2019 01:50
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
The processing of data in a computer involves the interplay between its various hardware components.
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
Questions on the website: 13722359