Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a python script that will compute and display information for a hotel rese

ID: 3574197 • Letter: W

Question

Write a python script that will compute and display information for a hotel reservation. The customer will enter(via input statements )(in the specified order)

1.)The room type code (garden,suite,penthouse)

2.)The floor(lower,upper,concierge)

3.)The bed sizes(king,queen)

4,)The number of nights for the stay(an interger)

The program will compute the amount of money that the customer will be billed, based on the customers reservation requirements.

1.) Garden rooms cost $89/night; suites cost $189/night; penthouse cost $300/night

2.)The lower floors add no cost; upper floors add $20/night; concierge floor adds $55/night

3.) King size beds add $5/night; Queen size beds add $2/night

Print a final statement that repeats the reservation details and the total cost.

Explanation / Answer

total_cost=0
room_type = raw_input('Enter Room Type:')
print room_type;
if room_type.lower() == "garden":
   total_cost+=89
   print total_cost
elif room_type.lower() == "suite":
   total_cost+=189
   print total_cost
elif room_type.lower() == "penthouse":
   total_cost+=300
   print total_cost
floor = raw_input('Enter Floor:')
print floor;
if floor.lower() == "lower":
   total_cost+=0;
   print total_cost
elif floor.lower() == "upper":
   total_cost+=20
   print total_cost
elif floor.lower() == "concierge":
   total_cost+=55
   print total_cost
bed_size = raw_input('Enter Bed Size:')
print bed_size;
if bed_size.lower() == "king":
   total_cost+=5;
   print total_cost
elif bed_size.lower() == "queen":
   total_cost+=2
   print total_cost
days = raw_input('Enter Number of days:')
print total_cost
print days;
total_cost = total_cost * int(days)
print total_cost

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote