91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

基于Python的酒店管理系統

資源截圖

代碼片段和文件信息

class?hotelfarecal:

????def?__init__(selfrt=‘‘s=0p=0r=0t=0a=1800name=‘‘address=‘‘cindate=‘‘coutdate=‘‘rno=101):

????????print?(“\n\n*****WELCOME?TO?HEWING?HOTEL*****\n“)

????????self.rt=rt

????????self.r=r

????????self.t=t

????????self.p=p

????????self.s=s
????????self.a=a
????????self.name=name
????????self.address=address
????????self.cindate=cindate
????????self.coutdate=coutdate
????????self.rno=rno
????def?inputdata(self):
????????self.name=input(“\nEnter?your?name:“)
????????self.address=input(“\nEnter?your?address:“)
????????self.cindate=input(“\nEnter?your?check?in?date:“)
????????self.coutdate=input(“\nEnter?your?checkout?date:“)
????????print(“Your?room?no.:“self.rno“\n“)
????????
????def?roomrent(self):#sel1353

????????print?(“We?have?the?following?rooms?for?you:-“)

????????print?(“1.??type?A---->rs?6000?PN\-“)

????????print?(“2.??type?B---->rs?5000?PN\-“)

????????print?(“3.??type?C---->rs?4000?PN\-“)

????????print?(“4.??type?D---->rs?3000?PN\-“)

????????x=int(input(“Enter?Your?Choice?Please->“))

????????n=int(input(“For?How?Many?Nights?Did?You?Stay:“))

????????if(x==1):

????????????print?(“you?have?opted?room?type?A“)

????????????self.s=6000*n

????????elif?(x==2):

????????????print?(“you?have?opted?room?type?B“)

????????????self.s=5000*n

????????elif?(x==3):

????????????print?(“you?have?opted?room?type?C“)

????????????self.s=4000*n

????????elif?(x==4):
????????????print?(“you?have?opted?room?type?D“)

????????????self.s=3000*n

????????else:

????????????print?(“please?choose?a?room“)

????????print?(“your?room?rent?is?=“self.s“\n“)

????def?restaurentbill(self):

????????print(“*****RESTAURANT?MENU*****“)

????????print(“1.water----->Rs20““2.tea----->Rs10““3.breakfast?combo--->Rs90““4.lunch---->Rs110““5.dinner--->Rs150““6.Exit“)


????????while?(1):

????????????c=int(input(“Enter?your?choice:“))


????????????if?(c==1):
????????????????d=int(input(“Enter?the?quantity:“))
????????????????self.r=self.r+20*d

????????????elif?(c==2):
?????????????????d=int(input(“Enter?the?quantity:“))
?????????????????self.r=self.r+10*d

????????????elif?(c==3):
?????????????????d=int(input(“Enter?the?quantity:“))
?????????????????self.r=self.r+90*d

????????????elif?(c==4):
?????????????????d=int(input(“Enter?the?quantity:“))
?????????????????self.r=self.r+110*d

????????????elif?(c==5):
?????????????????d=int(input(“Enter?the?quantity:“))
?????????????????self.r=self.r+150*d

????????????elif?(c==6):
????????????????break;
????????????else:
????????????????print(“Invalid?option“)

????????print?(“Total?food?Cost=Rs“self.r“\n“)

????def laundrybill(self):
????????print?(“******LAUNDRY?MENU*******“)

????????print?(“1.Shorts----->Rs3““2.Trousers----->Rs4““3.Shirt--->Rs5““4.Jeans---->Rs6““5.Girlsuit--->Rs8““6.Exit“)

????????while?(1):
????????????#brought?to?you?by?code-projects.org

????????????e=int(input(“Enter?your?choice:“))

????????????if?(e==1):
????????????????f=int(input(“Enter?the?quantity:

評論

共有 條評論