Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

81
A MAJOR REPORT ON HOTEL MANAGEMENT SYSTEM BY ANUBHAB AICH (ROLL NO.-10802061032) DEBO PRIYO KONAR (ROLL NO.-10802061024) PUJAYEETA DATTA (ROLL NO.-10802062004) RANA DAS (ROLL NO.-10802061011) DEPARTMENT OF INFORMATION TECHNOLOGY 2009-10 UNDER THE GUIDANCE OF:- MR.DEBABRATA MAITY AND MR.AMITAVACHAKROBORTY LECTURER SENIOR LECTURER DEPT OF IT/CSE DEPT OF Mca ASANSOL ENGINEERING COLLEGE ASANSOL ENGINEERING COLLEGE Page | 1

Transcript of Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Page 1: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

A MAJOR REPORT ON

HOTEL MANAGEMENT SYSTEM

BY

ANUBHAB AICH (ROLL NO.-10802061032)

DEBO PRIYO KONAR (ROLL NO.-10802061024)

PUJAYEETA DATTA (ROLL NO.-10802062004)

RANA DAS (ROLL NO.-10802061011)

DEPARTMENT OF INFORMATION TECHNOLOGY

2009-10

UNDER THE GUIDANCE OF:-

MR.DEBABRATA MAITY AND MR.AMITAVACHAKROBORTY

LECTURER SENIOR LECTURER

DEPT OF IT/CSE DEPT OF Mca

ASANSOL ENGINEERING COLLEGE ASANSOL ENGINEERING COLLEGE

Page | 1

Page 2: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

ASANSOL ENGINEERING COLLEGE

THIS IS TO CERTIFY THAT THE PROJECT TITLED HOTEL MANAGEMNT SYSTEM, A BONAFIED WORK CARRIED OUT BY FOLLOWINNG STUDENTS

1. ANUBHAB AICH (ROLL NO.-10802061032)

2. DEBOPRIYO KONAR (ROLL NO.-10802061024)

3. PUJOYEETA DUTTA (ROLL NO.-10802062004)

4. RANA DAS (ROLL NO.-10802061011)

HAS BEEN DULY COMPLETED TOWARDS THE PARTIAL FULFILMENT OF REQUIREMENT FOR THE DEGREE OF BACHELOR OF INFORMATION TECHNOLOGY AWARDED BY W.B.U.T. FROM THE DEPARTMENT OF INFORMATION TECHNOLOGY OF ASANSOL ENGINEERING COLLEGE

Signature of Project Guide: Signature of Project Guide

-------------------------------- -------------------------------

Mr. Debabrata Maity Mr.Amitava Chakroborty

Lecturer Senior Lecturer

Dept. of IT/CSE Dept. of MCA

Asansol Engineering College Asansol Engineering College

----------------------------- ---------------------------

Signature of HOD Signature of Examiner

Page | 2

Page 3: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Contents

Sl. No. Topics Page No.1. Acknowledge

ment5

2. Abstract 6

3. Introduction 7-20a)

b)

c)

d)

e)

f)

g)

h)

i)

Project Report

Objective

Overview

Reason For Computerized

System

Project Category

Hardware Requirement

Software Requirement

Languages and Tools Used

About the Technology

4. Problem Definition

21

5. System Analysis

22-24

a) Functional

Page | 3

Page 4: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

b)

c)

d)

e)

Requirement

Non-FunctionalRequirement

Extracted Classes

Association

Cardinality and Modality

6. System Design

25-70

a)

b)

c)

d)

e)

f)

g)

h)

i)

Entities and attributes

UML Diagrams

E-R Diagrams

Data Flow Diagrams

Data Modeling

Function Details

Database Schema

Coding

Screen Shots

7. Conclusion and Future

Scope

71

8. Bibliography 72

Page | 4

Page 5: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

AcknowledgementIt is a great sense of satisfaction that we present the idea for Hotel Management System in the form of Project Work. This Project work was undertaken in partial fulfillment of the requirements for the degree of Bachelor of Technology in Information Technology from the West Bengal University of Technology. We wish to express our heartfelt thanks to all those who helped us to complete the Project.

First of all, we would like to thank Mr. Swapan Bhattacharya (H.O.D. Department of Information Technology, Asansol Engineering College), for providing us with an opportunity to undertake this Project.

We find words inadequate to express our deep sense of gratitude and humble regards to our Project guide Mr. Amitava Chakroborty and Mr.Debabrata Maity under whose able guidance, keen interest, constant encouragement, motivation and concrete support ,this Project could not have been successful this far.

We would also like to express our heartiest thanks to Mrs. Mitrani Basu for providing us a great environment with all the software and internet facility for carrying out our project.

Last but not least, we would like to thank our class mates and all those who played a vital role either directly or indirectly in the accomplishment of this Project.

Page | 5

Page 6: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Abstract

Computer can be defined as a system, which executes an algorithm to process data fed to it and produces the required result. There was a time when computers were used solely for scientific purposes. But now computers are effective in every sphere of activity that may be from large scientific computations to regular housework. Now a days in institutions and offices the major problem is to maintain a database, rather we can say the major problem is searching the database.

Our project is solely focused in making the Hotel Management System computerized. Apart from searching room in a particular place or booking a room and restaurant services, account reservation, the project includes management of several branches of the same hotel as well as maintaining separate database for each and every branch, maintaining the information of the customers and keeping track of their personal preferences maintaining all necessary levels of security.

Page | 6

Page 7: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Chapter 1

Introduction

A) Project Request:-

This project is submitted in partial fulfillment of the requirements for the degree of B. Tech. in I.T. (Information Technology) from Asansol Engineering College as prescribed by West Bengal University of Technology.

b) OBJECTIVE:-

During the past several decades’ personnel function has been transformed from a relatively obscure record keeping staff to central and top level management function.There are many factors that have influenced this transformation like technological advances, professionalism, and general recognition of human beings as most important resources.

A computer based management system is designed to handle all the primary information required to calculate monthly statements. Separate database is maintained to handle all the details required for the correct statement calculation and generation.

This project intends to introduce more user friendliness in the various activities such as record updating, maintenance, and searching.

The searching of record has been made quite simple as all the details of the customer can be obtained by simply keying in the identification of that customer.

Similarly, record maintenance and updating can also be accomplished by using the identification of the customer with all the details being automatically generated. These details are also being promptly automatically updated in the master file thus keeping the record absolutely up-to-date.

