Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 23

ICSE 2021-2022

NAME:-SAIKAT
CLASS: - X
SECTION: - A

TOPIC: - HOTEL RESERVATION SYSTEM


ROLL NO.:-
UNIQUE ID:-
GUIDED BY:-Mr.SABYASACHI MUKHERJEE

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 would like to thank our principal,
Fr. Eugene Ekka, who gave us the golden opportunity to
do this project.
Secondly, I would like to express my special thanks of
gratitude to my computer teacher, Mr. Sabyasachi
Mukherjee for guiding us in doing this project, and
providing us with his valuable advice.
Thirdly, I would also like to thank my parents , who
helped me in collecting data for this project, and guided
me.
Last but not the least , I would like to thank my friends
and my classmates , for helping me and motivating me
to complete the project.

INDEX
2
Sl No. Topics Page No. Sig. Remarks
1 Introduction 4
2 Program Statement 5
3 Program Listing 6-20
4 Sample Output 21-30
5 Variable Description 31
6 Conclusion 32
7 Bibliography 33

INTRODUCTION
This is to meet the Internal Assessment requirements of
ICSE 2021-2022 Computer Applications paper. Apart
from this, it is a great learning experience too.

3
This project is a Java application which generates a
menu for the user to choose from available Room types
from the Hotel.
I choose this topic because this gives a good
acquaintance with the pattern and the standard of
programming questions in the board exam. Some
aspects covered in this project are:
 Menu Driven Program
 If-Else Statements
 Processing Strings
 Concluding program with a glossary
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
Create a Java application which generates a
menu for the user to choose from the
following options:-

4
Choice 1: Super Deluxe Room Choice
Choice 2: Deluxe Room Choice
Choice 3: AC Room Choice
Choice 4: Non AC Room

