Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
APPLICATION
PROJECT
ICSE 2016 2017
HOTEL RESERVATION SYSTEM
BY: -SAYAK DHARA
CLASS: X
(Unique ID-6449743)
ACKNOWLEDGEMENT
This Project would not have been possible without the guidance and the help of
several individuals who in one way or another contributed and extended their
valuable assistance in the preparation and completion of this study.
First and foremost, I express utmost gratitude to our computer Teacher whose
inputs and encouragement has been my inspiration as I hurdle over the obstacles
in the completion of this project work.
I would specially like to thank our Lab-in charge/Teacher Sukanta Dasgupta for
providing enough lab sessions to ensure proper editing and execution of the
project program.
I thank all the members of the family who always had a kind concern and
consideration regarding all my project and academic requirements.
Last but not the least, I thank my classmates for all the cooperation and resources
they extended to me. I specially thank to our Principal Sir for his selfless interest
in my project.
TABLE OF CONTENTS
1
Introduction
Program Statement
Program Listing
6-16
Sample Output
17-22
Variable
23
Conclusion
24
Bibliography
25
INTRODUCTION
3
Apart from just theoretical scripting of a program, this project actually coerces
us to edit, compile, debug and run our application. Many syntactical and
practical program issues are implicitly understood while accomplishing the
assignment.
PROGRAM STATEMENT
4
PROGRAM LISTING
5
import java.io.*;
class HOTEL_RESERVATION_SYSTEM
{
public static void main(String args[]) throws IOException
{
BufferedReaderbr=new BufferedReader(new InputStreamReader(System.in));
System.out.println();
System.out.println("
====================00000000000000===================
System.out.println("
System.out.println("
");
");
");
System.out.println("
====================00000000000000===================
");
System.out.println();
System.out.println(" RVI is an experience that welcomes you to a new approach of
Hospitality ");
System.out.println(" Our elegancy and courteous service makes us the finest business hotel
group.");
System.out.println(" A 5-minute walk from a metro station, this upscale hotel is 2.3 km from
the ");
System.out.println(" Victoria Memorial & National Museum and 7 km from Science City of
Kolkata. ");
System.out.println();
System.out.println("
====================********************===================
");
System.out.println(" Elegant rooms and suites feature wood floors, free Wi-Fi and flat-screen
TVs, ");
6
");
System.out.println("
====================********************===================
");
System.out.println();
System.out.println("
");
System.out.println("
");
");
System.out.println("
");
System.out.println("
");
System.out.println();
System.out.println("
");
System.out.println(" </> Check-out time should be inform to the reception if you wish to
reatin. ");
System.out.println(" </> Please present your ID proof at the time of reservation. ");
System.out.println(" </> Bills must be settled either in Cash or Card , personal cheque will
not be accepted. ");
System.out.println(" </> Bills must be settled either in Cash or Card , personal cheque will
not be accepted. ");
System.out.println();
System.out.println(" Do you want to Book a Room in our Hotel ? \n 1. Yes 2. No ");
System.out.print(" Enter Your Choice : ");
int choice=Integer.parseInt(br.readLine());
if(choice==1)
7
{
System.out.println();
System.out.println(" FILL UP THE REGISTRATION FORM GIVEN BELOW :");
System.out.println(" ^^^^^^^ ******************** ^^^^^^^^^ ");
System.out.print(" Full Name : ");
String name=br.readLine();
System.out.print(" Mobile Number : ");
longmb=Long.parseLong(br.readLine());
System.out.print(" Check-in Date : ");
String chkin=br.readLine();
System.out.print(" No. of Days you want to stay : ");
int days=Integer.parseInt(br.readLine());
System.out.print(" No. of Children Boarders (Below 18 years of age) : ");
int child=Integer.parseInt(br.readLine());
System.out.print(" No. of Adult Boarders (Above 18 years of age) : ");
int adults=Integer.parseInt(br.readLine());
System.out.print(" No. of Rooms Required : ");
int rooms=Integer.parseInt(br.readLine());
System.out.println(" THANK YOU!!!!");
System.out.println();
System.out.println(" Types Of Rooms Available : \n
==============================");
System.out.println("
<<==============================>>
");
System.out.println(" * A large sofa, centre table, One bed table beside bed.");
System.out.println(" * Refrigerator , Microwaven .");
System.out.println(" * 50 inch Led TV.");
System.out.println("
-------------------------
");
System.out.println("
-------------------------
");
-------------------------
");
System.out.println("
-------------------------
");
-------------------------
");
System.out.println("
-------------------------
");
");
System.out.println("
");
System.out.println("
\t\t\t************
BILL
************
System.out.println();
System.out.println(" Name : "+name);
System.out.println(" Mobile Number : "+mb);
System.out.println(" Check-in Date : "+chkin);
System.out.println(" Room Package Booked : "+"Super Deluxe Room. ");
System.out.println(" No. of Days for stay : "+days);
System.out.println(" No. of Children Boarders to stay : "+child);
System.out.println(" No. of Adult Boarders to stay : "+adults);
System.out.println(" Total no. of Boarders to stay : "+(adults+child));
System.out.println(" No. of Rooms Booked : "+rooms);
System.out.println(" Gross Amount : "+amt);
10
");
double vat=Math.round(14.5/100.0*amt);
doublesrvtax=Math.round(9.0/100.0*amt);
System.out.println(" Total Taxes : Rs."+(vat+srvtax));
System.out.println(" Total Amount to be paid : Rs."+(amt+vat+srvtax));
System.out.println(" Enter the mode of payment : \n 1.CASH
2. CARD ");
");
System.out.println("
");
System.out.println("
\t\t\t************
System.out.println();
11
BILL
************
");
2. CARD ");
System.out.println();
System.out.println(" Generating The BILL");
System.out.println(" Please Wait ...................");
for(long j=0;j<559999999;j++);
System.out.println(" DONE");
System.out.println();
System.out.println("
");
System.out.println("
");
System.out.println("
\t\t\t************
BILL
************
System.out.println();
System.out.println(" Name : "+name);
System.out.println(" Mobile Number : "+mb);
System.out.println(" Check-in Date : "+chkin);
System.out.println(" Room Package Booked : "+"Executive Suite");
System.out.println(" No. of Days for stay : "+days);
System.out.println(" No. of Children Boarders to stay : "+child);
System.out.println(" No. of Adult Boarders to stay : "+adults);
System.out.println(" Total no. of Boarders to stay : "+(adults+child));
System.out.println(" No. of Rooms Booked : "+rooms);
System.out.println(" Gross Amount : "+amt);
double vat=Math.round(14.5/100.0*amt);
doublesrvtax=Math.round(9.0/100.0*amt);
System.out.println(" Total Taxes : Rs."+(vat+srvtax));
System.out.println(" Total Amount to be paid : Rs."+(amt+vat+srvtax));
System.out.println(" Enter the mode of payment : \n 1.CASH
System.out.print(" Enter your choice : ");
13
2. CARD ");
");
String pymnt=br.readLine();
System.out.println();
System.out.println(" Thanks for using our services!!! \n Visit Again!!");
System.out.println();
System.out.println("
======================XXXXX=========================");
}
else if(rm==4)
{
System.out.println(" You have selected Non-AC Room.");
longamt=2100*days*adults*rooms+(2100*days*child*rooms)/2;
System.out.println();
System.out.println(" Generating The BILL");
System.out.println(" Please Wait ...................");
for(long j=0;j<559999999;j++);
System.out.println(" DONE");
System.out.println();
System.out.println("
System.out.println("
");
System.out.println("
");
BILL
************
System.out.println();
System.out.println(" Name : "+name);
System.out.println(" Mobile Number : "+mb);
System.out.println(" Check-in Date : "+chkin);
System.out.println(" Room Package Booked : "+"Non-AC Room");
System.out.println(" No. of Days for stay : "+days);
14
");
2. CARD ");
");
System.out.println();
System.out.println("
======================XXXXX=========================");
}
else
{
System.out.println();
System.out.println(" You have given a Wrong Choice!!");
System.out.print(" For exit from the RVI reservation system please type the word 'Quit'!! : "
);
String ans=br.readLine();
if(ans.equals("quit")||ans.equals("QUIT")||ans.equals("Quit"))
{
15
System.out.println();
System.out.println(" Thanks For Visiting ROSE VALLEY INTERNATIONAL !! Hope You
Enjoy \n Please Come Again !!!");
System.out.println();
System.out.println(" ========================= @@@@@@@@@@@@@
======================");
System.exit(0);
}
}
}
else if(choice>1)
{
System.out.println(" THANK YOU. !!!!!!!!!! ");
System.out.println();
System.out.println(" ========================= @@@@@@@@@@@@@
==========================");
for(long j=0;j<859999999;j++);
System.exit(0);
}
}
}
SAMPLE OUTPUT :
16
17
19
20
21
22
Variable Description
Variable
Data type
Description
choice
name
mb
chkin
days
child
adults
rooms
rm
amt
vat
srvtax
pymnt
ans
Integer
String
Long
String
Integer
Integer
Integer
Integer
Integer
Long
Double
Double
String
String
CONCLUSION
This project has been a great tutor as far as practical aspects of programming are concerned.
I planned the program with my classmates and then discussed it with my teachers. After
drafting the source code, I punched it in the computer followed by debugging and testing it,
both at home and school. Subsequently, I was able to get an error free code to put in my
project.
23
This has not only drilled me on the subject but also taught me things like team work, time
management, and research work and presentation skills. These are the lessons for my life,
which will always stay with and help me in my career.
BIBLIOGRAPHY
These are the followed books I have referred to for completing my project: Understanding Computer Applications by Pandey & Dey,APC
Computer Application by Gautam Roy
24
25