Computers and Technology

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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 15:30, austintules2005
Communication is the exchange of information. true or false?
Answers: 1
image
Computers and Technology, 22.06.2019 22:50, youngboymark123
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
image
Computers and Technology, 23.06.2019 01:00, Ltik11900
Write the command that can be used to answer the following questions. (hint: try each out on the system to check your results.) a. find all files on the system that have the word test" as part of their filename. b. search the path variable for the pathname to the awk command. c. find all files in the /usr directory and subdirectories that are larger than 50 kilobytes in size. d. find all files in the /usr directory and subdirectories that are less than 70 kilobytes in size. e. find all files in the / directory and subdirectories that are symbolic links. f. find all files in the /var directory and subdirectories that were accessed less than 60 minutes ago. g. find all files in the /var directory and subdirectories that were accessed less than six days ago. h. find all files in the /home directory and subdirectories that are empty. i. find all files in the /etc directory and subdirectories that are owned by the group bin."
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, GEEKLIFE6598
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
Answers: 1
Do you know the correct answer?
The program below has 3 errors in it. Fix this program so that it runs without errors. When running...

Questions in other subjects:

Konu
Mathematics, 12.12.2021 22:30
Konu
Social Studies, 12.12.2021 22:30
Konu
Biology, 12.12.2021 22:30