资源简介
基于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:
相关资源
- python语言实现的基于opencv的表针识别
- 打砖块
- python数据结构
- python实现SGBM图像匹配算法
- python实现灰度直方图均衡化
- scrapy_qunar_one
- Python学习全系列教程永久可用
- python简明教程.chm
- 抽奖大转盘python的图形化界面
- 双边滤波器实验报告及代码python
- python +MYSQL+HTML实现21蛋糕网上商城
- Python-直播答题助手自动检测出题搜索
- OpenCV入门教程+OpenCV官方教程中文版
- Python 串口工具源码+.exe文件
- Python开发的全栈股票系统.zip
- Python操作Excel表格并将其中部分数据写
- python书籍 PDF
- 利用python绘制散点图
- python+labview+No1.vi
- 老男孩python项目实战
- python源码制作whl文件.rar
- python3.5可用的scipy
- PYTHON3 经典50案例.pptx
- 计算机科学导论-python.pdf
- python模拟鼠标点击屏幕
- windows鼠标自动点击py脚本
- 鱼c小甲鱼零基础学python全套课后题和
- Python 练习题100道
- Practical Programming 2nd Edition
- wxPython Application Development Cookbook
评论
共有 条评论