Wednesday
October 1, 2014

Homework Help: Python Help

Posted by Matthew on Wednesday, July 3, 2013 at 12:48am.

# Cis108 07/03/2014
# The PCCC Palace Hotel - Final Bill
# To write a bill per party regarding there stay at the Palace Hotel including there billing invoice



# Ask the user there name and number of days they will be staying in the Palace
customer = input ("Enter customers name : ")

days = input ("Enter the number of days in the hotel : ")

#List all the options of RoomUsed Rates and define which one the guest chooses

print("Press 1 for Single room One bed - $225.00")
print("Press 2 for Family room double bed - $325.00")
print("Press 3 for Suite $ 550.00")

#Explain to the computer which choice the user wants as for the RoomUsed options

#Ask the user which option they want - single,family,or suite

RoomUsed= input("Please enter which Room you would like to stay in ")

RoomUsed = []
if RoomUsed == '1':
RoomUsed == 225
if RoomUsed == '2':
RoomUsed == 325
if RoomUsed == '3':
RoomUsed == 550




print("Press 0 for No Internet Access")
print("Press 1 for Wireless internet access 9.95")
print("Press 2 for Wired internet access for 5.95")

InternetAccess= input("Would you like access to the Internet ? ")

InternetAccess = []
if InternetAccess == '0':
InternetAccess == 0
if InternetAccess == '1':
InternetAccess == 9.95
if InternetAccess == '2':
InternetAccess == 5.95



print("Press 0 for no tv")
print("Press 1 for cable tv 9.95")
print("Press 2 for basic channels 2.95")

Costoftv= input("Would you like to use the TV ? ")

Costoftv = []
if Costoftv == '0':
Costoftv == 0
if Costoftv == '1':
Costoftv == 9.95
if Costoftv == '2':
Costoftv == 2.95



#I have taken all the users specific input from there specific order

print("\r\n")



# Performing a line break to clean up the seperation between lines

print("\t\t\t\t\t\t Invoice")
print("\t\tPCCC Palace Hotel")
print(customer, "'s Billing Statement")
print("Number of Days in Hotel: ",days)
print("Room Charges: ", RoomUsed)
print("Internet Charges: ", InternetAccess)
print("Television Charges: ", Costoftv)
totalcharges = print("Total Charges: ", RoomUsed + InternetAccess + Costoftv)
localtaxes = print("Local Taxes: ",int(totalcharges * float(.035)))
print("\t\tTotal Due\t\t\t", totalcharges + localtaxes)
print("\t\tThank You For Using PCCC Palace Hotel. Hope To See You Again.")


# Performing a line break to clean up the seperation between lines

print("PCCC Palace Hotel Invoice")



done = input ( "Please press the Enter key to close the window")

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

math - tom saved $550 to go on a school trip. the cost for a hotel room, ...
Algebra 1 - A theater group made appearances in two countries. The hotel charges...
Algebra 1 - A theater group made appearances in two countries. The hotel charges...
Algebra - A theater group made appearances in two cities. The hotel charges ...
math - A theater group made appearances in two states. The hotel charges before ...
math - A theater group made appearances in two cities. The hotel charges before...
algebra - A theater group made appearances in two cities. The hotel charges ...
math - A theater group made appearances in two cities. The hotel charges before...
English - 1. The emperor could not get back to the palace. 2. The emperor could ...
math - Help pleaseeee The Hotel Regal has 500 rooms. Currently the hotel is ...

Search
Members