IP Project File CLASS 12

February 12, 2017 | Author: S.r.Siddharth | Category: N/A
Share Embed Donate


Short Description

Download IP Project File CLASS 12...

Description

By-

Project File On Hotel Managment Session: 2014-15

By- Amey Satpute Under the guidance of

Mrs.Lalita Chatterjee for partial fulfillment of

Class XII CBSE Submitted to:

JAWAHARLAL NEHRU SCHOOL BHEL,BHOPAL.

A project usually falls short of its expectations unless guided by the right person at the right time. This project would not have been completed without the direct and indirect support of "Mrs Lalita Chatterjee" and school authorities. She provided me with an environment conductive of healthy learning and her support. This project would not have been such a success without her contribution. Last but not the least, I would like to thank my Family, Friends and all those who helped me in some way or the other in successful completion of the project.

Amey Satpute & S.R.S.Siddhart

Amey Satpute & SSRSSiddhart has successfully completed the Project This is to certify that

File with the help of Java Programming Language and MySQL under my guidance & supervision. I am satisfied with there initiative and the efforts for the completion of Project file as a part of curriculum of

CBSE Class XIIExamination. DATE: 14th November , 2014 PLACE: BHOPAL Signature Of Internal Examiner

Signature Of External Examiner

About our project

Our project is made by the use of JAVA Programing & MYSQL

INTRODUCTION TO THE PROJECT “AIRLINE RESERVATION SYSTEM” This project has been designed using JAVA platform and MySQL as database. FLIGHTS, PASSENGER and CANCELLED are three tables in MySQL. The records of flights are displayed from FLIGHTS table as per the details of destinations entered by passenger. The personal details given by passenger are stored in PASSENGER table. We can add and delete records from PASSENGER table. The records that are deleted from passenger table are moved to CANCELLED table.

INTRODUCTION TO JAVA Java is a computer programming language that is concurrent, classbased, object-oriented, and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere" (WORA), meaning that code that runs on one platform does not need to be recompiled to run on another. Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of computer architecture. Java is, as of 2014, one of the most popular programming languages in use, particularly for clientserver web applications, with a reported 9 million developers. Java was originally developed by James Gosling at Sun Microsystems (which has since merged into Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++, but it has fewer low-level facilities than either of them. The original and reference implementation Java compilers, virtual machines, and class libraries were originally released by Sun under proprietary licences. As of May 2007, in compliance with the specifications of the Java Community Process, Sun relicensed most of its Java technologies under the GNU General Public License. Others have also developed alternative implementations of these Sun technologies, such as the GNU Compiler for Java (bytecode compiler), GNU Class path (standard libraries), and IcedTea-Web (browser plug-in for applets).

HISTORY OF JAVA James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. Java was originally designed for interactive television, but it was too advanced for the digital cable television industry at the time. The language was initially called Oak after anoak tree that stood outside Gosling's office. Later the project went by the name Green and was finally renamed Java, from Java coffee, said to be consumed in large quantities by the language's creators. Gosling designed Java with a C/C++-style syntax that system and application programmers would find familiar. Sun Microsystems released the first public implementation as Java 1.0 in 1995. It promised "Write Once, Run Anywhere" (WORA), providing no-cost run-times on popular platforms. Fairly secure and featuring configurable security, it allowed network- and file-access restrictions. Major web browsers soon incorporated the ability to run Java applets within web pages, and Java quickly became popular. The Java 1.0 compiler was re-written in Java by Arthur van Hoff to comply strictly with the Java 1.0 language specification. With the advent of Java 2 (released initially as J2SE 1.2 in December 1998 – 1999), new versions had multiple configurations built for different types of platforms. J2EE included technologies and APIs for enterprise applications typically run in server environments, while J2ME featured APIs optimized for mobile applications. The desktop version was renamed J2SE. In 2006, for marketing purposes, Sun renamed new J2 versions as Java EE, Java ME, and Java SE, respectively. In 1997, Sun Microsystems approached the ISO/IEC JTC1 standards body and later the Ecma International to formalize Java, but it soon withdrew from the process.Java remains a de facto standard, controlled through the Java Community Process. At one time, Sun made most of its Java implementations available without charge, despite their proprietary software status. Sun generated revenue from Java through the selling of licenses for specialized products such as the Java Enterprise System.

