Wednesday
April 16, 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

English - 1. The emperor could not get back to the palace. 2. The emperor could ...
math - There are 7 children who are 5ft long,their total length is 3ft longer ...
English - I forgot to include these statements about a letter of inquiry to a ...
Foreign languages - Can you check these sentences, Writaecher? 1) Can you please...
Literature - I am suppose to compare/contrast Monty Python and the Holy Grail ...
English - e.g. Is the hotel closed? (What does the sentence above mean? #1 or #2...
Language arts - Can someone give me an example of a metaphor? Is a mouse in ...
English - 1. We had a problem with the hotel. 2. We had a problem about the ...
Math-stats - The playing times of 20 songs on a top-hits radio station are ...
English - Which is the best way to write this sentence. Today the Pink Palace ...

Search
Members