The entire information has maintained in the database or Files and whoever wants to retrieve can’t retrieve, only authorization user can retrieve the necessary information which can be easily be accessible from the file.

The main objective of the entire activity is to automate the process of day to day activities of Hotel like:

1. Room activities, 2. Admission of a New Customer 3. Assign a room according to customer’s demand, 4. Checkout of a computer and releasing the room 5. Finally compute the bill etc. 6. Packages available. 7. Advance online bookings. 8. Online Cancellation. 9. List of Regular customers. 10. Email facility. 11. Feedbacks

Page | 7

Page 8: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

AdvantageThe advantage of Hotel Management System can be categorized as follows:

1. Security

2. Efficiency

3. Accuracy

4. Data Storage

5. Speed

6. Reducing Individual Effort

7. User Friendly Interface

Security: It has been the main objective of the hotel Management System to provide the ultimate level of security to the customer’s personal information. Each new customer of the hotel has to register before availing our facilities. The credit card details and other confidential information are also handled with care using a secure communication network such as Virtual Private Connection (VPN) among the server and various branches across the country.

Efficiency: The system to be developed must be highly efficient in terms of processing the individual requests, maintaining the individual data. The system ensures to perform even in the event of partial failures. The system aims at ensuring that ACID properties are maintained while performing database operations.

Accuracy: The System aims at achieving accuracy of the data that has been entered by the individual. The users preferences are given utmost importance and stored with proper accuracy. An administrator is assigned for each branch in order to ensure accuracy of the information before confirming booking of the rooms and other accounting details.

Data Storage: Since our hotel chain is spread all over India and we satisfy a huge no. of customers at a time so we need a bulk data storage and proper utilization of space. Our project focuses on storing this data in master files usually magnetic storage devices, in a machine readable form. This takes a very less space and is very easily retrievable. The total data is stored in the server and we divide the data of individual branches in separate data sources.

Page | 8

Page 9: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Speed: The system is designed with an objective of performing all the tasks within minimum amount of time. It gives the facility to its customers and employees to access the services by using a household computer or cafe computer or a computer in our one of the branches.

Reducing Individual Effort: Our project focuses on reducing human effort and making the system more computerized. We allocate individual administrator for each and every branch and make the system mare capital oriented automated one.

User Friendly Interface: One of the most important field of work is the interface of our hotel site. We use most efficient GUI based systems to design the interface. We provide the facilities of some client side checking, and security features on the home and registration pages. Our goal was to make the interface as such to help yhe interaction as easy as possible from the both side.

c) Overview:-

The ITTDC hotels are among the largest hotel chains in India providing services to above ten laces of customers through out the India for last ten years. The indomitable spirit and endeavor of our employees have satisfied our customers over the years and will keep doing so forever. The customer satisfaction we provide is our work spirit.

We are spreading our branches to most of the cities in India .We are aiming to spread branches in abroad as well. Over 30 multispecialty resorts with seven star category, over 50 5 star hotels and above 3 star lodges are present at several places of the country. Our main server is present at the Kolkata. But one access our services through online and can find out the nearest branch easily and we bet that he/she will find that within 30-50km from wherever he/she is within the country. Our most of the seven star and 5star hotel are equipped with spa and zakuzzis, multi gymnasiums with trainers, multi cuisine restaurants and bars with a huge range of flavors to relish.

d) Reasons for migrating from manual to computerized systems:-

Before computers were introduced in the field of business, business systems were manual systems designed around a pattern of manual operations performed by people who were the principal

Page | 9

Page 10: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

system resources. But in computer oriented systems, the capabilities of computers and human are blended to take advantage of the unique capabilities of each other. Computers differ from the manual systems in at least three important capabilities:

1. Accuracy: There is a greater potential for accuracy once the data is entered correctly into the system in a machine-readable format, it is not necessary to re-entered it again. This reduces the number of times humans are involved. Of course, the computers are vulnerable to the entry of invalid data.

2. Data Collection and Communication: Methods for collection and communication data are fast and more efficient. Modern computers allow data communication networks to be established to collect data and to respond to inquiries.

3. Data Storage: Another way in which manual and human-machines system differ is the quantities of data that can be stored and accessed. In computers, data are kept in master files usually magnetic storage devices, in a machine readable form. A collection of related files forms a database. Database allows for centralized storage of data, thereby eliminating the need for multiplicity of redundant files.

e) Project category:-

The category of the Project is:

Web Application using Database Management System.

This Project is coupled with material on how to use the various tool available in JSP, SERVLETS AND MY SQL.The need of today’s software development is competence in a GUI based front-end tool, which can connect to Relational Database engines. This gives the programmer the opportunity to develop client server based commercial applications.All the important coding techniques used by programmers, in OOPS based coding is brought out in full and in great detail.

f) Hardware requirement:-

Hardware Support for Server:

Computer: PC-AT.

Processor: Intel Pentium III or above.

RAM: 1 GB or above.

Cache: 1 GB or above.

Page | 10

Page 11: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Input Device: Mouse and Keyboard.

Output Device: VDU (minimum VGA or SVGA support).

Hardware Support for Client:

Computer: PC-AT.

Processor: Intel Pentium III or above.

RAM: 128 MB or above.

Cache: 128 MB or above.

Input Device: Mouse and Keyboard.

Output Device: VDU (minimum VGA or SVGA support).

g) Software requirement:-

Software Specification for Server:

Operating System: Windows XP.

Web Server: Apache Tomcat 5.5 or above.

Database System: Oracle 10g.

Software Specification for Client:

Operating System: Windows XP.

Browser: Internet Explorer 7 (or above)/ Firefox 3 (or above).

h) Languages and tools used:-

Front End: JSP and Servlet.

Database Layer: JDBC.

Database End: Oracle 10g.

Tools: Dreamweaver 8.

I) about the technology:-

Page | 11

Page 12: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

JAVA 2 EXPRESS EDITION (J2EE)

Java Platform, Enterprise Edition (Java EE) builds on the solid foundation of Java Platform, Standard Edition (Java SE) and is the industry standard for implementing enterprise-class service-oriented architecture (SOA) and next-generation web applications. The SDKs contain Sun GlassFish Enterprise Server, previously named Sun Java System Application Server, and provide support for Java EE 5 specifications.

What is the Java 2 Platform, Enterprise Edition (J2EE)?

The Java 2 Platform, Enterprise Edition (J2EE) is a set of coordinated specifications and practices that together enable solutions for developing, deploying, and managing multi-tier server-centric applications. Building on the Java 2 Platform, Standard Edition

(J2SE), the J2EE platform adds the capabilities necessary to provide a complete, stable, secure, and fast Java platform to the enterprise level. It provides value by significantly reducing the cost and complexity of developing and deploying multi-tier solutions, resulting in services that can be rapidly deployed and easily enhanced.

Main benefits of the J2EE platform

The J2EE platform provides the following:

1. Complete Web services support: The J2EE platform provides a framework for developing and deploying web services on the Java platform. The Java API for XML-based RPC (JAX-RPC) enables Java technology developers to develop SOAP based interoperable and portable web services. Developers use the standard JAX-RPC programming model to develop SOAP based web service clients and endpoints. A web service endpoint is described using a Web Services Description Language (WSDL) document. JAX-RPC enables JAX-RPC clients to invoke web services developed across heterogeneous platforms. In a similar manner, JAX-RPC web service endpoints can be invoked by heterogeneous clients.

2. Faster solutions delivery time to market: The J2EE platform uses "containers" to simplify development. J2EE containers provide for the separation of business logic from resource and lifecycle management, which means that developers can focus on writing business logic rather than writing enterprise infrastructure. For example, the Enterprise JavaBeans (EJB) container (implemented by J2EE technology vendors) handles distributed communication, threading, scaling, transaction management, etc. Similarly, Java Servlets simplify web development by providing infrastructure for component, communication, and session management in a web container that is integrated with a web server.

3. Freedom of choice: J2EE technology is a set of standards that many vendors can implement. The vendors are free to compete on implementations but not on standards or APIs. Sun supplies a comprehensive J2EE Compatibility Test Suite (CTS) to J2EE licensees. The J2EE CTS helps ensure compatibility among the application vendors which helps ensure portability for the applications and

Page | 12

Page 13: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

components written for the J2EE platform. The J2EE platform brings Write Once, Run Anywhere (WORA) to the server.

4. Simplified connectivity: J2EE technology makes it easier to connect the applications and systems you already have and bring those capabilities to the web, to cell phones, and to devices. J2EE offers Java Message Service for integrating diverse applications in a loosely coupled, asynchronous way. The J2EE platform also offers CORBA support for tightly linking systems through remote method calls. In addition, the J2EE platform has J2EE Connectors for linking to enterprise information systems such as ERP systems, packaged financial applications, and CRM applications.

5. By offering one platform with faster solution delivery time to market, freedom of choice, and simplified connectivity, the J2EE platform helps IT by reducing TCO and simultaneously avoiding single-source for their enterprise software needs.

Technologies included in the J2EE platform

The primary technologies in the J2EE platform are:

1. Java API for XML-Based RPC (JAX-RPC)

2. JavaServer Pages

3. Java Servlets

4. Enterprise JavaBeans components

5. J2EE Connector Architecture

6. J2EE Management Model

7. J2EE Deployment API

8. Java Management Extensions (JMX)

9. J2EE Authorization Contract for Containers

10. Java API for XML Registries (JAXR)

11. Java Message Service (JMS)

12. Java Naming and Directory Interface (JNDI)

13. Java Transaction API (JTA)

14. CORBA

15. JDBC data access API.

JAVASERVER PAGES (JSP)

JavaServer Pages (JSP) is a server side Java technology that allows software developers to create dynamically generated web pages, with HTML, XML, or other document types, in response to a Web

Page | 13

Page 14: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

client request to a Java Web Application container (server). Architecturally, JSP may be viewed as a high-level abstraction of Java servlets. JSP pages are loaded in the server and operated from a structured special installed Java server packet called a J2EE Web Application often packaged as a .war or .ear file archive.

The technology allows Java code and certain pre-defined actions to be embedded into static page content and compiled on the server at runtime of each page request. Both the Java Server (J2EE specification) and the page scripts and/or extended customized

programming added operate by (in the runtime context of being loaded programs used) a special pre-installed base program called a virtual machine (VM) that integrates with the host operating system, this type being the Java Virtual Machine (JVM).

The new version of the JSP specification includes new features meant to improve programmer productivity. Namely:

1. An Expression Language (EL) which allows developers to create Velocity-style templates (among other things).

2. A faster/easier way to display parameter values.

3. A clearer way to navigate nested beans.

In the Java EE 5 Platform, the focus has been ease of development by making use of Java language annotations that were introduced by J2SE 5.0. JSP 2.1 supports this goal by defining annotations for dependency injection on JSP tag handlers and context listeners.

JAVA SERVLETS

Servlets are Java programming language objects that dynamically process requests and construct responses. The Java Servlet API allows a software developer to add dynamic content to a Web server using the Java platform. The generated content is commonly HTML, but may be other data such as XML. Servlets are the Java counterpart to non-Java dynamic Web content technologies such as PHP, CGI and ASP.NET, and as such some find it easier to think of them as 'Java scripts' (Not to be confused with JavaScript). Servlets can maintain state across many server transactions by using HTTP cookies, session variables or URL rewriting.

The servlet API, contained in the Java package hierarchy javax.servlet defines the expected interactions of a Web container and a servlet. A Web container is essentially the component of a Web server that interacts with the servlets. The Web container is responsible for managing the lifecycle of servlets, mapping a URL to a particular servlet and ensuring that the URL requester has the correct access rights.

A Servlet is an object that receives a request and generates a response based on that request. The basic servlet package defines Java objects to represent servlet requests and responses, as well as objects to reflect the servlet's configuration parameters and execution environment. The package javax.servlet.http defines HTTP-specific subclasses of the generic servlet elements, including session management objects that track multiple requests and responses between the Web server and a client. Servlets may be packaged in a WAR file as a Web application.

Page | 14

Page 15: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Servlets can be generated automatically by JavaServer Pages (JSP) compiler, or alternately use template engines such as WebMacro or Apache Velocity to generate HTML. Often servlets are used in conjunction with JSPs in a pattern called "Model 2", which is a flavor of the model-view-controller pattern.

APACHE TOMCAT SERVER

Apache Tomcat (or Jakarta Tomcat or simply Tomcat) is a servlet container developed by the Apache Software Foundation (ASF). Tomcat implements the Java Servlet and the JavaServer Pages (JSP) specifications from Sun Microsystems, and provides a "pure Java" HTTP web server environment for Java code to run.

