Professional Documents
Culture Documents
ICSE Computer-Board-Project-2017-icse PDF
ICSE Computer-Board-Project-2017-icse PDF
APPLICATION
PROJECT
1
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.
Class - X
2
TABLE OF CONTENTS
1 Introduction 4
2 Program Statement 5
5 Variable 23
6 Conclusion 24
7 Bibliography 25
INTRODUCTION
3
This is to meet the Internal Assessment requirements of ICSE 2016-2017
Computer Applications paper. Apart from this, it is a great learning experience
too.
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:
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
Create a Java application which generates a menu for the user to
Choice 3: Ac Room
PROGRAM LISTING
5
import java.io.*;
class HOTEL_RESERVATION_SYSTEM
System.out.println();
System.out.println("
====================00000000000000=================== ");
System.out.println("
====================00000000000000=================== ");
System.out.println();
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(" in addition to sitting areas, stocked minibars, 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(" </> 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();
int choice=Integer.parseInt(br.readLine());
if(choice==1)
7
{
System.out.println();
String name=br.readLine();
longmb=Long.parseLong(br.readLine());
String chkin=br.readLine();
int days=Integer.parseInt(br.readLine());
int child=Integer.parseInt(br.readLine());
int adults=Integer.parseInt(br.readLine());
int rooms=Integer.parseInt(br.readLine());
System.out.println();
System.out.println();
9
System.out.print(" Please enter your choice: ..............." );
intrm=Integer.parseInt(br.readLine());
if(rm==1)
longamt=2800*days*adults*rooms+(2800*days*child*rooms)/2;
System.out.println();
for(long j=0;j<559999999;j++);
System.out.println(" DONE");
System.out.println();
System.out.println();
doublesrvtax=Math.round(9.0/100.0*amt);
String pymnt=br.readLine();
System.out.println();
System.out.println();
System.out.println("
======================XXXXX=========================");
else if(rm==2){
longamt=4200*days*adults*rooms+(4200*days*child*rooms)/2;
System.out.println();
for(long j=0;j<559999999;j++);
System.out.println(" DONE");
System.out.println();
System.out.println();
11
System.out.println(" Name : "+name);
double vat=Math.round(14.5/100.0*amt);
doublesrvtax=Math.round(9.0/100.0*amt);
String pymnt=br.readLine();
System.out.println();
System.out.println();
System.out.println("
======================XXXXX=========================");
else if(rm==3)
longamt=7700*days*adults*rooms+(7700*days*child*rooms)/2;
12
System.out.println();
for(long j=0;j<559999999;j++);
System.out.println(" DONE");
System.out.println();
System.out.println();
double vat=Math.round(14.5/100.0*amt);
doublesrvtax=Math.round(9.0/100.0*amt);
System.out.println();
System.out.println();
System.out.println("
======================XXXXX=========================");
else if(rm==4)
longamt=2100*days*adults*rooms+(2100*days*child*rooms)/2;
System.out.println();
for(long j=0;j<559999999;j++);
System.out.println(" DONE");
System.out.println();
System.out.println();
14
System.out.println(" No. of Children Boarders to stay : "+child);
double vat=Math.round(14.5/100.0*amt);
doublesrvtax=Math.round(9.0/100.0*amt);
String pymnt=br.readLine();
System.out.println();
System.out.println();
System.out.println("
======================XXXXX=========================");
else
System.out.println();
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();
System.exit(0);
else if(choice>1)
System.out.println();
for(long j=0;j<859999999;j++);
System.exit(0);
SAMPLE OUTPUT :
16
SAMPLE OUTPUT 1: Introduction to Hotel Reservation
17
SAMPLE OUTPUT 2: EXIT from the RVI form.
19
Sample Output 6: Selection for Room type 2. Deluxe Room
20
Sample Output 8: Selection for Room type 4. Non - AC Room
21
Sample Output 10:Bill after final payment by cash.
22
Variable Description
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,
BIBLIOGRAPHY
These are the followed books I have referred to for completing my project:-
24
25