酒店房间系统java代码 基于java的酒店管理系统源码
java面试题:酒店预订!
public static void main(String[] args) {
创新互联专注于盐田企业网站建设,成都响应式网站建设,商城开发。盐田网站建设公司,为盐田等地区提供建站服务。全流程按需搭建网站,专业设计,全程项目跟踪,创新互联专业和态度为您提供的服务
Scanner input = new Scanner(System.in);
System.out.println("是否是会员?y/n");
String H = input.next();
System.out.println("请输入入住日期:");
System.out.println("例如2009-03-16");
String in = input.next();
System.out.println("请输离开日期:");
System.out.println("例如2009-03-16");
String out = input.next();
//String in = s.substring(5,15);
//String out = s.substring(15,26);
//System.out.println(in+" "+out);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c1 = Calendar.getInstance();
Calendar c2 = Calendar.getInstance();
try {
c1.setTime(sdf.parse(in));
c2.setTime(sdf.parse(out));
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
long time1 = c1.getTimeInMillis();
long time2 = c2.getTimeInMillis();
long tian = (time2-time1)/(1000*24*3600);
long tian1 = tian;
System.out.println("tian "+tian);
int week1 = c1.get(Calendar.DAY_OF_WEEK)-1;
//System.out.println(week1);
//int week2 = c2.get(Calendar.DAY_OF_WEEK)-1;
//System.out.println(week2);
int count = 0;
while(tian10){
if(week1 == 6 || week1==0){
count++;
}
if(week1==6){
week1 = 0;
week1--;
}
tian1--;
week1++;
}
System.out.println("count "+count);
long rujia;
long qitian;
long hanting;
if(H.equals("y")){
rujia = (tian-count)*80+count*80;
System.out.println("tian "+tian);
qitian = (tian-count)*110+count*50;
hanting = (tian-count)*100+count*40;
}else{
rujia = (tian-count)*110+count*90;
qitian = (tian-count)*160+count*60;
hanting = (tian-count)*220+count*150;
}
System.out.println("tian " + tian);
System.out.println("rujia "+rujia);
System.out.println("hanting "+hanting);
System.out.println("qitian "+qitian);
if(rujiaqitian rujiahanting){
System.out.println("如家");
}else if(qitianrujia qitianhanting){
System.out.println("七天");
}else if(hantingrujia hantingqitian){
System.out.println("汉庭");
}else if(hanting==rujia || hanting==qitian){
System.out.println("汉庭");
}else if(qitian==rujia qitianhanting){
System.out.println("七天");
}
}
我没怎么测试 自己测测吧 还有一些约束用户输入啥的 严谨性什么的
求 有关《酒店管理系统设计与实现》的 毕业设计论文及JAVA源代码,B/S结构的
你好!
恒信工作室,专业计算机毕业设计辅导,全程服务,淘宝交易,安全可靠!
打字不易,采纳哦!
用java做一个酒店管理系统,打算做3个入口,用户一个入口,管理员一个入口,酒店老板一个入口。老板
老板关心的是无疑是销售额和业绩
你可以分一下几个模块考虑
酒店自身的营业值 如一个月内的收入情况 哪个时间段是营业高峰期 哪种形式的房间最受欢迎等等
其次 还应该可以查看手下员工的信息 与 他们的营业效率登登
怎么用JAVA创建一个酒店管理系统登录界面
tr align="right"
td用户名:/td
td
s:textfield name="name" onkeypress="if(window.event.keyCode==13){document.frm.password.focus();}"/
/td
/tr
tr
td密 码:/td
tds:password name="password" onkeypress="if(window.event.keyCode==13){document.frm.rand.focus();}"/
/td
/tr
tr align="right"
td验证码: /td
td
s:textfield name="rand" size="5" onkeypress="if(window.event.keyCode==13){login();}"/s:textfield /td
/tr
tr
tdinput type="button" value="登陆"/td
/tr
分享题目:酒店房间系统java代码 基于java的酒店管理系统源码
文章源于:http://azwzsj.com/article/dopghhe.html