Tomcat should not be confused with the Apache web server, which is a C implementation of an HTTP web server; these two web servers are not bundled together. Apache Tomcat includes tools for configuration and management, but can also be configured by editing XML configuration files.

Apache Tomcat version 6.0 implements the Servlet 2.5 and JavaServer Pages 2.1 specifications from the Java Community Process, and includes many additional features that make it a useful platform for developing and deploying web applications and web services.

ORACLE 10g

The Oracle Database (commonly referred to as Oracle RDBMS or simply Oracle) is a relational database management system (RDBMS) produced and marketed by Oracle Corporation. As of 2009[update], Oracle remains a major presence in database computing.

The Oracle DBMS can store and execute stored procedures and functions within itself. PL/SQL (Oracle Corporation's proprietary procedural extension to SQL), or the object-oriented language Java can invoke such code objects and/or provide the programming structures for writing them.

The Oracle RDBMS stores data logically in the form of tablespaces and physically in the form of data files. Tablespaces can contain various types of memory segments, such as Data Segments, Index Segments, etc. Segments in turn comprise one or more extents. Extents comprise groups of contiguous data blocks. Data blocks form the basic units of data storage.

Oracle database management tracks its computer data storage with the help of information stored in the SYSTEM tablespace. The SYSTEM tablespace contains the data dictionary and often (by default) indexes and clusters. A data dictionary consists of a special collection of tables that contains information about all user-objects in the database. Since version 8i, the Oracle RDBMS also supports "locally managed" tablespaces which can store space management information in bitmaps in their own headers rather than in the SYSTEM tablespace (as happens with the default "dictionary-managed" table spaces).

In computing, the Oracle Application Server 10g (the "g" stands for grid), consists of an integrated, standards-based software platform. It forms part of Oracle Corporation's Fusion Middleware technology stack. The heart of Oracle Application Server consists of Oracle HTTP Server (based on Apache HTTP Server) and OC4J (Oracle AS Containers for J2EE) which deploys J2EE-based

Page | 15

Page 16: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

applications. The latest [update] version of OC4J offers full compatibility with the J2EE 1.4 specifications.

Oracle Application Server became the first platform designed for grid computing as well as with full life-cycle support for service-oriented architecture (SOA). The current [update] release of Oracle Application Server, 10g R3, does not feature a metadata repository tier, relying instead on metadata repositories provided in previous releases.

UML

What is UML?

Is a language. It is not simply a notation for drawing diagrams, but a complete language for capturing knowledge (semantics) about a subject and expressing knowledge (syntax) regarding the subject for the purpose of communication.

Applies to modeling and systems. Modeling involves a focus on understanding a subject (system) and capturing and being able to communicate in this knowledge.

It is the result of unifying the information systems and technology industry’s best engineering practices (principals, techniques, methods and tools).

Diagrams in UML

A Diagram is the graphical presentation of a set of elements, most often rendered as a connected graph of things and relationships. UML includes 9 such diagrams.

1. Class Diagram.

2. Object Diagram.

3. Use Case Diagram.

4. Sequence Diagram.

5. Collaboration Diagram.

6. State Chart Diagram.

7. Activity Diagram.

9. Deployment Diagram.

1. Use Case Diagrams

Use Case Diagrams describe the functionality of a system and users of the system. These diagrams contain the following elements:

Actors, which represent users of a system, including human users and other systems.

Use Cases, which represent functionality or services provided by a system to users.

2. Class Diagrams

Page | 16

Page 17: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Class Diagrams describe the static structure of a system, or how it is structured rather than how it behaves. These diagrams contain the following elements.

Classes, which represent entities with common characteristics or features. These features include attributes, operations and associations.

Associations, which represent relationships that relate two or more other classes where the relationships have common characteristics or features. These attributes and operations.

3. Object Diagrams

Object Diagrams describe the static structure of a system at a particular time. Whereas a class model describes all possible situations, an object model describes a particular situation. Object diagrams contain the following elements:

Objects, which represent particular entities. These are instances of classes. Links, which represent particular relationships between objects. These are instances of

associations.

4. Sequence Diagrams

Sequence Diagrams describe interactions among classes. These interactions are modeled as exchange of messages. These diagrams focus on classes and the messages they exchange to accomplish some desired behavior. Sequence diagrams are a type of interaction diagrams. Sequence diagrams contain the following elements:

Class roles, which represent roles that objects may play within the interaction. Lifelines, which represent the existence of an object over a period of time. Activations, which represent the time during which an object is performing an operation. Messages, which represent communication between objects.

5. Collaboration Diagrams

Collaboration Diagrams describe interactions among classes and associations. These interactions are modeled as exchanges of messages between classes through their associations. Collaboration diagrams are a type of interaction diagram. Collaboration diagrams contain the following elements.

Class roles, which represent roles that objects may play within the interaction. Association roles, which represent roles that links may play within the interaction. Message flows, which represent messages sent between objects via links. Links transport or

implement the delivery of the message.

6. Statechart Diagrams

Statechart (or state) diagrams describe the states and responses of a class. Statechart diagrams describe the behavior of a class in response to external stimuli. These diagrams contain the following elements:

States, which represent the situations during the life of an object in which it satisfies some condition, performs some activity, or waits for some occurrence.

Transitions, which represent relationships between the different states of an object

Page | 17

Page 18: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

7. Activity Diagrams

Activity diagrams describe the activities of a class. These diagrams are similar to state chart diagrams and use similar conventions, but activity diagrams describe the behavior of a class in response to internal processing rather than external events as in state chart diagram.

Swim lanes, which represent responsibilities of one or more objects for actions within an overall activity; that is, they divide the activity states into groups and assign these groups to objects that must perform the activities.

Action States, which represent atomic, or no interruptible, actions of entities or steps in the execution of an algorithm.

Action flows, which represent relationships between the different action states of an entity. Object flows, which represent the utilization of objects by action states and the influence of

action states on objects

8. Component Diagrams

Component diagrams describe the organization of and dependencies among software implementation components. These diagrams contain components, which represent distributable physical units, including source code, object code, and executable code.

9. Deployment Diagrams

Deployment diagrams describe the configuration of processing resource elements and the mapping of software implementation components onto them. These diagrams contain components and nodes, which represent processing or computational resources, including computers, printers, etc.

Advantages of UML

UML is effective for modeling large, complex software systems

It is simple to learn for most developers, but provides advanced features for expert analysts, designers and architects

It can specify systems in an implementation-independent manner 10-20% of the constructs are used 80-90% of the time Structural modeling specifies a skeleton that can be refined and extended with additional

structure and behavior Use case modeling specifies the functional requirements of system in an object-oriented

manner

Entity Relationship Diagram (ERD)

Page | 18

Page 19: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Entity – Relationship Diagram: This depicts relationship between data objects.The attribute of each data objects noted in the entity- relationship diagram can be described using a data object description. Data flow diagram serves two purposes:1. To provide an indication of how data are transformed as they move through the system.2. To depict the functions that transforms the data flow.

Data Objects: A data object is a representation of almost any composite information that must be understood by the software. By composite information, we mean something that has a number of different properties or attributes. A data object encapsulates data only there is no reference within a data object to operations that act on the data.

Attributes: Attributes define the properties of a data object and take on one of three different characteristics. They can be used to:

Name an instance of data object. Describe the instance of data object

Generalization: There can be similarities between two or more entity sets in the sense that they have several attributes that are conceptually the same. This commonality can be expressed by generalization, which is a containment relationship that exists between a higher-level entity set and one or more lower-level entity set.

An E-R diagram is built up from the following components:

Rectangles , which represents entity sets

Weak entity set

Ellipses, which represents attributes

Multivalued attribute

Derived attribute

Page | 19

E

A

E

A

A

ISA

Page 20: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Diamonds, which represents sets of relationships among a member from

Each of several entity sets

Lines, which link attributes to entity sets and entity sets to relationships

Primary key

Identifying relationship set for weak entity set

Total participation of entity set in relationship

Role name Role indicator

Chapter 2

Problem definitionPage | 20

A

R

R

R

R

Page 21: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

1. The total hotel management system is to be completely computerized

2. A client who wants to check availability or book a room in anywhere in any branch he has to register himself first.

3. Registration can be done from a cafe computer or a home computer or a host in our any of the branch

4. After he is being registered he will be recognized by the system by his username, password, and a unique cookie that is provided to the computer as well as stored in the database along with his personal details.

5. Whenever he asks for a room, if available it will be provided other wise he will enter into the waiting state, and the client will be provided with a check in no. to check his current status

6. There will be a single standalone database in the server,

7. The database is divided into data sources one for each branch .But no client computer will divide the burden from the server.

8. A separate administrator is assigned for each branch.

9. Administrators are considered to be as if general users of the system accept a separate log in page and a unique id which is location dependent.

10. Admin can log in and see every kind of details of his branch through any computer but the id is according to his territory so that the server can identify him as the admin of a particular branch

11. Restriction is that the admin can see the details of only his branch. That is why we separate the branch details into distinct data sources.

12. There is no need to connect the data sources within the server because we can not migrate a customer from one branch to another.

13. The client can enter the details of the credit cards and his personal details needed for authentication, with utmost trust on our system, and it is stored in the server through a secure communication channel.

Chapter 3

System analysis

Page | 21

Page 22: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

A) Functional Requirements

