Mini Project Report Java Hotel Manegment System Done Clear
Mini Project Report Java Hotel Manegment System Done Clear
On
HOTEL
MANAGEMENT SYSTEM
Submitted By:
Nilesh Mahajan
DIPLOMA ENGINEERING
In
Smt. Sharachchandrika Suresh Patil
Institute of Technology (Polytechnic)
Chopda-2021-22
Page 1
HOTEL MANAGEMEN SYSTEM REPORT
CERTIFICATE
Certified that this is a bonafide record of the project work titled
HOTEL MANAGEMEN
SYSTEM
Done by
Page 2
HOTEL MANAGEMEN SYSTEM REPORT
ACKNOWLEDGEMENT
Page 3
HOTEL MANAGEMEN SYSTEM REPORT
Index
CONTENT PAGES
ACKNOWLEDGEMENT 1
ABSTRACT 5
1.INTRODUCTION 6
1.1 OPERATION ENVIRONMENT 7
1.2 ADWANTAGE
1.3 Proposed System Features:
2. SYSTEM ANALYSIS 8
2.1 Software requirement Specification 9
2.1 Hardware Requirement Specification:
2.3 Functional Requirements
2.4 Report Generation
3. PERFOMANCE REQUIIREMENT 10
Page 4
HOTEL MANAGEMEN SYSTEM REPORT
ABSTRACT
Page 5
HOTEL MANAGEMEN SYSTEM REPORT
CHAPTER 1. INTRODUCTION
Page 6
HOTEL MANAGEMEN SYSTEM REPORT
Page 7
HOTEL MANAGEMEN SYSTEM REPORT
Page 8
HOTEL MANAGEMEN SYSTEM REPORT
Processor Computer Hp i3
Operating system Window7/10/11,Linux
Memory 8GB Ram
Hard Disk Upto 256 rom or more
Page 9
HOTEL MANAGEMEN SYSTEM REPORT
Jdk
Page 10
HOTEL MANAGEMEN SYSTEM REPORT
Login
Hotel Management
System
Detail
Room Detail
Customer Checkout All Detail
Registration Page 11
Food Detail Add room
Detail
HOTEL MANAGEMEN SYSTEM REPORT
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Scanner;
int itemno;
int quantity;
float price;
this.itemno=itemno;
this.quantity=quantity;
switch(itemno)
case 1:price=quantity*50;
break;
case 2:price=quantity*60;
break;
case 3:price=quantity*70;
break;
case 4:price=quantity*30;
break;
String name;
Page 12
HOTEL MANAGEMEN SYSTEM REPORT
String contact;
String gender;
Singleroom()
this.name="";
this.name=name;
this.contact=contact;
this.gender=gender;
String name2;
String contact2;
String gender2;
Doubleroom()
this.name="";
this.name2="";
this.name=name;
this.contact=contact;
this.gender=gender;
this.name2=name2;
this.contact2=contact2;
this.gender2=gender2;
@Override
Page 13
HOTEL MANAGEMEN SYSTEM REPORT
class Hotel
String gender2="";
System.out.println("****************************");
name = sc.next();
contact=sc.next();
gender = sc.next();
if(i<3)
name2 = sc.next();
contact2=sc.next();
gender2 = sc.next();
System.out.println("****************************");
switch (i) {
Page 14
HOTEL MANAGEMEN SYSTEM REPORT
break;
break;
break;
break;
default:System.out.println("Wrong option");
break;
int j;
int rn;
switch (i) {
case 1:
for(j=0;j<hotel_ob.luxury_doublerrom.length;j++)
if(hotel_ob.luxury_doublerrom[j]==null)
System.out.print(j+1+",");
System.out.println("****************************");
System.out.println("****************************");
try{
rn=sc.nextInt();
rn--;
if(hotel_ob.luxury_doublerrom[rn]!=null)
CustDetails(i,rn);
catch(Exception e)
System.out.println("Invalid Option");
Page 15
HOTEL MANAGEMEN SYSTEM REPORT
return;
break;
case 2:
for(j=0;j<hotel_ob.deluxe_doublerrom.length;j++)
if(hotel_ob.deluxe_doublerrom[j]==null)
System.out.print(j+11+",");
try{
rn=sc.nextInt();
rn=rn-11;
if(hotel_ob.deluxe_doublerrom[rn]!=null)
CustDetails(i,rn);
catch(Exception e)
System.out.println("Invalid Option");
return;
break;
case 3:
for(j=0;j<hotel_ob.luxury_singleerrom.length;j++)
if(hotel_ob.luxury_singleerrom[j]==null)
System.out.print(j+31+",");
try{
rn=sc.nextInt();
rn=rn-31;
if(hotel_ob.luxury_singleerrom[rn]!=null)
Page 16
HOTEL MANAGEMEN SYSTEM REPORT
CustDetails(i,rn);
catch(Exception e)
System.out.println("Invalid Option");
return;
break;
case 4:
for(j=0;j<hotel_ob.deluxe_singleerrom.length;j++)
if(hotel_ob.deluxe_singleerrom[j]==null)
System.out.print(j+41+",");
try{
rn=sc.nextInt();
rn=rn-41;
if(hotel_ob.deluxe_singleerrom[rn]!=null)
CustDetails(i,rn);
catch(Exception e)
System.out.println("Invalid Option");
return;
break;
default:
break;
System.out.println("Room Booked");
switch (i) {
Page 17
HOTEL MANAGEMEN SYSTEM REPORT
case 1:System.out.println("Number of double beds : 1\nAC : Yes\nFree breakfast : Yes\nCharge per day:4000
");
break;
case 2:System.out.println("Number of double beds : 1\nAC : No\nFree breakfast : Yes\nCharge per day:3000
");
break;
case 3:System.out.println("Number of single beds : 1\nAC : Yes\nFree breakfast : Yes\nCharge per day:2200
");
break;
case 4:System.out.println("Number of single beds : 1\nAC : No\nFree breakfast : Yes\nCharge per day:1200
");
break;
default:
break;
int j,count=0;
switch (i) {
case 1:
for(j=0;j<10;j++)
if(hotel_ob.luxury_doublerrom[j]==null)
count++;
break;
case 2:
for(j=0;j<hotel_ob.deluxe_doublerrom.length;j++)
if(hotel_ob.deluxe_doublerrom[j]==null)
count++;
break;
case 3:
for(j=0;j<hotel_ob.luxury_singleerrom.length;j++)
if(hotel_ob.luxury_singleerrom[j]==null)
count++;
Page 18
HOTEL MANAGEMEN SYSTEM REPORT
break;
case 4:
for(j=0;j<hotel_ob.deluxe_singleerrom.length;j++)
if(hotel_ob.deluxe_singleerrom[j]==null)
count++;
break;
default:
break;
System.out.println("****************************");
System.out.println("****************************");
double amount=0;
String list[]={"Sandwich","Pasta","Noodles","Coke"};
System.out.println("\n*******");
System.out.println(" Bill:-");
System.out.println("*******");
switch(rtype)
case 1:
amount+=4000;
System.out.println("\n===============");
System.out.println("===============");
System.out.println("-------------------------");
for(Food obb:hotel_ob.luxury_doublerrom[rn].food)
amount+=obb.price;
System.out.printf(format,list[obb.itemno-1],obb.quantity,obb.price );
Page 19
HOTEL MANAGEMEN SYSTEM REPORT
break;
case 2:amount+=3000;
System.out.println("===============");
System.out.println("-------------------------");
for(Food obb:hotel_ob.deluxe_doublerrom[rn].food)
amount+=obb.price;
System.out.printf(format,list[obb.itemno-1],obb.quantity,obb.price );
break;
case 3:amount+=2200;
System.out.println("===============");
System.out.println("-------------------------");
for(Food obb:hotel_ob.luxury_singleerrom[rn].food)
amount+=obb.price;
System.out.printf(format,list[obb.itemno-1],obb.quantity,obb.price );
break;
case 4:amount+=1200;
System.out.println("===============");
System.out.println("-------------------------");
amount+=obb.price;
System.out.printf(format,list[obb.itemno-1],obb.quantity,obb.price );
Page 20
HOTEL MANAGEMEN SYSTEM REPORT
break;
default:
System.out.println("Not valid");
int j;
char w;
switch (rtype) {
case 1:
if(hotel_ob.luxury_doublerrom[rn]!=null)
else
System.out.println("Empty Already");
return;
w=sc.next().charAt(0);
if(w=='y'||w=='Y')
bill(rn,rtype);
hotel_ob.luxury_doublerrom[rn]=null;
System.out.println("Deallocated succesfully");
break;
case 2:
if(hotel_ob.deluxe_doublerrom[rn]!=null)
else
System.out.println("Empty Already");
return;
w=sc.next().charAt(0);
if(w=='y'||w=='Y')
Page 21
HOTEL MANAGEMEN SYSTEM REPORT
bill(rn,rtype);
hotel_ob.deluxe_doublerrom[rn]=null;
System.out.println("Deallocated succesfully");
break;
case 3:
if(hotel_ob.luxury_singleerrom[rn]!=null)
else
System.out.println("Empty Already");
return;
w=sc.next().charAt(0);
if(w=='y'||w=='Y')
bill(rn,rtype);
hotel_ob.luxury_singleerrom[rn]=null;
System.out.println("Deallocated succesfully");
break;
case 4:
if(hotel_ob.deluxe_singleerrom[rn]!=null)
else
System.out.println("Empty Already");
return;
w=sc.next().charAt(0);
if(w=='y'||w=='Y')
bill(rn,rtype);
hotel_ob.deluxe_singleerrom[rn]=null;
System.out.println("Deallocated succesfully");
Page 22
HOTEL MANAGEMEN SYSTEM REPORT
break;
default:
break;
int i,q;
char wish;
try{
do
i = sc.nextInt();
System.out.print("Quantity- ");
q=sc.nextInt();
switch(rtype){
break;
break;
break;
break;
wish=sc.next().charAt(0);
}while(wish=='y'||wish=='Y');
catch(NullPointerException e)
catch(Exception e)
Page 23
HOTEL MANAGEMEN SYSTEM REPORT
System.out.println("Cannot be done");
holder hotel_ob;
write(holder hotel_ob)
this.hotel_ob=hotel_ob;
@Override
try{
oos.writeObject(hotel_ob);
catch(Exception e)
try
if(f.exists())
Hotel.hotel_ob=(holder)ois.readObject();
int ch,ch2;
char wish;
x:
Page 24
HOTEL MANAGEMEN SYSTEM REPORT
do{
System.out.println("*********Developed By********\n");
System.out.println("*********Nilesh Mahajan*********\n");
System.out.println("************************************************************************
*************************");
System.out.println("************************************************************************
**************************");
ch = sc.nextInt();
switch(ch){
case 1: System.out.println("\nChoose room type :\n1.Luxury Double Room \n2.Deluxe Double Room \
n3.Luxury Single Room \n4.Deluxe Single Room\n");
ch2 = sc.nextInt();
Hotel.features(ch2);
break;
case 2:System.out.println("\nChoose room type :\n1.Luxury Double Room \n2.Deluxe Double Room \
n3.Luxury Single Room\n4.Deluxe Single Room\n");
ch2 = sc.nextInt();
Hotel.availability(ch2);
break;
case 3:System.out.println("\nChoose room type :\n1.Luxury Double Room \n2.Deluxe Double Room \
n3.Luxury Single Room\n4.Deluxe Single Room\n");
ch2 = sc.nextInt();
Hotel.bookroom(ch2);
break;
case 4:
ch2 = sc.nextInt();
if(ch2>60)
else if(ch2>40)
Hotel.order(ch2-41,4);
else if(ch2>30)
Hotel.order(ch2-31,3);
else if(ch2>10)
Hotel.order(ch2-11,2);
else if(ch2>0)
Hotel.order(ch2-1,1);
else
Page 25
HOTEL MANAGEMEN SYSTEM REPORT
break;
case 5:
ch2 = sc.nextInt();
if(ch2>60)
else if(ch2>40)
Hotel.deallocate(ch2-41,4);
else if(ch2>30)
Hotel.deallocate(ch2-31,3);
else if(ch2>10)
Hotel.deallocate(ch2-11,2);
else if(ch2>0)
Hotel.deallocate(ch2-1,1);
else
break;
case 6:break x;
System.out.println("\nContinue : (y/n)");
wish=sc.next().charAt(0);
if(!(wish=='y'||wish=='Y'||wish=='n'||wish=='N'))
System.out.println("Invalid Option");
System.out.println("\nContinue : (y/n)");
wish=sc.next().charAt(0);
}while(wish=='y'||wish=='Y');
t.start();
catch(Exception e)
Page 26
HOTEL MANAGEMEN SYSTEM REPORT
Page 27
HOTEL MANAGEMEN SYSTEM REPORT
Page 28
HOTEL MANAGEMEN SYSTEM REPORT
CHAPTER 6 CONCLUSION
Page 29
HOTEL MANAGEMEN SYSTEM REPORT
Chapter 6 REFERENCES
▪ http://www.nileshmahajan/github.com
Page 30
HOTEL MANAGEMEN SYSTEM REPORT
Page 31