Professional Documents
Culture Documents
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
INTRODUCTION:
Although human can't do a lot of work, but nature
compensated the entire shortcoming by ability to think and
to solve problem of different types, it is only because of this
ability that man is always looking far word to invent
machines of various type in order to make his life safe and
comfortable.
Computer is one of his significant creations. Compute are
not only extension of man ability to computer but also help
him in storing and retaining date. It can even take logical
problems, in face the computer have come in up such a big
way that their presents is felt in every field of life
education, business, research medicine air flight, railways
schedules and process control etc.
1. Development of Computer
Till seventeenth century efforts were made by many people
to develop calculating devices such as "NAPIER"S BONES"
and also mechanical calculators, the notable being Pascal's
and Leninist machines was that these ware quit show in their
operations and needed human intervention at every stage.
Moreover this device lacked reliability and accuracy. Human
efforts continued to design and develop devices which could
be fast reliable accurate and fully automatic. These efforts
resulted in development of modem.
Software Organization
All the software can be divided in to three main parts:
A). Application Software
They Are these software, which are developed according to.
The requirements of the user. Such as payroll printing
B). Utility Software
They are that software, which assist the user 10 which
developed application software. Such as editors and linkers.
C). System Software
System software are those software which are generally
supplied by the manufacture, they include language
operating system and other utility program. If allows the
user communicate with his system and are necessary are the
proper working of the computer.
Type of Processing Modes
The basic need for the package was to automate the whole procedure of
maintaining of Hotel details, earlier it was all done manually. By
developing this package lot of burden was removed from the department,
which was maintaining Hotels details. It improved the efficiency, reduced
the cost, and reduced the time need to do the work manually. With the help
of this package the past details of the Hotels can assessed and reports can
be generated on this details.
In brief we can say this system was required to automate the processing of
Hotels details, which was done manually before the development of the
package. Earlier all the information / data pertaining to the Hotels was
maintained manually or we can say it was on paper, hence it created a
problem for the organization/ school, how to manage it properly. With the
help of this system the organization/school is able to maintain the data
properly & accurately.
Why System was build?
Solution?
The solution for all this problem was to automate the system, automation
of the Hotels data maintenance would reduce the manpower, man days
will result in accurate data & above all increase the efficiency of the
concerned department.
FEASIBILITY STUDY
1. Technology
2. Finance
3. Time
4. Resources
Technology:
This system uses one of the simplest technologies in
use, for the development purpose it uses simple to use & easily available
technology. This system is based on windows like interface, which is very
easy to use. The package is been developed for the department, which is
not very familiar with software hence technology used, must be easily
understandable, because of which windows like interface has been chosen.
The technology used in this project is JAVA i.e. Java, M S Access & DAO
controls. Java helps in providing windows like environment. This system
uses menu-based approach in which every thing is given with the help of
menus.
Finance:
This dimension measures the system in respect to money or we can say
funds. This dimension checks whether its viable to spend the required
amount on the system or it will be a waste. There is no problem of finance
in this project because it uses simple technology, which is very easy to
install. This system is been developed for a standalone computer hence for
this system hardware requirement is very low. For this system to be
developed & installed properly we require very easily available
technologies & very basic hardware and all these requirements doesnt
cost much.
Time:
This particular dimension measures the systems worth in respect to time,
which is one of the most important factors to be considered. In this project
time factor is very important this system is scheduled to be installed in one
months time. This system is not very big & hence can be completed within
the time period it requires approx. 30 man-days of work. Time is a crucial
factor to be considered & we can say this system can be developed within
the required time period.
Resources:
This dimension takes into count the recourses required to develop the
system. For this particular system the resources required are quite nominal
which can be fulfilled, the resources required for this system are basic
hardware, an operating which is compatible with JAVA
With the help of all these dimension we can measure the feasibility of the
system & can decide whether to go forward with the project or not. By
take in count the dimension & their role in this particular system we can
say this system is feasible from all these dimension point of view & it is
viable to go through the project.
SCOPE OF THE SYSTEM
Scope of the system measures the scope of the project, which is going to
be developed. Answering following aspects can answer the project scope:
1. Context
2. Information objective
4. Interfaces
Context:
This project is related to management of Hotels data and the daily
activities of the authorities with the help of this package the user of this
package, which is the department i.e. administrative will be able to
maintain the data through the computer which will help in increasing he
efficiency, accuracy of the department as well as help in electronic inter
change of the data. Administrative department can use this package to
check for the details of the Hotels, whether they have paid their fees
amount or whether it is due to them, through which receipt no. it was paid
they can study the past records analyze the trends.
Information objective:
Basically this is related to the Inputs & Outputs to the system. In other
way we can say it is related to the inputs required by the system & outputs
generated by the system.
1. Inputs:
The input to the system is username & password for the system
security, their Personal details like Name, Address, Phone number,
admission details, roll no for data management, their fees details like
admission fees, tuition, computer fee & etc .
2. Outputs:
The output for this system is the maintained records, personal
details, fees details, fee status & report generated. The outputs of the
system are the records that were added in the database as well as the
reports that are generated with the help of he data in the database.
Function & Performance:
This dimension measures the scope of the system with the help of
functions & performance of the system. The basic function performed by
the system is of data management & report generation.
1. Security:
The first function of the system is to provide security from
unauthorized access to the data, which is provided with the help of
user name & password at the beginning of the package. This system
is been developed for a single user hence no rights are employed or
we can say administrator is only the user.
2. Data maintenance:
The most important function of the system is to maintain Hotel
Management, the data is maintained with the help of different menus
like adding, editing, viewing, searching & etc. There are different
kinds of data in the system like personal information, fees
information & cash details with the help of the front end data is
managed.
3. Report generation:
The last function of the system is to generate reports of the data like
Hotel details report, cash report, fee status report & etc. With the
help of this report the data can be electronically exchanged as well
as the reviewing of policies can be done with the help of reports.
1.Login interface:
This is the first interface in which user is required to
enter the username & password if the password is
correct then access is granted otherwise not. User has
got three attempts to enter the correct password; if
he is not able to enter the correct password in three
attempts then the system is exited.
2. Data maintenance:
The following are the main objectives of the project titled "Hotel
Management ":
The package provides the means of security, which makes sure that only
the concerned modules and screens are accessible to the particular
department after verifying one's validity and all other modules and screens
remains disable. The package is meant to maintain and provide complete
details about Hotels such as personal details, their fees details and cash
details.
The basic objective of the system is to manage the Hotels data efficiently
& accurately. It provides the user of the system with personal details of the
Hotels their name, address, phone & etc, it provides the user with fees as
well as cash details of the Hotels, how much they have paid, what is the
status of the fees i.e. how many have paid fees & how many are yet to pay
the fees. It also provides the user with details of cash like conveyance
details.
3. Sharing of data
User friendliness:
The package developed is easy to learn and understand. Even a new user
can use the system effectively, without any difficulty. The help and user
manuals are provided to solve the further queries of the users. With the
help of the user manuals the user can get the full details of the
functionality of the system.
User satisfaction:
The package is such that it stands up to the users
expectations. The system is successful in generating the reports of the task
status and details of the Hotel. The package is currently being successfully
run in the organization.
Response time:
The response time for all the operations is less. All the report generations
and the listing tasks are performed in significant time. The queries used
are so as to reduce the execution time of query processing.
Error handling:
Responses to users errors and undesired situation have been taken care of
to ensure that the system operates without halting. Proper error handling
codes are put with the codes.
Modularity:
The package has relatively independent and single
function parts that are put together to make complete system. Thus as a
result of this modular approach the system, in spite of being robust is not
cumbersome. It also contributes for the fast execution of the system.
Maintainability:
The system is able to decrease the time and effort for
program maintenance. The full details of the projects being undertaken,
and the task status corresponding to each Hotel is stored carefully and the
reports are generated as per the requirement.
Timeliness:
The package is able to operate well under normal peak
and recovery conditions.
OPERATING ENVIORNMENT
Java:
Java is event driven programming language, which is used to develop
front end for the application. This is called event driven because
every action of the user is an event & the application is driven with
the help of these events, which are programmed with the help of Java.
In Java there are forms, Controls, reports & many more things to
provide the user with overwhelming experience of user friendliness.
Java is a programming language for windows environment &
provides the user with windows like interface.
M.S. Access:
Access is a Relational Database Management System
(RDBMS) that you can use to store and manipulate large amounts of
information. Because its tools are user-friendly and because it is a
powerful development environment, Access is equally appropriate for
novices and MIS professionals.
Beginners can use Access to:
TOPICS COVERED
HARDWARE REQUIREMENT:
Software Requirements:
Software requirement are the basic software needs of the system or the
package to work properly & efficiently.
RDBMS : MS Access 97
Introduction:
Functional Description:
A processing narrative is provided for each
function, design constraints are stated and justified, performance
characteristics are stated and diagram is included.
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();
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("");
try {
Class.forName("java.sql.Driver");
Class.forName("com.mysql.jdbc.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/panpacifi
c","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();
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("");
try {
Class.forName("java.sql.Driver");
Class.forName("com.mysql.jdbc.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/panpacifi
c","root","");
Statement stmt =con.createStatement();
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("");
3. Bill can be generated as per entered bill number and bill number
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.