Each administrator of each branch should be assigned a unique id and password. The system should authenticate the access by checking the standalone database stored for

each user as well as the administrators. The docket number assigned to the user, by the system, upon registration should be unique

with respect to entire database. The system should check the docket number in order to inform an individual about his/her

current status. The privileges will be provided to the customers according to the waiting list. Server should authenticate a user on the basis of the credit card no. during the preparation

of the bill All the account statements are created and maintained by server.

b) Non-functional Requirements

The System designed must be flexible and scalable in nature. It must be secure to ensure no unauthorized access to data. It must be able to handle the situation like network failure or power failure. It must provide quick recovery mechanism in the event of a failure. User interface screen must be designed to operate easily. All transactions should follow the ACID property.

c) Extracted classes

From the given problem statement the set of classes extracted are: -

Class Name DescriptionClient

Administrator

Branch

Represents the set of all users who can access the system.Represents the set of administrators of each data source.Represents the set of all branches.

d) Association

Page | 22

Page 23: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

The relationship between classes is shown by an association. From the above segment we obtain 3 good classes. Associations between good classes are called good associations. The associations between them are as follows:

Association Name DescriptionApproves

Run by

Checks in

Approval of a client.

Branch is run by an administrator.

A client checks in a branch.

e) Cardinality and Modality

Cardinality

The data model must be capable of representing the number of occurrences of objects in a given relationship. The cardinality of an object relationship pair is:

One-To-One (1:1): An occurrence of object ‘A’ can relate to one and only one occurrence of object ‘B’ and vice versa.

One-To-Many (1:N): One occurrence of object ‘A’ can relate to one or may occurrences of object ‘B’ but an occurrence of object ‘B’ can relate to only one occurrence of object ‘A’.

Many-To-Many (M: N): An occurrences of ‘B’ and an occurrence of ‘B’ can relate to one or many occurrence of ‘A’.

Modality:The modality of a relationship is zero if there is no explicit need for the relationship to occur or the relationship is optional. The Modality is one if the occurrence of the relationship is mandatory.

Page | 23

R

R

R

Page 24: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

The cardinality as given in the class diagram is:

Class Name Associating Class CardinalityAdministrator

Administrator

Branch

Branch

Client

Client

Branch

Administrator

Client

Administrator

0….*

1…1

1…1

0…*

0…*

Page | 24

Page 25: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

CHAPTER 4

System Design

a) Entities and Attributes

GUEST has attributes Name, Address, Age. ROOM has attributes RoomNo (Key), Rate, Type and Status (vacant or occupied) FOOD has attributes ProductId (Key), Rate and Type. BILL has attributes BillNo (Key), Date and Time FACILITIES has attributes FacilityId (Key), Type and Rate.

b) UML diagrams:- It is not simply a notation for drawing diagrams, but a complete language for capturing knowledge (semantics) about a subject and expressing knowledge (syntax) regarding the subject for the purpose of communication. It is the result of unifying the information systems and technology industry’s best engineering practices (principals, techniques, methods and tools).

Class Diagram

Use Case Diagram

Page | 25

Page 26: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Page | 26

Page 27: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Activity Diagram

Page | 27

Page 28: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Page | 28

Page 29: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

State Chart Diagram

Page | 29

Page 30: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Page | 30

Page 31: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Collaboration Diagram

Page | 31

Page 32: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Sequence Diagram

Page | 32

Page 33: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Page | 33

Page 34: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

C) E-R Diagrams

Page | 34

Page 35: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

d) Data flow diagram

Context Level DFD

Hotel Management System