PROGRAM LISTING
import java.util.*;
class HOTEL_RESERVATION_SYSTEM
{
public static void main(String args[])
{

5
Scanner in=new Scanner(System.in);
System.out.println();
System.out.println("\t\t\t\t\t\t*ST.XAVIERS SCHOOL,BELGUMA");
System.out.println("\t\t\t\t\t\t*PURULIA-723101;WEST BENGAL");
System.out.println("\t\t\t\t\t\t*SUBJECT-COMPUTER");
System.out.println("\t\t\t\t\t\t*TOPIC-HOTEL RESERVATION
SYSTEM");
System.out.println("\t\t\t\t\t\t*MADE BY- Saikat Majee]");
System.out.println("\t\t\t\t\t\t*CLASS-10(A)");
System.out.println("\t\t\t\t\t\t*ROLL NO.= 29");
System.out.println("\t\t\t\t\t\t*WELCOME TO THE RVI SYSTEM");
System.out.println("====================00000000000000======
============= ");
System.out.println(" :::: ROSE VALLEY INTERNATIONAL :::: ");
System.out.println(" 12/8/9 C AJC ROAD , KOLKATA , WEST BENGAL ,
INDIA");
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.");

6
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, ");

System.out.println(" in addition to sitting areas, stocked mini bars,


and Italian marble bathrooms. ");System.out.println(" Suites add
separate living rooms with coffee tables.
");System.out.println("====================*****************
***===================");
System.out.println();
System.out.println(" ==================== ...................
==================");
System.out.println(" ! Mobile & Internet Booking is also available ! ");
System.out.println(" ***For Mobile Booking Call +919854245865
From Your Mobile***");
System.out.println(" PREMIUM RATES APPLY ");
System.out.println(" ! For Internet Booking Visit
:http://www.rvihotels.com ! ");

7
System.out.println(" ==================== ...................
===================");
System.out.println();
System.out.println(" RULES & REGULATIONS :::::>>>>> ");
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
Enter YES or NO ");
System.out.print(" Enter Your Choice : ");
String choice =in.next();
if(choice.equalsIgnoreCase("Yes"))

{
System.out.println();
System.out.println(" FILL UP THE REGISTRATION FORM GIVEN
BELOW :");

8
System.out.println(" ^^^^^^^ ******************** ^^^^^^^^^ ");
System.out.print(" Full Name : ");

in.nextLine();
String name=in.nextLine();
System.out.print(" Mobile Number : ");
long mb=in.nextLong();
System.out.print(" Check-in Date : ");
String chkin=in.next();
System.out.print(" No. of Days you want to stay : ");
int days=in.nextInt();
System.out.print(" No. of Children Boarders (Below 18 years of age) :
");
int child=in.nextInt();
System.out.print(" No. of Adult Boarders (Above 18 years of age) : ");
int adults=in.nextInt();
System.out.print(" No. of Rooms Required : ");
int rooms=in.nextInt();
System.out.println(" THANK YOU!!!!");
System.out.println();
System.out.println(" Types Of Rooms Available : \
n==============================");

9
System.out.println(" <<==============================>> ");
System.out.println(" 1. Super Deluxe. (Rs.4500 per night)");
System.out.println(" The Facilities are :> ");
System.out.println(" * Double bed with a comfortable mattress.");
System.out.println(" * Air conditioning with Two Split AC.");

System.out.println(" * A large sofa, centre table, One bed table beside


bed.");
System.out.println(" * Refrigerator , Microwave oven .");
System.out.println(" * 50 inch Led TV.");
System.out.println(" ------------------------- ");
System.out.println(" ------------------------- ");
System.out.println(" 2. Deluxe Room. (Rs.3800 per night)");
System.out.println(" The Facilities are :> ");
System.out.println(" - Double bed with soft, comfortable mattress.");
System.out.println(" - Air Conditioning with One Split AC.");
System.out.println(" - A large sofa , One bed table beside bed.");
System.out.println(" - 42 inch Led TV.");
System.out.println(" ------------------------- ");
System.out.println(" ------------------------- ");
System.out.println(" 3. AC Room. (Rs.3000 per night)");

10
System.out.println(" Double bed with a super soft comfortable
mattress.");
System.out.println(" > Air Conditioning with Two Split ACs.");
System.out.println(" > Electronic Safe.");
System.out.println(" > A large sofa set, centre table.");
System.out.println(" > 30 inch Led TV.");
System.out.println(" ------------------------- ");
System.out.println(" ------------------------- ");
System.out.println(" 4.Non-AC. (1900 per night)");
System.out.println(" The Facilities are :");
System.out.println(" > Choice of single or double bed with a soft
mattress.");
System.out.println(" > A sofa set , One bed table beside bed.");
System.out.println(" > 24 inch Lcd TV.");
System.out.println();

System.out.print(" Please enter your choice: ..............." );


int rm=in.nextInt();
if(rm==1)
{
System.out.println(" You have selected Super Deluxe.");
long amt=4500*days*adults*rooms+(4500*days*child*rooms)/2;

11
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(" :::: ROSE VALLEY INTERNATIONAL :::: ");
System.out.println(" 12/8/9 C AJC ROAD , KOLKATA , WEST BENGAL ,
INDIA");
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 : Rs. "+amt);

12
double gst=Math.round(23.5/100.0*amt);

System.out.println(" Total Tax (G.S.T.) : Rs."+(gst));


System.out.println(" Total Amount to be paid : Rs."+(amt+gst));
System.out.println(" Enter the mode of payment : \n 1.CASH 2. CARD
");
System.out.print(" Enter your choice : ");
String pymnt=in.next();
System.out.println();
System.out.println(" Thanks for using our services!!! \n Visit Again!!");
System.out.println();
System.out.println("======================XXXXX=============
============");
}
else if(rm==2){
System.out.println(" You have selected Deluxe Room.");
long amt=3800*days*adults*rooms+(3800*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++);

13
System.out.println(" DONE");
System.out.println();
System.out.println(" :::: ROSE VALLEY INTERNATIONAL :::: ");
System.out.println(" 12/8/9 C AJC ROAD , KOLKATA , WEST BENGAL ,
INDIA");
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 : "+"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 : Rs."+amt);
double gst=Math.round(23.5/100.0*amt);

System.out.println(" Total Tax (G.S.T.) : Rs."+(gst));

14
System.out.println(" Total Amount to be paid : Rs."+(amt+gst));
System.out.println(" Enter the mode of payment : \n 1.CASH 2. CARD
");
System.out.print(" Enter your choice : ");
String pymnt=in.next();
System.out.println();
System.out.println(" Thanks for using our services!!! \n Visit Again!!");
System.out.println();
System.out.println("======================XXXXX=============
============");
}
else if(rm==3)
{
System.out.println(" You have selected AC Room.");
long amt=3000*days*adults*rooms+(3000*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();

15
System.out.println(" :::: ROSE VALLEY INTERNATIONAL :::: ");
System.out.println(" 12/8/9 C AJC ROAD , KOLKATA , WEST BENGAL ,
INDIA");
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 : "+"AC 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 : Rs."+amt);
double gst=Math.round(23.5/100.0*amt);

System.out.println(" Total Tax (G.S.T.) : Rs."+(gst));


System.out.println(" Total Amount to be paid : Rs."+(amt+gst));
System.out.println(" Enter the mode of payment : \n 1.CASH 2. CARD
");
System.out.print(" Enter your choice : ");

16
String pymnt=in.next();
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.");
long amt=1900*days*adults*rooms+(1900*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(" :::: ROSE VALLEY INTERNATIONAL :::: ");
System.out.println(" 12/8/9 C AJC ROAD , KOLKATA , WEST BENGAL ,
INDIA");
System.out.println(" \t\t\t************ BILL ************ ");

17
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);

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 : Rs."+amt);
double gst=Math.round(23.5/100.0*amt);

System.out.println(" Total Tax (G.S.T.) : Rs."+(gst));


System.out.println(" Total Amount to be paid : Rs."+(amt+gst));
System.out.println(" Enter the mode of payment : \n 1.CASH 2. CARD
");
System.out.print(" Enter your choice : ");
String pymnt=in.next();
System.out.println();

18
System.out.println(" Thanks for using RVI reservation systems!!! ");
System.out.println();
System.out.println("======================XXXXX=============
============");
}
else
{
System.out.println();
System.out.println(" You have given a Wrong Choice!!");
System.out.print(" To exit from the RVI reservation system please
type the word 'Quit'!! : "
);
String ans=in.next();
if(ans.equalsIgnoreCase("Quit"))
{
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);

19
}
}
}
else
{
System.out.println(" THANK YOU. !!!!!!!!!! ");
System.out.println();
System.out.println(" =========================
@@@@@@@@@@@@@==========================");
for(long j=0;j<859999999;j++);
System.exit(0);
}
}
}

VARIABLE DESCRIPTION
VARIABLE DATA TYPE DESCIPTION
args[] String To accept command line arguments
choice int Enter yes to proceed or no to end
name String Accept user’s name
mb long Accept user’s phone number
chkin String Accept user’s check-in date

20
days int Accept user’s number of days of stay
child int Accept number of children from user
adults int Accept the number of adults
rooms int Accept the number of rooms
rm int Accept the room type
amt long Bill amount
gst double Goods and Service Tax
pymnt String Mode of payment
ans String Exit from the RVI system

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
21
home and school. Subsequently, I was able to get
an error free code to put in my project.
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
All the information used in this project is taken
from the following sources : -
 Understanding Computer Applications ICSE
Class X by Vijay Kumar Pandey and Dilip
Kumar Dey.

22
 Computer Applications ICSE Class X by
Sumitra Arora.

23

You might also like