Professional Documents
Culture Documents
2010
DEPARTMENT OF COMPUTER APPLICATIONS COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY COCHIN -22
2010
COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY COCHIN-22 This is to certify that the project report entitled ONLINE HOTEL MANAGEMENT is a bonafide record of the work done by PRIYESH KUMAR (Regno.95580034) As The M.C.A 4TH semester Mini project.. JUNE 2010
2010
2010
4.1User Interface Requirements 4.2Database Requirements 4.3Functional Requirements 4.4Non-Functional Requirements 4.5Other Requirements and Constraints
5. SYSTEM DESIGN 5.1 ARCHITECTURAL DESIGN 5.2 PROCESS DESIGN 5.3 ER-DIAGRAMS 6. DATA DESIGN 6.1.DATA FLOW DIAGRAMS 6.2ACTIVITY DIAGRAMS 6.3DATABASE DESIGN 7. SYSTEM TESTING 7.1. LEVELS OF TESTING AND TEST CASES 7.2VALIDATION CHECKS 8. SYSTEM IMPLEMENTATION 9. SYSTEM MAINTENANCE 10.SCREEN SHOTS 11.CONCLUSION APPENDIX BIBLIOGRAPHY
2010
ACKNOWLEDGEMENTS
I have a great pleasure in acknowledging the help given by various individuals throughout the project work. This project is itself an acknowledgement to the inspiration, drive and technical assistance contributed by many individuals. I express my sincere and heartfelt gratitude to Mr. K.V.Pramod,Head of the Department of Computer Applications, for being helpful and co-operative during the period of the project. I also express my deep gratitude to the faculty members Ms.Malathi,Mr.B.Kannan,Mr.A.Sreekumar,Mr.Arun Sir and our other faculties for their valuable guidance, timely suggestions and help in the completion of this mini project. I extend my sincere thanks to all the non-teaching staff for providing the necessary facilities and help. Without the support of anyone of them this project would not have been a reality.
Sincerely
2010
SYNOPSIS
OBJECTIVE:The Central objective of OHM is to provide Online facility for booking Hotel. In previous system ( i.e Manual System ) , person has to go to the Hotel for booking, enquiry etc. This was the fully time consuming, expensive etc. Through this product, person can book the Hotel by sitting in the Room. DURATION:- 3 Months TOOLS USED FOR DEVELOPING:Language Database Technology Web Server IDE -> JAVA -> My SQL -> JSP -> APACHE TOMCAT 6.0 -> NETBEANS
2010
1.INTRODUCTION
2010
1. INTRODUCTION The website which deals with the easy online reservation in an hotel with high security and is known as ONLINE HOTEL MANAGEMENT. This Project Provides solution regarding the hotel reservation problems of users. User can easily check availability of room & if room is available , then he/she can get room in the hotel. By the use of Internet the user can save so much time for his reservation. The project consists of two modules:Administrator module and User module. Administrator Module Can Login Check Customer details Check Room details Update Room Status User Module Check room Availability Fill Reservation Form Get Reservation Slip
2010
1.1
Objectives:-
The Central objective of OHM is to provide Online facility for booking Hotel. In previous system ( i.e Manual System ) , person has to go to the Hotel for booking, enquiry etc. This was the fully time consuming, expensive etc. Through this product, person can book the Hotel by sitting in the Room. 1.2 Problem Definition:The aim is to develop software, which can manage and keep the records of the hotel . The existing system is manual. Computerized reservation technology enables the customer to select and rooms without going to the hotel and he can make transactions with through internet. Thus, the customer can save so much time 1.3 SYSTEM ENVIRONMENT Hardware Configuration Processor RAM Hard Disk Modem : Pentium III or higher : 128 MB or More : 20 GB or More : 56KBPS / LAN Card
Software Configuration Operating System Web Server Front End Scripts Language : Windows XP, VISTA ,7. : Apache : JSP : JavaScript : JAVA
9
2010
HISTORY OF JAVA Java language was developed by James Gosling and his team at sun micro systems and released formally in 1995. Its former name is oak. Java Development Kit 1.0 was released in 1996. To popularize java and is freely available on Internet. JAVA Java is loosely based on C++ syntax, and is meant to be Object-Oriented Structure of java is midway between an interpreted and a compiled language. The java compiler into Byte Codes, which are secure and portable across different platforms, compiles Java programs. These byte codes are essentially instructions encapsulated in single type, to what is known as a java virtual machine (JVM), which resides in standard browser. JVM verifies these byte codes when downloaded by the browser for integrity. Jvms available for almost all OS. JVM converts these byte codes into machine specific instructions at runtime. FEATURES OF JAVA Java is object-oriented language and supports encapsulation, inheritance, polymorphism and dynamic binding, but does not support multiple inheritances. Every thing in java is an object except some primitive data types.
10
2010
Overview of JSP The JSP technology will be used to interface HTML with Java. The JSP technology provides a seamless connection with Java and presents an easy to use, Java-like programming constructs that can be scripted within HTML files. Java Server Pages is a technology for developing web pages that include dynamic content. A JSP page contains standard markup language elements, such as HTML tags, just like a regular web page. A JSP page also contains special JSP elements that allow the server to insert dynamic content in the web page. ADVANTAGES OF JSP JSP supports both scripting and element-based dynamic content. Allows developing custom tag libraries. JSP pages are precompiled for efficient server processing. JSP pages can be used in combination with servlets that handle the business logic. High Security. Can run on any J2EE compatible web Server.
11
2010
12
2010
Overview of Apache Tomcat Apache 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. Overview of MySQL MySQL is a multithreaded, multi-user SQL database management system (DBMS) which has, according to Mysql AB, more than 10 million installations Mysql is owned and sponsored by a single for-profit firm, the Swedish company Mysql AB, which holds the copyright to most of the codebase. Libraries for accessing Mysql databases are available in all major programming languages with language-specific APIs. In addition, an ODBC interface called MyODBC allows additional programming languages that support the ODBC interface to communicate with a Mysql database, such as ASP or Coldfusion. The Mysql server and official libraries are mostly implemented in ANSI C.
13
2010
14
2010
15
2010
16
2010
2010
Reviews by the client after each presentation. 2.8 SOFTWARE DEVELOPMENT PROCESS The software development process involves three stages: 1) Requirements phase, 2)Design phase 3) Implementation and testing phase. During each phase, the client will review the deliverable documents. The developer would incorporate modifications suggested by the committee. This would ensure quality of the software product. 2.9 PROJECT REVIEWS The client will perform a review at the 3 stages of the project as described in the section above. This review will determine whether the requirements have been met for the deliverable, check that the product meets the requirements, ensure that the SQA plan has been adhered to, verify the performance of the software and ensure that acceptance testing is carried out. A design checklist will be used and the developer will check to see whether the design meets the checklist criteria. 2.10 TESTING AND QUALITY CHECK Testing will be carried out in accordance with the Software Testing Plan (STP). Testing documentation will be sufficient to demonstrate that testing objectives and software requirements have been met. Test results will be documented and discussed in the final phase of the project.
PRIYESH KUMAR, DCA, CUSAT, Kochi-22
18
2010
3. SYSTEM ANALYSIS
19
2010
SYSTEM ANALYSIS System analysis is the process of gathering and interpreting facts, diagnosing problems and using the facts to improve the system. System specifies what system should do. A system is a set of components that interact to accomplish some purpose. Identifying the drawback of the existing system Identify the need for conversion Perform feasibility study Identify hardware, software and database requirements Create a system definition that forms the foundation for subsequent work 3.1 SYSTEM STUDY Overview of the Existing System In the existing system user can face so much problems. They have to waist so much time for the reservation of the room. For reserving a room user should have to go to the hotel. This is the time consuming task. Some time user is very tired then they faces the so much problem. Sometimes user feel the laziness ,this is also failure for the existing system.
Objectives of Online Hotel management The Central objective of OHM is to provide Online facility for booking Hotel. In previous system ( i.e Manual System ) , person has to go to the Hotel for booking, enquiry etc. This was the fully time consuming, expensive etc. Through this product, person can book the Hotel by sitting in the Room.
20
2010
21
2010
Is the need significant enough to justify the proposed project? Will the need still exist by the time the project is completed? What are the alternate means of satisfying the need? What are the economic, social, environmental, and political impacts of the need?
Process Work. This is the preliminary analysis done to determine what will be required to satisfy the need. The work may be performed by a consultant who is an expert in the project field. The preliminary study often involves system models or prototypes. For technology-oriented projects, artist's conception and scaled-down models may be used for illustrating the general characteristics of a process. A simulation of the proposed system can be carried out to predict the outcome before the actual project starts.
22
2010
23
2010
24
2010
25
2010
26
2010
27
2010
5.SYSTEM DESIGN
28
2010
System design provides the understanding and procedural details necessary for implementing the system recommended in the system study .Emphasis is on translating the performance requirements into design specifications . The Design phase is a transition from a user oriented document (System proposal) to a documented oriented to the programmers or database personnel. 5.1 ARCHITECTURAL DESIGN The basic architecture for the proposed system is like that
5.2 PROCESS DESIGN V Model of development V Process is a whole life-cycle process. V Process must be applied at each stage in the software process.
29
2010
Objective The V-Model (Lifecycle Process Model) regulates the system development process and the maintenance and modification of systems. This standard helps to achieve the following objectives: Improvement and guarantee of the quality:
The discovery of defects in a system. The assessment of whether or not the system is usable in an operational
situation.The completeness of the results to be delivered can best be guaranteed by a standardized procedure.
5.3 ENTITY RELATIONSHIP DIAGRAM It is clear that the physical objects from the previous section the administrator,rooms, Customer correspond to entities in the EntityRelationship model, and the operations to be done on those entities.
30
2010
room
No_of_ room
User_id
Customer details
city
User
country
Check_ out
Room _type
mobile
Check_in
gguest
bank
31
2010
6.DATA DESIGN
32
2010
When designing a database, the following points are considered: The purpose of the whole database and how if affects the design should be taken into consideration. Create a database plan to fit your purpose. Database normalization rules that prevent mistakes in the database design. Protection of your datas integrity. Security requirements of the database and user permissions. Performance needs of the application. You must ensure that the database design takes advantage of software features that improve performance. Achieving a balance between the size of the database and the hardware configuration is also importance for performance. Maintenance Estimating the size of a database.
Prim
33
2010
2. reservation This table stores Customers Reservation Details. Field Name name address city state country mobile room_type check_in check_out guest account_number bank Type Varchar Varchar Varchar Varchar Varchar Int Varchar Date Date Int Int Varchar Size 30 500 20 20 20 10 50 10 10 10 20 15 Prim key Description Name of customer. Address of customer. City of customer. State of customer. Country of customer. Customers Mobile No Room detail Date of check-in Date of check-out No. of Guranted users Account Number of bank Bank Name
3. room This table stores the Status of Room that are available in the website for Reservation. Field Name room no_of_room Type Varchar Int Size 25 2 key Prim Description Name of room Number of Rooms
34
2010
Level - 0
hotel customer database
Level - 1
Customer details administrator hotel User Room status Update room database
reservation
Level - 2
Customer details administrator hotel Room status Update room database
Reservation slip
35
2010
7.TESTING
36
2010
Requirements
System Testing
Design
Integration Testing
Unit Testing
37
2010
38
2010
Acceptance testing is done after implementation to Acceptance check if the system runs successfully in the Testing customer environment/site.
UNIT TESTING Unit Testing will be done to test field validations, navigation, functionality of the programs and its blocks. These tests are applied on various functions within each program and other critical program blocks. Table given below gives the outline of three-sample test cases for Unit Testing performed on the system Table Unit Testing Test Case 1 Test Case Description This test case deals with the entering of basic details related with the registered and logged in user . This process takes many inputs. The test case should check for proper inputs and verify whether the function for validating the inputs is called properly or not. Expected Inputs Details Related With The logged in user in a Standard Format. Expected Outputs Alert window for erroneous inputs. Confirmation of Successful Completion of Basic Details Entry Process. Actual Test Results
39
2010
Table Unit Testing Test Case 2 Test Case Description This test case deals with the updating of Basic Details related with the users trade by the java function. The test will check if the java function receives the updating details properly and checks if the updating is performed correctly or not. Expected Inputs Updated Basic Details from the web server. Expected Outputs The java function should return the correct row count. Row count denotes the number of rows being updated. Actual Test Results The java function received the details to be updated properly. On updating the correct row count was returned by the function.
MODULE TESTING Module testing will be done to test the interaction between the various programs within one module. It checks the functionality of each program
PRIYESH KUMAR, DCA, CUSAT, Kochi-22
40
2010
41
2010
Constraints: In this I am defining range of data if data is less than then display error with message. For example code of password is four characters. The field of date must be 8 characters. Format: The pre define format is used not change daily to daily for example format of date: is YYMMDDused in all date type field. If user inserts an other format then display message. Web Design Constraints The following design constraints were kept in mind while designing the pages for the whole application: The pages should be consistent and easy to operate. It should be designed in such a way that an average user who does not have much idea about JSP and related technology can still be able to access the information needed..
42
2010
8.SYSTEM IMPLEMENTATION
43
2010
44
2010
9.SYSTEM MAINTENANCE
45
2010
SYSTEM MAINTENANCE System maintenance is the modification of a software product after delivery to correct faults, to improve performance or other attributes, or to adapt the product to a modified environment. Maintenance is thus a very broad activity often defined as including all work made on a software system after it becomes operational. Maintenance covers large number of activities like the correction of errors, the enhancement, deletion and addition of capabilities, the adaptation to changes in data requirements and operation environments, the improvement of performance, usability, or any other quality attribute. Maintenance accounts for 50-80 percent of total system development. To put maintenance in its proper perspective requires considerable skill and experience and is an important and ongoing aspect of system development. Maintenance demands more orientation and training than any other programming activities. The environment must recognize the needs of the maintenance programmer for tools, methods and training. Maintenance is done after the successful implementation of the software and is continued till the product is reengineered or deployed to another platform. Maintenance is also done based on fixing the problems reported, changing the interface with other software or hardware enhancing the software.
46
2010
10.SCREEN SHOTS
47
2010
Main Page
48
2010
About Arzu
49
2010
About Bihar
50
2010
Services
51
2010
Tariff
52
2010
Photogallery
53
2010
Contact Us
54
2010
Room Details
55
2010
Banquet Details
56
2010
Restaurants
57
2010
Reservations
58
2010
Reservation Slip
59
2010
Administrator Login
60
2010
Administrator Page
61
2010
Customer Details
62
2010
Room Status
63
2010
64
2010
11.CONCLUSION
65
2010
CONCLUSION From a proper analysis of positive points and constraints on the component, it can be safely concluded that the product isa highly efficient GUI based component. This application isworking properly and meeting to all user requirements. This component can be easily plugged in many other systems Appendix Programming Programming is not only a creative activity but also an intellectually rigorous discipline. It is the part where the design is actually translated into the machine readable form which is called program . Programming Principles The main activity of coding phase is to translate design into code. If we translate the structure of the design properly, we will have structured programs. A structured Program doesnt just happen. It is the end product of series of efforts that try to understand the problem and develop a structured , understandable solution plan . It is all impossible to write a good structured program based on unstructured poor design .The coding phase affects both testing and maintenance , profoundly the time spent in coding is small percentage of the total software cost , while testing and maintenance consume the major percentage . The goal of coding phase is not to simplify the job of the tester and maintainer. Programming style A well written program is more easily read and understood both by the author and by others who work that program. A good Programming style is characterized by the following:Simplicity
66
2010
67
2010
BIBLIOGRAPHY Core Java JSP Complete Reference - Herbert Schildt The Java EE tutorial Jennifer ball, Eric Jendrok Ivan Bayross Practical guide for developers Gregory D. Speegle
68
2010
69