Page | 35

Page 36: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Opening a New Room

Page | 36

Page 37: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Record Modification

Page | 37

Page 38: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Listing of Customers

Page | 38

Page 39: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Generating Bill

Page | 39

Page 40: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

e) Data modeling

Data modeling defines primary data objects, composition of each data object, attributes of the object, relationships between each object and other objects and between objects and the processes.

Login Status Table

Fields TypePassword CHARUsername Number

Customer Details Table

Fields TypeCustomerId NumberName CHARAddress CHAREmail CHARAge NumberDOJ DateOccupation CHARTelephone Number

Member Details Table

Fields TypeMemberId NumberName CHARAddress CHAREmail CHARAge NumberDOJ DateOccupation CHARStatus CHARTelephone NumberMembership CHAR

Page | 40

Page 41: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Booking Details Table

Fields TypePackage CHARMode_of_booking CHARFrom DateTo DateRequirement_details CHARState CHARFood_code NumberName CHAREmail CHARPhone Number

f) Function details

The basic objective of HOTEL MANAGEMENT SYSTEM is to generalize and simplify the monthly or day to day activities of Hotel like Room activities, Check in of New Customer, Check out of customer, assigning a room according to customer requirement, and finally compute the bill etc. which has to be performed repeatedly on regular basis. To provide efficient, fast, reliable and user-friendly system is the basic motto behind this exercise.Let us now discuss how different functions handle the structure and data files:

1. PasswordThis website is for multiple users. A User enters a password and the software checks its validity. If the password is valid then option is given to change the password, otherwise “Invalid User/Password” message is displayed. There is an option for logout, login, new users sign in. The Administrator can also update changes in the site after login.

2. Creating new Entity (Hotel, Room, Customers, and Members etc.)This is used to add a new customer details, delete entity details and view the details. In this function, whenever a new entity is required to be added ,the corresponding forms are opened and the database is manipulated to check whether the data is already existing or not. If it already exists, then it prompts that “Entry already existing” and if not than the data is entered with the various validation checks.

3. Function NEW_ROOM ()This is the function used to assign a new room for a customer so that he/she can assign a separate room. In that screen, the automatic room number is created. After opening a new room for the customer, finally a room is assigned to a customer and the room records are appended in the data file.

4. Function GENERATE_BILL ()When any customer checks_out, his/her bill is generated automatically by calculated check-out date minus check-in date and getting multiplied it by daily room charge plus other charges.

5. Function DISPLAY_RECORD ()

Page | 41

Page 42: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

This function is used to display all the transaction including the customer name, address, type of food assigned to him/her in the screen.

6. Validation of Data Entered by the User & Error HandlingIn this function, the validity of data entered by the user during the various business processes is checked through various validation checks. For example, there should not be any characters entered in the numeric fields, likewise if there is any error occurs than it should handle that particular error and give the required messages.

g) Database schema

Page | 42

Page 43: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Hotel Reservation Database Schema

Schema Diagram for the Hotel Reservation Database Schema

Page | 43

Page 44: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

FAMILY

Name Address Phone_no No_of_members

COMPANY

Name Address

ROOM

Room_no Type Rate Status Guest_ID Check_In_Date Check_Out

BILL

Bill_no Amount Date Method_Of_Payment Guest_ID

FOOD

Product_ID Rate Type

The Functional Dependencies are shown in the figure. According to the figure:

1. In all Tables attribute values are atomic hence they are in 1NF.2. In all tables there is no partial dependency and hence they are in 2NF.3. There is no transitive dependency at all, so they are in 3NF.4. All tables are also in BCNF because left hand side of all FDs contain only primary key (which

is of course super key) corresponding to their respective relation.

So, conclusion can be made that tables are in BCNF.

Page | 44

Page 45: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

h) Coding

1. Login

<%--

Document : login

Created on : Apr 21, 2010, 1:38:04 PM

Author : group

--%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>confirm</title>

<link rel="stylesheet" type="text/css" href="safflower/style.css" />

<style type="text/css">

<!--

.style5 {

font-family: "Times New Roman", Times, serif;

font-size: 70px;

font-weight: bold;

}

.style7 {

font-family: "Times New Roman", Times, serif;

font-size: 24px;

}

.style10 {

font-size: 24px;

font-weight: bold;

}

-->

Page | 45

Page 46: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

</style>

</head>

<body>

<div id="wrap">

<div id="bg">

<div id="header">

<div id="logo">

<span class="folat-r style5">iTTDC </span>

<div class="first folat-l">

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p> indiantravelandtourismdevelopmentcorporation </p>

</div>

</div><ul id="nav">

<li><a href="index.jsp">Home</a></li>

</ul>

</div>

<!-- /header -->

<h2>Login</h2>

<form action="login" method="post">

<p >USERNAME</p><label><input type="text" name="username"size="30" maxlength="30" /></label>

<p> PASSWORD</p><label><input type="password" name="pass" size="30" maxlength="30" /></label>

<p>

<input name="submit" type="submit" value="login" >

</p> </form>

<p >

Page | 46

Page 47: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

NEW USER? <a href="register.jsp">CLICK HERE TO REGISTER </a></p>

<div id="col">

<div class=" first float-l"></div>

<p>&nbsp;</p>

<p><font color="white">

</font>

</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

</div>

</div>

<div class="side folat-r">

<div id="top">

<h2>&nbsp;</h2>

<label>

<br/>

<a href="index.jsp">home</a> <br />

<br />

</label>

</div>

<div id="bm"></div>

<div id="bm"></div>

</div>

</div>

<!-- /content -->

Page | 47

Page 48: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

</div>

<div id="footer">

<div id="ftinner">

<div class="ftlink float-l"> <a href="#"></a>

<p id="copyright"><br/>

<a href="http://www.free-css-templates.com/"></a></p>

</div>

<div class="valid folat-r"></div>

</div>

</div>

<!-- /footer -->

</div>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

</body>

</html>

Page | 48

Page 49: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

2. Check Availability

<%--

Document : avail

Created on : Apr 12, 2010, 12:06:28 PM

Author :group

--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>safflower</title>

<link rel="stylesheet" type="text/css" href="safflower/style.css" />

<style type="text/css">

<!--

.style5 {

font-family: "Times New Roman", Times, serif;

font-size: 70px;

font-weight: bold;

}

.style7 {

font-family: "Times New Roman", Times, serif;

font-size: 24px;

}

-->

</style>

</head>

