Document Hotel Manage Management Java Netbeans
Document Hotel Manage Management Java Netbeans
Introduction
ANALYSIS
Requirement analysis for web applications
encompasses three major tasks:formulation,
requirements gathering and analysis modeling.
Duringformulation, the basic motivation and goals
for the web application are identified, and the
categories of users are defined. In the requirements
gathering phase, the content and functional
requirements are listed and interaction scenarios
written from end-user’s point-of-view are
developed. This intent is to establish a basic
understanding of why the web application is built,
who will use it, and what problems it will solve for
its users.
2.1
Software requirement Specification
A set of programs associated with the operation of a
computer is called software. Software is the part of
the computer system, which enables the user to
interact with several physical hardware devices.
The minimum software requirement specifications
for developing this
project are as follows:
Operating System
: Windows XP/Vista/2000, Linux.
Presentation layer
: PHP, CSS, HTML, JSP, FLASH
Database
: My SQL
Presentation
: Power Point 2003
Documentation Tools : Ms Office
2.1 Hardware Requirement Specification:
The collection of internal electronic circuits and
external physical devices used in building a
computer is called the Hardware.
The minimum hardware requirement specifications
for developing this
project are as follows:
Processor : Standard processor with a speed of 1.6
GHz
RAM : 256 MB RAM or more
Hard Disk : 20 GB or more
Monitor : Standard color monitor
2.2Functional Requirements
Module Description
The HOTEL MANAGEMENT SYSTEM consists
of 2 modules and 3 categories.
The categories are as follows:
Advanced Search
Booking
Payment
The modules are
Administrator
User
Admin Module:
The Functionalities of the Administrator is:
The administrator should login into the system with
unique his/her password and username.
If the username and password is validated then he
can gain access to the system. View the hotels can
update and delete the hotels. Post the special offers,
add new hotel to the hotels list. Insert /View the
Availability and Price. Post the links. Adding the
links to the hotels and as well view the links.
Blocks the user view the status of the users. Restrict
the user to the see the more information with out
login.
The Administrator can do the following actions:
Login
Change Password
Admin Functionalities
View Hotels
Add Hotels
Post Special Offers
Edit / Delete Hotels
Upload Hotel Images.
Logout
User Module:
The Functionalities of the User is:
A new User can register with the application by
entering his appropriate details. The User should
login into the system with unique his/her password
and username. If the username and password is
validated then he can gain access to the system. The
User can change his password, To change the
password, it should ask for the old password, new
password and confirm new password View the
Categories.
The User can do the following actions:
Register
Login
Change Password
User Functionalities
Advanced Search
Booking
Payment
Logout
Source code:
import java.io.File;
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;
Singleroom()
{
this.name="";
}
Singleroom(String name,String contact,String gender)
{
this.name=name;
this.contact=contact;
this.gender=gender;
}
}
class Doubleroom extends Singleroom implements Serializable
{
String name2;
String contact2;
String gender2;
Doubleroom()
{
this.name="";
this.name2="";
}
Doubleroom(String name,String contact,String gender,String
name2,String contact2,String gender2)
{
this.name=name;
this.contact=contact;
this.gender=gender;
this.name2=name2;
this.contact2=contact2;
this.gender2=gender2;
}
}
class NotAvailable extends Exception
{
@Override
public String toString()
{
return "Not Available !";
}
}
class Hotel
{
static holder hotel_ob=new holder();
static Scanner sc = new Scanner(System.in);
static void CustDetails(int i,int rn)
{
String name, contact, gender;
String name2 = null, contact2 = null;
String gender2="";
System.out.print("\nEnter customer name: ");
name = sc.next();
System.out.print("Enter contact number: ");
contact=sc.next();
System.out.print("Enter gender: ");
gender = sc.next();
if(i<3)
{
System.out.print("Enter second customer name: ");
name2 = sc.next();
System.out.print("Enter contact number: ");
contact2=sc.next();
System.out.print("Enter gender: ");
gender2 = sc.next();
}
switch (i) {
case 1:hotel_ob.luxury_doublerrom[rn]=new
Doubleroom(name,contact,gender,name2,contact2,gender2);
break;
case 2:hotel_ob.deluxe_doublerrom[rn]=new
Doubleroom(name,contact,gender,name2,contact2,gender2);
break;
case 3:hotel_ob.luxury_singleerrom[rn]=new
Singleroom(name,contact,gender);
break;
case 4:hotel_ob.deluxe_singleerrom[rn]=new
Singleroom(name,contact,gender);
break;
default:System.out.println("Wrong option");
break;
}
}
Output screen:
BIBILIOGRAPHY
WWW.CODERSPACKET.COM
WWW.ACADEMIA.EDU.COM
WWW.CODE-PROJECTS.COM
WWW.CSTUTORIAL POINT.COM