Python Help

posted by .

# 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")

  • Python Help -

    The issue im having is with creating the invoice. The total charges and local taxes continues to error out

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. math

    A theater group made appearances in two cities. The hotel charges before tax in the second city were 1500 lower than in the first. The tax on the hotel bill was 5.5% in the first city and 10% in the second. After the trip, the total …
  2. math

    A theater group made appearances in two states. The hotel charges before tax in the second state were $1000 lower than in the first. The tax on the hotel bill was 4% in the first state and 9% in the second. After the trip, the total …
  3. algebra

    A theater group made appearances in two cities. The hotel charges before tax in the second city were lower than in the first. The tax on the hotel bill was in the first city and in the second. After the trip, the total tax paid on …
  4. math

    A theater group made appearances in two cities. The hotel charges before tax in the second city were lower than in the first. The tax on the hotel bill was in the first city and in the second. After the trip, the total tax paid on …
  5. Algebra

    A theater group made appearances in two cities. The hotel charges before tax in the second city were $1,000 lower than in the first. The tax on the hotel bill was 5% in the first city and 4% in the second. After the trip, the total …
  6. math

    tom saved $550 to go on a school trip. the cost for a hotel room, including tax, is $80 per night. write and inequality to show the number of nights tom can stay at the hotel.
  7. Algebra 1

    A theater group made appearances in two countries. The hotel charges before tax in the second country were $500 lower than in the first. The tax on the hotel bill was 5.5% in the first country and 4.5%in the second. After the trip, …
  8. Algebra 1

    A theater group made appearances in two countries. The hotel charges before tax in the second country were $500 lower than in the first. The tax on the hotel bill was 5.5% in the first country and 4.5%in the second. After the trip, …
  9. 5th grade math

    the park family is staying at a hotel near an amusement park for 3 nights. the hotel costs $129 per night. how much will their 3-night stay in the hotel cost.
  10. math

    One man went to a hotel and took a menu card that was written on. Hotel says that if you take anything, they will charge rs.25, but a bill came for rs.75. How is that possible?

More Similar Questions