SlideShare a Scribd company logo
1 of 31
PROJECT
ON
BASED
ON
THIS PROJECT REPORT SUBMITTED FOR
COMPUTER PRACTICAL (_______ CODE)
FULFILMENT OF SUBJECT INFORMATICS PRACTICES
CLASS XII
UNDER THE GUIDANCE OF
SIR
MR. GURMEET SINGH
MADE BY
JASMEET SINGH
CONTENTS
• DEDICATION
• CERTIFICATE
• ACKNOWLEDGEMENT
• INTRODUCTION
• AIM
• TABLE STRUCTURE OF REPORT
• PROGRAM LISTING / CODING OF PROJECT WITH
OUTPUT
• MERITS
• DE-MERITS
• CONCLUSION
DEDICATION
THIS PROJECT IS DEDICATED
TO
OUR
RESPECTED
Sir
MR. Gurmeet singh
CERTIFICATE
THIS IS TO CERTIFY THAT Jasmeet of CLASS XII HAS
WORKED UNDER MY SUPERVISION ON PROJECT
HOTEL BILLING SYSTEM AND COMPLETED IT TO MY
FULL SATISFACTION.
I WISH HIS SUCCESS IN HIS LIFE.
DATE : / /
ACKNOWLEDGEMENT
WE ARE THANKFUL TO OUR COMPUTER TEACHER
MR. Gurmeet singh WHO HELPED AND GUIDED ME
WHILE MAKING THIS PROJECT. WE WOULD ALSO LIKE
TO THANK MY COMPUTER DEPARTMENT OF OUR
GURU ANGAD PUBLIC SCHOOL WHO HELPED AND
GAVE ME TIME FOR THE COMPLETION OF MY PROJECT.
NAME : JASMEET SINGH
CLASS : XII
INTRODUCTION
HOTEL BILLING SYSTEM
This project has been made for storing stock
and customer records like booking number,
customer number, name , phone number,
charges for room etc. It contains addition,
modification, deletion and searching of bills,
generating of bills as per requirement. Total
amount is being calculated automatically.
AIM
The main aim of my project is to create bills
as per entered booking number by the user. It
helps to store the records of customers in
particular table [Items] and these records can
be easily accessed by the person in fast
manner.
TABLE STRUCTURE OF REPORT
LOG IN
On Top :-
import javax.swing.JOptionPane;
Button(welcome) :-
String n = new String(jPasswordField1.getPassword());
String p = new String(jPasswordField2.getPassword());
if(n.equals("jasmeet")&&p.equals("nishant"))
new welcome().setVisible(true);
else
JOptionPane.showMessageDialog(null,"Incorrect password");
WELCOME
Button(addition) :-
new add().setVisible(true);
Button(modify) :-
new modify().setVisible(true);
Button(delete) :-
new delete().setVisible(true);
Button(generate bill)
new generate bill ().setVisible(true);
Button(delete) :-
System.exit(0);
ADD RECORDS
On Top:-
import java.sql.*;
import javax.swing.JOptionPane;
Button(save):-
try
{
Class.forName("java.sql.Driver");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/pan
pacific","root","");
int g,k=0;
String rt;
rt=jComboBox1.getSelectedItem().toString();
if(rt.equals("Single"))
k=2000;
else if(rt.equals("Double"))
k=2500;
else if(rt.equals("Delux"))
k=4000;
jTextField6.setText(""+k);
int a=Integer.parseInt(jTextField1.getText());
String b = jTextField2.getText();
Long c=Long.parseLong(jTextField3.getText());
int d=Integer.parseInt(jTextField4.getText());
int e=Integer.parseInt(jTextField5.getText());
g=k*e;
jTextField7.setText(""+g);
String query="insert into hotel
values("+a+",'"+b+"',"+c+","+d+","+e+","+k+","+g+",'"+rt+"');";
Statement stmt=con.createStatement();
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null,"Saved Successfully");
stmt.close();
con.close();
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,error);
}
Button(new):-
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextField7.setText("");
Button(back):-
new welcome().setVisible(true);
MODIFY RECORDS
On top:-
import java.sql.*;
import javax.swing.JOptionPane;
Button(search):-
try {
Class.forName("java.sql.Driver");
Class.forName("com.mysql.jdbc.Driver");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/pan
pacific","root","");
Statement stmt =con.createStatement();
String query = "SELECT * FROM hotel WHERE bn = " +
jTextField1.getText() + ";";
ResultSet rs = stmt.executeQuery(query);
int a,b,d,e,f,h;
String g,rot;
if (rs.next())
{
a =rs.getInt("bn");
g =rs.getString("name");
long c=rs.getLong("pn");
d=rs.getInt("rn");
e=rs.getInt("nod");
f=rs.getInt("cpd");
h=rs.getInt("ta");
rot=rs.getString("rt");
jTextField2.setText(g);
jTextField3.setText(""+c);
jTextField4.setText(""+d);
jTextField5.setText(""+e);
jTextField6.setText(""+f);
jTextField7.setText(""+h);
jComboBox1.setSelectedItem(rot);
}
else
{
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextField7.setText("");
JOptionPane.showMessageDialog(null, "No such record
found");
}
} //end of try
catch(Exception e) {
JOptionPane.showMessageDialog(null,e);
}
Button(calculate):-
int a,d=0,k;
a= Integer.parseInt(jTextField5.getText());
String r;
r=jComboBox1.getSelectedItem().toString();
if(r.equals("Single"))
d=2000;
else if(r.equals("Double"))
d=2500;
else if(r.equals("Delux"))
d=4000;
jTextField6.setText(""+d);
k=d*a;
jTextField7.setText(""+k);
Button(update):-
int ans;
String query;
try {
Class.forName("java.sql.Driver");
Class.forName("com.mysql.jdbc.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/panpacif
ic","root","");
Statement stmt =con.createStatement();
int g,k=0;
String r,rot;
r=jComboBox1.getSelectedItem().toString();
if(r.equals("Single"))
k=2000;
else if(r.equals("Double"))
k=2500;
else if(r.equals("Delux"))
k=4000;
jTextField6.setText(""+k);
int a=Integer.parseInt(jTextField1.getText());
String b = jTextField2.getText();
Long c=Long.parseLong(jTextField3.getText());
int d=Integer.parseInt(jTextField4.getText());
int e=Integer.parseInt(jTextField5.getText());
g=k*e;
jTextField7.setText(""+g);
{query = "update hotel set
bn="+a+",name='"+b+"',pn="+c+",rn="+d+",nod="+e+",cpd="+k+",t
a="+g+",rt='"+r+"';";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null, "done");
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextField7.setText("");
} //end of try
} catch(Exception e) {
JOptionPane.showMessageDialog(null,e);
}
Button(back):-
new welcome().setVisible(true);
DELETE RECORDS :-
On top:-
import java.sql.*;
import javax.swing.JOptionPane;
Button(search):-
try {
Class.forName("java.sql.Driver");
Class.forName("com.mysql.jdbc.Driver");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/pan
pacific","root","");
Statement stmt =con.createStatement();
String query = "SELECT * FROM hotel WHERE bn = " +
jTextField1.getText() + ";";
ResultSet rs = stmt.executeQuery(query);
int a,b,d,e,f,h;
String g,rot;
if (rs.next())
{
a =rs.getInt("bn");
g =rs.getString("name");
long c=rs.getLong("pn");
d=rs.getInt("rn");
e=rs.getInt("nod");
f=rs.getInt("cpd");
h=rs.getInt("ta");
rot=rs.getString("rt");
jTextField2.setText(g);
jTextField3.setText(""+c);
jTextField4.setText(""+d);
jTextField5.setText(""+e);
jTextField6.setText(""+f);
jTextField7.setText(""+h);
jComboBox1.setSelectedItem(rot);
}
else
{
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextField7.setText("");
JOptionPane.showMessageDialog(null, "No such record
found");
}
} //end of try
catch(Exception e) {
JOptionPane.showMessageDialog(null,e);
}
Button(delete) :-
int ans;
String query;
try {
Class.forName("java.sql.Driver");
Class.forName("com.mysql.jdbc.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/panpacif
ic","root","");
Statement stmt =con.createStatement();
{query = "DELETE FROM hotel WHERE bn =
"+jTextField1.getText()+ ";";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null, "Record successfully
deleted");
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextField7.setText("");
} //end of try
} catch(Exception e) {
JOptionPane.showMessageDialog(null,e);
}
Button(back) :-
new welcome().setVisible(true);
GENERATE BILL :-
Button(search):-
try {
Class.forName("java.sql.Driver");
Class.forName("com.mysql.jdbc.Driver");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/pan
pacific","root","");
Statement stmt =con.createStatement();
String query = "SELECT * FROM hotel WHERE bn = " +
jTextField1.getText() + ";";
ResultSet rs = stmt.executeQuery(query);
int a,b,d,e,f,h;
String g,rot;
if (rs.next())
{
a =rs.getInt("bn");
g =rs.getString("name");
long c=rs.getLong("pn");
d=rs.getInt("rn");
e=rs.getInt("nod");
f=rs.getInt("cpd");
h=rs.getInt("ta");
rot=rs.getString("rt");
jTextField2.setText(g);
jTextField3.setText(""+c);
jTextField4.setText(""+d);
jTextField5.setText(""+e);
jTextField6.setText(""+f);
jTextField7.setText(""+h);
jComboBox1.setSelectedItem(rot);
}
else
{
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextField7.setText("");
JOptionPane.showMessageDialog(null, "No such record
found");
}
} //end of try
catch(Exception e) {
JOptionPane.showMessageDialog(null,e);
}
Button(back):-
new welcome().setVisible(true);
MERITS
1. Records can be stored in fast manner.
2. Any record can be easily accessed.
3. Bill can be generated as per entered bill number and
bill number is settled as primary key in the table so
that no duplicate entry can be maintained against bill
number.
DE-MERITS
1. Due to failure of electricity, no work can be
processed.
2. No multiple bills can be generated.
3. Once records are being deleted can’t be rollback
again to recover them.
Conclusion
“Hotel Bill Generating System” has been
prepared to reduce manual work and with the
help of this project total amount to be paid is
being calculated automatically in fast manner.

More Related Content

What's hot

Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12
Self-employed
 
Physics Investigatory Project Class 12
Physics Investigatory Project Class 12Physics Investigatory Project Class 12
Physics Investigatory Project Class 12
Self-employed
 

What's hot (20)

Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12
 
Library Management Python, MySQL
Library Management Python, MySQLLibrary Management Python, MySQL
Library Management Python, MySQL
 
12th CBSE Computer Science Project
12th CBSE Computer Science Project12th CBSE Computer Science Project
12th CBSE Computer Science Project
 
CANTEEN MANAGEMENT SYSTEM IN PYTHON
CANTEEN MANAGEMENT SYSTEM IN PYTHONCANTEEN MANAGEMENT SYSTEM IN PYTHON
CANTEEN MANAGEMENT SYSTEM IN PYTHON
 
Library Management Project (computer science) class 12
Library Management Project (computer science) class 12Library Management Project (computer science) class 12
Library Management Project (computer science) class 12
 
COMPUTER SCIENCE CLASS 12 PRACTICAL FILE
COMPUTER SCIENCE CLASS 12 PRACTICAL FILECOMPUTER SCIENCE CLASS 12 PRACTICAL FILE
COMPUTER SCIENCE CLASS 12 PRACTICAL FILE
 
Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)
 
computer science project class 12th
computer science project class 12thcomputer science project class 12th
computer science project class 12th
 
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THBANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
 
Physics Investigatory Project Class 12
Physics Investigatory Project Class 12Physics Investigatory Project Class 12
Physics Investigatory Project Class 12
 
Informatics Practice Practical for 12th class
Informatics Practice Practical for 12th classInformatics Practice Practical for 12th class
Informatics Practice Practical for 12th class
 
IP Final project 12th
IP Final project 12thIP Final project 12th
IP Final project 12th
 
ASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECTASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECT
 
English Project work.pdf
English Project work.pdfEnglish Project work.pdf
English Project work.pdf
 
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdfCOMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
 
class 12th computer science project Employee Management System In Python
 class 12th computer science project Employee Management System In Python class 12th computer science project Employee Management System In Python
class 12th computer science project Employee Management System In Python
 
Computer Science Practical File class XII
Computer Science Practical File class XIIComputer Science Practical File class XII
Computer Science Practical File class XII
 
Computer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingComputer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market Billing
 
Project front page, index, certificate, and acknowledgement
Project front page, index, certificate, and acknowledgementProject front page, index, certificate, and acknowledgement
Project front page, index, certificate, and acknowledgement
 
cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project
 

Viewers also liked

Library management system
Library management systemLibrary management system
Library management system
Raaghav Bhatia
 
Tic tac toe c++ project presentation
Tic tac toe c++ project presentationTic tac toe c++ project presentation
Tic tac toe c++ project presentation
Saad Symbian
 
Journal, Ledger, Trial Balance and Balance Sheet
Journal, Ledger, Trial Balance and Balance SheetJournal, Ledger, Trial Balance and Balance Sheet
Journal, Ledger, Trial Balance and Balance Sheet
Sadat Faruque
 

Viewers also liked (20)

Informatics Practices Project on Tour and travels
 Informatics Practices Project on Tour and travels  Informatics Practices Project on Tour and travels
Informatics Practices Project on Tour and travels
 
College management-system
College management-systemCollege management-system
College management-system
 
Ip project visual mobile
Ip project visual mobileIp project visual mobile
Ip project visual mobile
 
Modul Kelas Programming : Java MySQL
Modul Kelas Programming : Java MySQLModul Kelas Programming : Java MySQL
Modul Kelas Programming : Java MySQL
 
Best Way to Write SQL in Java
Best Way to Write SQL in JavaBest Way to Write SQL in Java
Best Way to Write SQL in Java
 
Ip project work test your knowledge
Ip project work test your knowledgeIp project work test your knowledge
Ip project work test your knowledge
 
informatics practices practical file
informatics practices practical fileinformatics practices practical file
informatics practices practical file
 
PPT FOR ONLINE HOTEL MANAGEMENT
PPT FOR ONLINE HOTEL MANAGEMENTPPT FOR ONLINE HOTEL MANAGEMENT
PPT FOR ONLINE HOTEL MANAGEMENT
 
Brexit slides_-_pdf
Brexit slides_-_pdfBrexit slides_-_pdf
Brexit slides_-_pdf
 
Consumer protection act
Consumer protection actConsumer protection act
Consumer protection act
 
Brexit - The UK and the European Union
Brexit - The UK and the European UnionBrexit - The UK and the European Union
Brexit - The UK and the European Union
 
Brexit
BrexitBrexit
Brexit
 
Brexit
Brexit   Brexit
Brexit
 
Library management system
Library management systemLibrary management system
Library management system
 
Investigatory Project
Investigatory ProjectInvestigatory Project
Investigatory Project
 
Brexit presentation
Brexit presentationBrexit presentation
Brexit presentation
 
Tic tac toe c++ project presentation
Tic tac toe c++ project presentationTic tac toe c++ project presentation
Tic tac toe c++ project presentation
 
Journal, Ledger, Trial Balance and Balance Sheet
Journal, Ledger, Trial Balance and Balance SheetJournal, Ledger, Trial Balance and Balance Sheet
Journal, Ledger, Trial Balance and Balance Sheet
 
Accountancy Class 12 Project
Accountancy Class 12 ProjectAccountancy Class 12 Project
Accountancy Class 12 Project
 
Library Management System PPT
Library Management System PPTLibrary Management System PPT
Library Management System PPT
 

Similar to Ip project

All I know about rsc.io/c2go
All I know about rsc.io/c2goAll I know about rsc.io/c2go
All I know about rsc.io/c2go
Moriyoshi Koizumi
 
Working effectively with legacy code
Working effectively with legacy codeWorking effectively with legacy code
Working effectively with legacy code
ShriKant Vashishtha
 
Mixing functional and object oriented approaches to programming in C#
Mixing functional and object oriented approaches to programming in C#Mixing functional and object oriented approaches to programming in C#
Mixing functional and object oriented approaches to programming in C#
Mark Needham
 
Assignment no39
Assignment no39Assignment no39
Assignment no39
Jay Patel
 
81818088 isc-class-xii-computer-science-project-java-programs
81818088 isc-class-xii-computer-science-project-java-programs81818088 isc-class-xii-computer-science-project-java-programs
81818088 isc-class-xii-computer-science-project-java-programs
Abhishek Jena
 
I dont know what is wrong with this roulette program I cant seem.pdf
I dont know what is wrong with this roulette program I cant seem.pdfI dont know what is wrong with this roulette program I cant seem.pdf
I dont know what is wrong with this roulette program I cant seem.pdf
archanaemporium
 
Using the following code Install Packages pip install .pdf
Using the following code Install Packages   pip install .pdfUsing the following code Install Packages   pip install .pdf
Using the following code Install Packages pip install .pdf
picscamshoppe
 

Similar to Ip project (20)

All I know about rsc.io/c2go
All I know about rsc.io/c2goAll I know about rsc.io/c2go
All I know about rsc.io/c2go
 
Working effectively with legacy code
Working effectively with legacy codeWorking effectively with legacy code
Working effectively with legacy code
 
code for quiz in my sql
code for quiz  in my sql code for quiz  in my sql
code for quiz in my sql
 
DSC program.pdf
DSC program.pdfDSC program.pdf
DSC program.pdf
 
Cpds lab
Cpds labCpds lab
Cpds lab
 
Vcs16
Vcs16Vcs16
Vcs16
 
Mixing functional and object oriented approaches to programming in C#
Mixing functional and object oriented approaches to programming in C#Mixing functional and object oriented approaches to programming in C#
Mixing functional and object oriented approaches to programming in C#
 
Mixing Functional and Object Oriented Approaches to Programming in C#
Mixing Functional and Object Oriented Approaches to Programming in C#Mixing Functional and Object Oriented Approaches to Programming in C#
Mixing Functional and Object Oriented Approaches to Programming in C#
 
Assignment no39
Assignment no39Assignment no39
Assignment no39
 
Assignment 2 lab 3 python gpa calculator
Assignment 2 lab 3  python gpa calculatorAssignment 2 lab 3  python gpa calculator
Assignment 2 lab 3 python gpa calculator
 
Serverless Functions and Vue.js
Serverless Functions and Vue.jsServerless Functions and Vue.js
Serverless Functions and Vue.js
 
Pnno
PnnoPnno
Pnno
 
81818088 isc-class-xii-computer-science-project-java-programs
81818088 isc-class-xii-computer-science-project-java-programs81818088 isc-class-xii-computer-science-project-java-programs
81818088 isc-class-xii-computer-science-project-java-programs
 
sodapdf-converted into ppt presentation(1).pdf
sodapdf-converted into ppt presentation(1).pdfsodapdf-converted into ppt presentation(1).pdf
sodapdf-converted into ppt presentation(1).pdf
 
Building Maintainable Applications in Apex
Building Maintainable Applications in ApexBuilding Maintainable Applications in Apex
Building Maintainable Applications in Apex
 
C programs
C programsC programs
C programs
 
Code optimization
Code optimization Code optimization
Code optimization
 
Code optimization
Code optimization Code optimization
Code optimization
 
I dont know what is wrong with this roulette program I cant seem.pdf
I dont know what is wrong with this roulette program I cant seem.pdfI dont know what is wrong with this roulette program I cant seem.pdf
I dont know what is wrong with this roulette program I cant seem.pdf
 
Using the following code Install Packages pip install .pdf
Using the following code Install Packages   pip install .pdfUsing the following code Install Packages   pip install .pdf
Using the following code Install Packages pip install .pdf
 

Ip project