On November 13, 2006, Sun released much of Java as free and open source software, (FOSS), under the terms of the GNU General Public License (GPL). On May 8, 2007, Sun finished the process, making all of Java's core code available under free software/open-source distribution terms, aside from a small portion of code to which Sun did not hold the copyright. Sun's vice-president Rich Green said that Sun's ideal role with regards to Java was as an "evangelist." Following Oracle Corporation's acquisition of Sun Microsystems in 2009–2010, Oracle has described itself as the "steward of Java technology with a relentless commitment to fostering a community of participation and transparency". This did not prevent Oracle from filing a lawsuit against Google shortly after that for using Java inside the Android SDK (see Google section below). Java software runs on everything from laptops to data centres, game consoles to scientific super computers. There are 930 million Java Runtime Environment downloads each year and 3 billion mobile phones run Java. On April 2, 2010, James Gosling resigned from Oracle.

Features of Java: 1. 2. 3. 4. 5. 6. 7. 8.

Simple Object-Oriented Platform Independent Secured Robust Open product Portable WORA (Write once Run anywhere)

JAVA PLATFORM One design goal of Java is portability, which means that programs written for the Java platform must run similarly on any combination of hardware and operating system with adequate runtime support. This is achieved by compiling the Java language code to an intermediate representation called Java byte code, instead of directly to architecture-specific machine code. Java byte code instructions are analogous to machine code, but they are intended to be executed by a virtual machine (VM) written specifically for the host hardware. End-users commonly use a Java Runtime Environment (JRE) installed on their own machine for standalone Java applications, or in a web browser for Java applets. Standardized libraries provide a generic way to access host-specific features such as graphics, threading, and networking. A major benefit of using byte code is porting. However, the overhead of interpretation means that interpreted programs almost always run more slowly than programs compiled to native executables would. Just-in-Time (JIT) compilers were introduced from an early stage that compiles byte codes to machine code during runtime.

JAVA VIRTUAL MACHINE A Java Virtual Machine (JVM) is an abstract computing machine. There

are

three

notions

of

the

JVM:

specification,

implementation, and instance. An instance of the JVM can execute any executable computer program compiled into Java byte code. It is the code execution component of the Java platform. The Java virtual machine is called "virtual" because it is an abstract computer defined by a specification. JVM specification omits implementation details that are not part of the Java virtual machine's specification. For example, the memory layout of run-time data areas, the garbage-collection algorithm used, and any internal optimization of the Java virtual machine instructions (their translation into machine code). The main reason for this omission is to not unnecessarily constrain the creativity of implementers. Any Java application can be run only inside a run-time instance of some concrete implementation of the abstract specification of the Java virtual machine.

INTRODUCTION TO DBMS A database is an organized collection of data. The data are typically organized to model aspects of reality in a way that supports processes requiring information. Data Base Management Systems (DBMSs) are specially designed software applications that interact with the user, other applications, and the database itself to capture and analyze data. A generalpurpose DBMS is a software system designed to allow the definition, creation, querying, update, and administration of databases. Wellknown DBMSs include MySQL, PostgreSQL, Microsoft SQL Server, Oracle, SAP and IBM DB2. A database is not generally portable across different DBMSs, but different DBMSs can interoperate by using standards such as SQL and ODBC or JDBC to allow a single application to work with more than one DBMS. Database management systems are often classified according to the database model that they support; the most popular database systems since the 1980s have all supported the relational model as represented by the SQL language.