<body>

<div id="wrap">

Page | 49

Page 50: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

<div id="bg">

<div id="header">

<div id="logo">

<span class="folat-r style5">iTTDC </span>

<div class="first folat-l">

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p> indiantravelandtourismdevelopmentcorporation </p>

</div>

</div><ul id="nav">

<li><a href="index.jsp">Home</a></li>

</ul>

</div>

<!-- /header -->

<div id="content">

<div class="main float-l">

<div id="text">

<h2>Check availability </h2>

<p><strong> select type of room:-</p>

<p align="centre"><select name="select5">

<option>SINGLE AC</option>

<option>SINGLE NON_AC</option>

<option>DOUBLE AC</option>

<option>DOUBLE NON-AC</option>

<option>SUITE</option>

</select>

</p>

</div>

Page | 50

Page 51: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

<div id="col">

<div class=" first float-l">

<p align="center">arival date:-</p>

</div>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p><font color="white">

<select name="select" size="1" >

<option>1 </option>

<option>2</option>

<option>3</option>

<option>4</option>

<option>5</option>

<option>6</option>

<option>7</option>

<option>8</option>

<option>9</option>

<option>10</option>

<option>11</option>

<option>12</option>

<option>13</option>

<option>14</option>

<option>15</option>

<option>16</option>

<option>17</option>

<option>18</option>

<option>19</option>

<option>20</option>

Page | 51

Page 52: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

<option>21</option>

<option>22</option>

<option>23</option>

<option>24</option>

<option>25</option>

<option>26</option>

<option>27</option>

<option>28</option>

<option>29</option>

<option>30</option>

<option>31</option>

</select>

<label><font color="#FFFFFF" face="Times New Roman, Times, serif">DAY</font></label>

</font>

<label>

<select name="select2">

<option>JAN</option>

<option>FEB</option>

<option>MAR</option>

<option>APR</option>

<option>MAY</option>

<option>JUN</option>

<option>JUL</option>

<option>AUG</option>

<option>SEP</option>

<option>OCT</option>

<option>NOV</option>

Page | 52

Page 53: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

<option>DEC</option>

</select>

<font color="#FFFFFF" size="-1" face="Times New Roman, Times, serif">MONTH</font></label>

<label>

<select name="select2">

<option>2010</option>

<option>2011</option>

<option>2012</option>

</select>

<font size="-1" face="Times New Roman, Times, serif">YEAR</font></label>

</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<div class=" folat-l ">

<p align="left">deperture date:-</p>

<p>&nbsp;</p>

<p><font size="-1" color="#FFFFFF" face="Times New Roman, Times, serif"><label>

<select name="select3">

<option>1</option>

<option>2</option>

<option>3</option>

<option>4</option>

<option>5</option>

<option>6</option>

<option>7</option>

<option>8</option>

<option>9</option>

<option>10</option>

Page | 53

Page 54: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

<option>11</option>

<option>12</option>

<option>13</option>

<option>14</option>

<option>15</option>

<option>16</option>

<option>17</option>

<option>18</option>

<option>19</option>

<option>20</option>

<option>21</option>

<option>22</option>

<option>23</option>

<option>24</option>

<option>25</option>

<option>26</option>

<option>27</option>

<option>28</option>

<option>29</option>

<option>30</option>

<option>31</option>

</select>

DAY</label>

</font>

<label>

<select name="select4">

<option>JAN</option>

Page | 54

Page 55: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

<option>FEB</option>

<option>MAR</option>

<option>APR</option>

<option>MAY</option>

<option>JUN</option>

<option>JUL</option>

<option>AUG</option>

<option>SEP</option>

<option>OCT</option>

<option>NOV</option>

<option>DEC</option>

</select>

<font size="-1" color="#FFFFFF" face="Times New Roman, Times, serif">MONTH </font></label>

<label>

<select name="select4">

<option>2010</option>

<option>2011</option>

<option>2012</option>

</select>

<font size="-1" color="#FFFFFF" face="Times New Roman, Times, serif">YEAR</font></label>

</p>

</div>

</div>

</div>

<div class="side folat-r">

<div id="top">

<h2>

Page | 55

Page 56: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

<a href="#">Check</a>

</h2>

<label>

<br/>

<input type="text" name="textfield" />

<br />

<br />

</label>

</div>

<div id="bm">

<h2>&nbsp;</h2>

<h2><a href="login.jsp">Calculate bill</a> </h2>

</div>

</div>

</div>

<!-- /content -->

</div>

<div id="footer">

<div id="ftinner">

<div class="ftlink float-l"> <a href="#"></a>

<p id="copyright">© 2010. All Rights Reserved. <br/>

<a href="http://www.free-css-templates.com/"></a></p>

</div>

<div class="valid folat-r"></div>

</div>

</div>

<!-- /footer -->

</div>

</body>

</html>

Page | 56

Page 57: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

3. Registration

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Registration Page</title>

</head>

<body background="bg.jpg">

<div align="center"><marquee>

<h2>Wanna Be A Part Of Our Chain Of Hotels.....REGISTER FOR FREE</h2></marquee><br />

</div>

<form action="register" method="post">

<div align="right">

<font color="red">*</font> Mandatory Fields</div>

<h2 align="center"><font color="black" size="+3"><strong><font face="Times New Roman, Times, serif"><u>ACCOUNT DETAILS :</u></font></strong></font></h2>

<p align="center">

<font color="red">* </font>

Username :

<input type="text" name="username" /><br /><br />

<font color="red">*</font>

Password :

<input type="password" name="pass" /><br /><br />

<h2 align="center"><font face="Times New Roman, Times, serif"><strong><u><font color="black" size="+3">CONTACT DETAILS :</font></u></strong></font></h2>

<p align="center">

<font color="red">*</font>

Name : <input type="text" name="name" /><br /><br />

Page | 57

Page 58: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

<font color="red">*</font>

Email address : <input type="text" name="email" /><br /><br />

<font color="red">*</font>

Address :

<input type="text" name="addr">

<br /><br />

<font color="red">*</font>

Phone no: <input type="text" name="phn"><br /><br />

<font color="red">*</font>

Age : <input type="text" name="age"><br /><br />

<font color="red">*</font>

Sex: <input type="text" name="sex"><br /><br />

<font color="red">*</font>

Personal Identification Number : <input type="text" name="pid"><br /><br />

<div align="center">

<input type="submit" name="submit" value="Register" >

<input name="reset" type="reset" >

