1st year 2nd semester (University of Sri Jayawardenapura Computer Programming – Laboratory)
For our vacation we had been given to make a software to reserve rooms and Halls.
In this case it is not specified whether we have to do GUI base application or console one but i have chosen to make GUI base application to do given assignment
Abstract
Final Assignment
Start Date : 4th January 2013
Due Date : 5th February 2013
“Coral Rest” is a hotel situated in Hikkaduwa which provides services to Sri Lankans. This hotel has 50 bedrooms which include 10 single rooms, 25 double rooms and 15 triple rooms and 5 reception halls.
Room numbers 1 to 10 are single rooms, numbers 11 to 35 are double rooms and numbers 36 to 50 are triple rooms.
A customer could request for any number of rooms for one or more days. According to the customer’s request they allocate the first available room(s).
etc........................
Click here( .pdf) to view full problem specification
Most important thing is we have to handle data in text file, so in this system all data and information handle in Text file at a glance it really look tough work but when you get in to it its very simple
Click here (project) to download the software with source code
Programming language : java
IDE : Netbeans
Screen shots and details about the system
Main window Interface
This is
the main window when user going to see
first
It
contains links to
v
Reserve
room
v
Reserve
reception Hall
v
Check
room bill
v
Hand
over reception hall and calculate charges
v
List
of occupant bedrooms
v
List
of vacant bedrooms
v
List
of occupied reception halls
v
Exit
from the software
Reserve Room
IF user wants to reserve room he
has to enter
1.
NIC
2.
Number
of days
3.
Date
: Date format must be (DD/MM/YYYY)
4.
And
Room type will be given by the system user has to choose one
5.
Room
category will be given by the system user has to choose one
If reservation
can be done system will popup massage “Reservation Successful”
When rooms not available
IF there’s no single room’s
available system will popup massage telling
“Reservation cannot be done,
Single rooms not available”
IF there’s no double room’s
available system will popup massage telling
“Reservation cannot be done,
Double rooms not available”
IF there’s no Triple room’s
available system will popup massage telling
“Reservation cannot be done,
Triple rooms not available”
Reserve Hall
User has to enter
1.
NIC
2.
Date
(Date format must be DD/MM/YYYY)
3.
Capacity
of the hall will be given by the system user has to choose one
Text Area will automatically
updated with user activities
After clicking reserve button,
IF all the data insertion going
well system will popup massage “Reservation Successful”
When user going to book already reserved Hall
IF user
going to book already reserved Hall
He will popup massage “Already reserved” (In this case hall name and date is compared
in order to check availability)
Room Bill
All the
room numbers customer involved will loaded to combo box automatically
Whenever user choose user room number from the combo box all the details of the
particular room will be displays in the text area,
If user
wants update particular room he has to press Update this room button
then room array will be reset accordingly
After updating the room
After
updating the Room number system will popup massage “Room now available update
of data successful”
“Room.txt”
will updated accordingly
Hand over the reception hall
Data of
the hall will be automatically load into combo box, data include hall name and
date together
Whenever
user select particular item from the combo box
details of the hall will be generated in the Text Area including total payable
Room Numbers Auto loading function to combo
box
Rooms
numbers automatically loaded in to combo box
Updating the hall
After
Updating hall user system will notify “Hall now available update is successful”
Hall.txt
will be updated accordingly
List of occupant bedrooms
Details
of occupied bed rooms will be displayed here including all the details
appropriately
List of vacant bedrooms
List of vacant bedrooms will be displays here; user can see
the available bed rooms here
List of occupied reception Halls
List of all the occupied reception halls including reserved
date will be display here