HISTORY OF DBMS Following the technology progress in the areas of processors, computer memory, computer storage and computer networks, the sizes, capabilities, and performance of databases and their respective DBMSs have grown in orders of magnitude. The development of database technology can be divided into three eras based on data model or structure:navigational, SQL/relational, and post-relational. The two main early navigational data models were the hierarchical model, epitomized by IBM's IMS system, and the CODASYL model (network model), implemented in a number of products such as IDMS. The relational model, first proposed in 1970 by Edgar F. Codd, departed from this tradition by insisting that applications should search for data by content, rather than by following links. The relational model employs sets of ledger-style tables, each used for a different type of entity. Only in the mid-1980s did computing hardware become powerful enough to allow the wide deployment of relational systems (DBMSs plus applications). By the early 1990s, however, relational systems dominated in all large-scale data processing applications, and as of 2014 they remain dominant except in niche areas. The dominant database language, standardised SQL for the relational model, has influenced database languages for other data models. Object databases were developed in the 1980s to overcome the inconvenience of object-relational impedance mismatch, which led to the coining of the term "post-relational" and also the development of hybrid object-relational databases. The next generation of post-relational databases in the late 2000s became known as NoSQL databases, introducing fast key-value stores and document-oriented databases. A competing "next generation" known as NewSQL databases attempted new implementations that retained the relational/SQL model while

aiming to match the high performance of NoSQL compared to commercially available relational DBMSs.

LANGUAGES IN DBMS Database languages are special-purpose languages, which do one or more of the following: 1. 2. 3.

Data definition language – defines data types and the relationships among them Data manipulation language – performs tasks such as inserting, updating, or deleting data occurrences Query language – allows searching for information and computing derived information

ADVANTAGE OF DATABASE:

.

1.

Database reduces data redundancy.

2.

Database facilitates sharing of data.

3.

Database enforces standards.

4.

Database insures data security.

5.

Database provides integrity of data

INTRODUCTION TO MySQL MySQL is (as of March 2014) the world's second most widely used open-source relational database management system (RDBMS). It is named after co-founder Michael Widenius's daughter, My. The SQL phrase stands for Structured Query Language. The MySQL development project has made its source code available under the terms of the GNU General Public License, as well as under a variety of proprietary agreements. MySQL was owned and sponsored by a single for-profit firm, the Swedish company MySQL AB, now owned by Oracle Corporation. MySQL is a popular choice of database for use in web applications, and is a central component of the widely used LAMP open source web application software stack (and other 'AMP' stacks). LAMP is an acronym for "Linux, Apache, MySQL, Perl/PHP/Python." Freesoftware-open source projects that require a full-featured database management system often use MySQL. MySQL is a query language that provide several DDL, DML, DCL and TCL commands that helps us in feeding, manipulating , updating the information stored in tabular form. It allows us to store and retrieve inter-related information. Connectivity is a tool that enables us to retrieve, update, delete data from MySQL tables using java program.

HISTORY OF MySQL MySQL was created by a Swedish company, MySQL AB, founded by David Axmark, Allan Larsson and Michael "Monty" Widenius. The first version of MySQL appeared on 23 May 1995. It was initially created for personal usage from mSQL based on the low-level language ISAM, which the creators considered too slow and inflexible. They created a new SQLinterface, while keeping the same API as mSQL. By keeping the API consistent with the mSQL system, many developers were able to use MySQL instead of the (proprietarily licensed) mSQL antecedent.

FEATURES AND LIMITATIONS MySQL is offered under two different editions: the open source MySQL Community Server and the proprietary Enterprise Server. MySQL Enterprise Server is differentiated by a series of proprietary extensions which install as server plugins, but otherwise shares the version numbering system and is built from the same code base. Major features as available in MySQL 5.6: 1.

A broad subset of ANSI SQL 99, as well as extensions

2.

Cross-platform support

3.

Stored procedures, using a procedural language that closely adheres to SQL/PSM

4.

Triggers

5.

Cursors

6.

Updatable views

7.

Online DDL when using the InnoDB Storage Engine.

8.

Information schema

9.

Performance Schema