</div>

</form>

</body>

</html>

Page | 58

Page 59: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

4. Confirmation

<%--

Document : confirm

Created on : Apr 26, 2010, 11:16:56 AM

Author : group

--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>confirm</title>

<link rel="stylesheet" type="text/css" href="safflower/style.css" />

<style type="text/css">

<!--

.style5 {

font-family: "Times New Roman", Times, serif;

font-size: 70px;

font-weight: bold;

}

.style7 {

font-family: "Times New Roman", Times, serif;

font-size: 24px;

}

.style10 {

font-size: 24px;

font-weight: bold;

}

-->

Page | 59

Page 60: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

</style>

</head>

<body>

<div id="wrap">

<div id="bg">

<div id="header">

<div id="logo">

<span class="folat-r style5">iTTDC </span>

<div class="first folat-l">

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p> indiantravelandtourismdevelopmentcorporation </p>

</div>

</div><ul id="nav">

<li><a href="index.jsp">Home</a></li>

</ul>

</div>

<!-- /header -->

<div id="content">

<div class="main float-l">

<div id="text">

<h2>Room bill </h2>

<p><strong> select type of room:-</p>

<p align="centre"><select name="select5">

<option>SINGLE AC</option>

<option>SINGLE NON_AC</option>

<option>DOUBLE AC</option>

Page | 60

Page 61: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

<option>DOUBLE NON-AC</option>

<option>SUITE</option>

</select>

</p>

<p align="centre">&nbsp;</p>

<p align="centre"> no. of days:-</p>

<p align="centre">

<label>

<input type="text" name="textfield2" />

</label>

</p>

<p align="centre">&nbsp;</p>

<p align="centre">

<label>

<input type="text" name="textfield3" />

</label>

<label>

<input name="room" type="submit" value="calculate" />

</label>

</p>

</div>

<div id="col">

<div class=" first float-l">

<h2 align="center" class="style10">Food choice </h2>

</div>

<p>&nbsp;</p>

<p><font color="white">

</font>

</p>

Page | 61

Page 62: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

<p>&nbsp;</p>

<table width="516" border="2">

<tr>

<th width="123" height="22" scope="col"><label>

<div align="center">Food Code </div>

</label></th>

<th width="123" scope="col"><label>

<div align="center">Quantity</div>

</label></th>

<th width="104" scope="col"><label></label>

<label>

<div align="center">Food Code</div>

</label></th>

<th width="136" scope="col"><label>

<div align="center">Quantity</div>

</label></th>

</tr>

<tr>

<th width="123" height="22" scope="col"><label>

<input type="text" name="textfield4" />

</label></th>

<th width="123" scope="col"><label>

<input type="text" name="textfield7" />

</label></th>

<th width="104" scope="col"><label>

<input type="text" name="textfield10" />

</label>

<label></label></th>

<th width="136" scope="col"><label>

<input type="text" name="textfield13" />

</label></th>

Page | 62

Page 63: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

</tr>

<tr>

<td><label>

<input type="text" name="textfield5" />

</label></td>

<td><label>

<input type="text" name="textfield8" />

</label></td>

<td><label>

<input type="text" name="textfield11" />

</label></td>

<td><label>

<input type="text" name="textfield14" />

</label></td>

</tr>

<tr>

<td><label>

<input type="text" name="textfield6" />

</label></td>

<td><label>

<input type="text" name="textfield9" />

</label></td>

<td><label>

<input type="text" name="textfield12" />

</label></td>

<td><label>

<input type="text" name="textfield15" />

</label></td>

</tr>

</table>

Page | 63

Page 64: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

<p> food bill:-<input name="" type="text" maxlength="20" /><input name="food" type="submit" value="calculate" />

</p>

</div>

</div>

<div class="side folat-r">

<div id="top">

<h2>

Other Charges:-

</h2>

<label>

<br/>

<input type="text" name="textfield" />

<br />

<br />

</label>

</div>

<div id="bm">

<h2>Calculate Total:-</h2>

<input name="bill" type="text" />

</div>

<div id="bm">

<h2>Pay bill</h2>

insert credit card no. <input name="bill" type="text" /><input name="confirm" type="submit" value="confirm" />

</div>

</div>

</div>

<!-- /content -->

</div>

<div id="footer">

<div id="ftinner">

Page | 64

Page 65: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

<div class="ftlink float-l"> <a href="#"></a>

<p id="copyright">© 2010. All Rights Reserved. <br/>

<a href="http://www.free-css-templates.com/"></a></p>

</div>

<div class="valid folat-r"></div>

</div>

</div>

<!-- /footer -->

</div>

</body>

</html>

*********************************

i) Screen shots

Page | 65

Page 66: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Home Page

Room rates Page

Page | 66

Page 67: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Registration Page

Page | 67

Page 68: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Check availability Page

Page | 68

Page 69: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Page | 69

Page 70: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Bill Calculation Page

Page | 70

Page 71: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

CHAPTER 5

Conclusion and Future Scope While developing the system a conscious effort has been made to create and develop a software package, making use of available tools, techniques and resources – that would generate a proper voting registration site.

While making the system, an eye has been kept on making it as user-friendly, as cost-effective and as flexible as possible. As such one may hope that the system will be acceptable to any user and will adequately meet his/her needs.

As in case of any system development process where there are a number of shortcomings, there has been some shortcomings in the development of this system also.

The software system described above suffers from certain limitations. Such limitations have crept into it owing to unavoidable circumstances of which time constraint is a major one. They are listed below:

1. The system could be more generalized. 2. We could have been made our authentication procedure more appropriate so that it can

read a valid pan card on the client side. We could have been introduced much client side checking to make our software safer.

3. The software to be created as such to run in any computer with any operating system platform.

Utmost care and back-up procedures must be established to ensure 100% successful implementation of the computerized hotel system. In case of system failure, the organization should be in a position to process the transaction with another organization or if the worst comes to the worst, it should be in a position to complete it manually.

Page | 71

Page 72: Copy of Copy of A real homely atmosphere with all vigor and vitality of nature (Autosaved)_1

Bibliography

JAVA Programming: E.Balagurusamy

JAVA Projects Tony: Martin,Dominic Selly

JAVA Professional Projects: Kuljit Kaur,Pooja Bembey

MY SQL The Complete Reference: George Koch An Overview of UML: Krishnamurthy Database System concepts: Henry F. Korth Web Technology C. Xavier

Page | 72