Question: (+5) Write a Python program that provides a solution for Problem #8 in Lab 00 Recall the problem read as follows: Aaron is staying at

(+5) Write a Python program that provides a solution for Problem #8 in Lab 00 Recall the problem read as follows:

Aaron is staying at a hotel that charges $100 per night plus tax for a room. A tax of 8% is applied to the room rate per day and an additional one-time fee of $5.00 is charged by the hotel. Which of the following represents total charge, in dollars, for staying x nights

Correct answer is b

(100 + .08*x) + 5

1.08(100*x) + 5 correct answer

1.08(100*x + 5)

1.08(100 + 5)* x

Template for your consideration

T = .08 # tax for each day F = 5.00 # one time fee R = 100 # room rate d = int(input("Enter the number of days stayed at the hotel ")) c = 0 # initialize cost variable if (d > 0): # days > 0 # calculations here to compute the solution # remember to use constants T R and F in your calculations # use the correct answer provided print(" the cost for ", d, " days is ", c ) else: # here m is <= 300 # s <= 0 print(" Invalid entry for days ", d )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!