In: Computer Science
Using Python code create a program only with beginners code.
You are taking online reservations at the The inn
Ask for your client’s name and save in a variable
Ask how many nights your client will be staying and save in a variable
Room rental is $145 per night
Sales tax is 8.5%
Habitation tax is $5 per night (not subject to sales tax)
Print out:
Output will be like:
Code will be like:
name = input("What is your name? ")
nights=int(input("How many nights?"))
roomCost=int(nights*145)
rommCostWithTax=float(roomCost*(8/100))+roomCost
HabitationTaxPerNight=5
HabitationCost=5*nights
totalCost=HabitationCost+rommCostWithTax
print ("your name is",name)
print ("room rate per night is ",145)
print ("number of nights is ", nights)
print ("room cost is ",roomCost)
print ("cost of room plus tax",rommCostWithTax)
print ("HAbitation tax per night", HabitationTaxPerNight)
print ("HAbitation cost", HabitationCost)
print ("Total cost", totalCost)
Please rate it if the above solution helps you in any way or if you have any concerns comment it, I will help you through again.