10. A set of SQL Mode options to control runtime behavior, including a strict mode to better adhere to SQL standards. 11. X/Open XA distributed transaction processing (DTP) support; two phase commit as part of this, using the default InnoDB storage engine 12. Transactions with savepoints when using the default InnoDB Storage Engine. The NDB Cluster Storage Engine also supports transactions. 13. ACID compliance when using InnoDB and NDB Cluster Storage Engines 14. SSL support 15. Query caching 16. Sub-SELECTs (i.e. nested SELECTs) 17. Built-in Replication support (i.e. Master-Master Replication & Master-Slave Replication) with one master per slave, many slaves per master. Multi-master replication is provided in MySQL Cluster, and multi-master support can be added to unclustered configurations using Galera Cluster. 18. Full-text indexing and searching] 19. Embedded database library 20. Unicode support 21. Partitioned tables with pruning of partitions in optimizer 22. Shared-nothing clustering through MySQL Cluster 23. Multiple storage engines, allowing one to choose the one that is most effective for each table in the application. 24. Native storage engines InnoDB, MyISAM, Merge, Memory (heap), Federated, Archive, CSV, Blackhole, NDB Cluster.

25. Commit grouping, gathering multiple transactions from multiple connections together to increase the number of commits per second. The developers release minor updates of the MySQL Server approximately every two months. The sources can be obtained from MySQL's website or from MySQL's Bazaar repository, both under the GPL license. Some of its limitations are: Like other SQL databases, MySQL does not currently comply with the full SQL standard for some of the implemented functionality, including foreign key references when using some storage engines other than the default of InnoDB.] Up until MySQL 5.7, triggers are limited to one per action / timing, meaning that at most one trigger can be defined to be executed after an INSERT operation, and one beforeINSERT on the same table. No triggers can be defined on views. MySQL, like most other transactional relational databases, is strongly limited by hard disk performance. This is especially true in terms of write latency. Given the recent appearance of very affordable consumer grade SATA interface solid-state drives that offer zero mechanical latency, a fivefold speedup over even an eight drive RAID array can be had for a smaller investment. MySQL database's inbuilt functions like UNIX_TIMESTAMP() will return 0 after 03:14:07 UTC on 19 January 2038.

INTRODUCTION: Introduction to NEW JFRAME:-

This is the welcoming page of our project. By entering the correct user name and passwordwe can proceed.

SCREENSHOT

CODING  Coding for ‘Login’ button: private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String user = txtuser.getText(); String pwd = new String(txtpwd.getPassword()); if (user.equals("") && pwd.equals(""))

{ NewJFrame1 obj = new NewJFrame1(); obj.setVisible(true); } else{ JOptionPane.showMessageDialog(this,"Invalid Username or Password"); txtuser.setText(""); txtpwd.setText("");

}

NEW JFRAME 1 INTRODUCTION: This page having 3 button ‘New Reservation ’button will deals with new booking of the rooms. ‘Search reservation’ button will show the save record. ‘Delete record ‘button will delete the record.

Pressing ‘EXIT’ button will close the application.

SCREENSHOT

CODING 1. Coding for ‘New Reservation ’ button:

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { NewJFrame2 obj = new NewJFrame2(); obj.setVisible(true);

// TODO add your handling code here:

}

2. Coding for ‘EXIT’ button System.exit(0);

3.Coding for ‘Search Record’ button

BIBLIOGRAPHY 1.

Moving ahead with information practices(Question Bank) by Sumita Arora

2. 3.

Informatics practices by Rita Sahoo class 11 Informatics practices by Rita Sahoo class 12

Limitation As said, perfection can only be dreamed of; our project also has some limitations, which stops it to reach the ultimate goal of perfection. Mentioned below, are some of those.  ‘Money’ matters not involved As in a general airways ticket booking system, user needs to pay for the tickets they have booked. But we have limited our scope to not include this factor.  ‘Multiple users’ not supported In our project we are using only one user’s login id to do all the operation. As in general, booking system offer multiple user option with different credentials to login, to view and do activities in their respective account. Single user credentials are maintained.

THE END

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF