Mid Sem Project

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 18

Department of computer

Science and Technology Chandigarh Engineering College

Mid Term Report


On

“ONLINE BILLING SYSTEM”


Submitted in partial fulfillment of requirements
for the award of the degree

Bachelor of Technology
In
Computer Science and Engineering

To
Punjab Technical University, Jalandhar

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


Chandigarh Engineering College –Landran
Mohali, Punjab - 140307

1
Department of computer
Science and Technology Chandigarh Engineering College

INDEX
SNo. TOPICS PAGES

1. ABSTRACT 3

2. INTRODUCTION 4

3. WHAT IS ALREADY DONE ? 5

4. WHAT IS PLANNING ? 6

5. HARDWARE AND SOFTWARE REQUIREMENT 7

6. MYSQL 8

7. MYSQL CODING 9

8. SCREENSHOTS 10-15

9. TIMELINES 16

10. REFERENCES 17

2
Department of computer
Science and Technology Chandigarh Engineering College

ABSTRACT
I made a project named “BookShop” in Core Java. I made this project during my training from
Slicksoft, Patiala.The training was around 45 days and I completed this project in the last 2
weeks of my training.

I choosed the project to meet the needs of book shopkeepers and customers. In large stores, it is
very difficult for the shopkeepers to keep the record of all the books on registers or handbooks.
There must be an easy way for the shopkeepers which unload the stress of keeping the records.
The availability and reorder level of the books must be clear to them. Most customers undergo
difficulties on the availability of the books as reorder level is not managed properly at some of
the stores and the actual stock may not be correct.

My project will help them a lot by providing information to them about all the
availability and reorder level of the books. Shopkeepers can search for any book, not by its name
and author but also by searching for the publishers and subjects. Orders may be generated
automatically even for independent publishers. All the records of sale and purchase has been
handled so that this project may be extended to control the accounts.

The project is completely made by me but not in a team , it took around 14 days to
complete this project . This project is completely GUI based i.e Graphical User Interface. The
project includes the feature of login and logout . It includes a database named Mysql in which if
the data of the user is stored including the details of username and password. If the user account
is already registered in the database then he/she can directly login otherwise if the data is not
available in the database then they can sign up so that new user gets a chance to submit the bills
including the gas , water and electricity bills . If the wrong user tries to login then the system will
show the popup . This is an excellent feature in the project so that no hacker tries to play the
project made by so much hardwork.

It is made much attractive but I needed to add the payment gateway in it so that the user’s can
pay the bills and easily make the transactions themselves. This feature is included in the
advanced java so I need to learn that but it included all the features of core java including the
interfaces which make the project much attractive and appealing .

It included the features of the applets and the textfields , buttons, actionperformer and various
other features have been used in the project to make this project more applealing and working in
a good condition. Hence , this is the summary of my project which included every detail of from
the starting to the end and included each feature of the core java which make my skills more
3
Department of computer
Science and Technology Chandigarh Engineering College

advanced in a pratical way . I like to do various kinds of project and this is of one kind which I
made so that I can improve my technical skills quickly.

4
Department of computer
Science and Technology Chandigarh Engineering College

INTRODUCTION
The project named “Online billing system” is a unique platform on which the users can pay the
different bills using this platform itself. It includes different bills to submit such as the gas bill ,
electricity bill , water bill . The per unit rate of each of the water,electricity,gas have been
already stored in the database so as to calculate the bills automatically by the system . The user
need to just enter the starting reading and the ending reading of their meters so as to calculate the
bills quickly and efficiently . It is a user-friendly way so as the different users can use this
platform without facing any kind of difficulty.

To make this project more advanced I need to add the payment gateway in the project which is
only possible with the help of the concepts of advanced java .The concept of payment gateway
will make the project more advanced in such a way that many number of users can make a
numerous transactions without wasting their time in standing the queues in the banks . By just
sitting at their homes they can make the payments by just a few number of clicks.

It is an excellent way to make the world digitilized and make the world self-dependent.The
project made by me is a fabulous way to make the payments . The different bills such as the
gas,water and electricity bills need to paid by a just few number of clicks. It is the most easiest
way to submit the bills .

The transactions that are made are secure and the users can transfer the money from one account
to another without any risk of the hackers .It is made such as the hackers cant even dare to hack
the project as they will be caught quickly. This is the fully GUI based project i.e. graphical user
interface . The GUI is basically used to make the project more attractive and appealing such that
the more number of users gets attracted to this project and like to do payments this way.

It is built with the help of the concepts of core java which includes the applets and coding part
which need to be done with the advanced techniques . The project was built in a time of about 2
weeks i.e. 14 days . I made this project during my training from the well reputed government
institute CDAC,Mohali where I took training of 45 days . And in the last 2 weeks I completed
my project under the guidance of the institute.

Hence , this is the introduction of my project named “Online Billing System” .

5
Department of computer
Science and Technology Chandigarh Engineering College

WHAT IS ALREADY DONE ?

The Interface of the project is completed . Including the details such as to calculate the bills of
each user and storing it in the database .The information of each and every customer is stored up
in the database . The user need to just enter his name and password that he used while creating
his account .

There are different pages on which the various features have been put on . The per unit rate for
each of them as below such as gas , water and electricity is different . And each of their process
is stored in the database so that the calculations can be done easily and with full ease .

The user need to just enter the starting units and the ending units that are consumed by the house
of the user . He/she need to note down the units and after entering the units the bill is
automatically calculated by the system i.e. first of all the difference is calculated between the
ending and starting unit and after that the rate per unit of gas or water or electricity is multiplied
by the remaining units . The price that came out is the bill of the user either of gas or water or
electricity .Either of them can be paid by the user . Also of he need to pay another bill he can
also do that .This can be done by the user unlimited times.

This is the basic capability of the project . The interface that is built in this project is very
attractive and appealing as it includes many images as well the text so that the users might not
face any kind of difficulty as this project is user-friendly.

Hence, these are the things that are already completed in this project , therefore it is named as
online billing system.

6
Department of computer
Science and Technology Chandigarh Engineering College

WHAT IS PLANNING ?

I am planning to add the payment gateway in my project so that the users can pay their bills with
full satisfaction and security. Till now I have not added this feature of payment gateway. This
feature can only be added with the help of advanced java. But I used the feature of the core java
in it. Hence ,this is the most important feature I want to add in my project.

Through this feature the project will become more advanced and can be made online for the
users to use .

In such case its important to maintain the security of the payments .The gateway should be made
such that the users can pay the bills using the paytm , credit/debit cards. This feature should be
commonly used by the users so that their should be no threat to the users money.

Hence this is the planning which I had done to add more features to my project and make my
project more advanced.

7
Department of computer
Science and Technology Chandigarh Engineering College

HARDWARE & SOFTWARE REQUIREMENT

Hardware requirement of project

Section Requirements and Recommendations

Supported Operating Systems Microsoft Windows 7 32/64 bit


Microsoft Windows 8 32/64 bit
Microsoft Windows 10 32/64 bit

Display Minimum resolution 800 x 600 pixel


1024 x 768 pixel recommended

RAM 2 GB or more
4 GB or more recommended especially
for Microsoft Windows Vista, 7 and 8

CPU 1.5 GHz processor speed or higher

Software requirement of project

Section Requirements and Recommendations

Text Editor Notepad.

Java Environment Java jdk Installed.

Database MySQL.

8
Department of computer
Science and Technology Chandigarh Engineering College

MySQL
MySQL is a relational database management system and ships with no GUI tools to administer
MySQL databases or manage data contained within the databases. Users may use the
included command line tools, or use MySQL "front-ends", desktop software and web
applications that create and manage MySQL databases, build database structures, back up data,
inspect status, and work with data records.

It is named after co-founder Michael Widenius's daughter, MySQL stands for structured query
language, better known as "sequel".
It is used for:
 Querying a database by editing the SQL statement
 Querying a database with a program.
 Defining the data organization.
 Administrating data.
 Accessing multiple data server.
 Managing transaction.

These are used to retrieve the data based on specific criteria. This is the most important element
of sql. Some basic queries in sql:

● Creating a table:
Syntax: create table table_name(column_name1 datatype(size),column_name2
datatype(size),……,column_namedatatype(size));

● Inserting into a table:


Syntax: insert into table_name values(x,y,z);

● Updating a table:
Syntax: update table_name set column_name=’value’ where column_name=’value’;

● Deleting a column of table:


Syntax: delete from table_name where column_name=value;

● Selecting columns of table:


Syntax: select * from table_name;

9
Department of computer
Science and Technology Chandigarh Engineering College

MYSQL CODING
To connect Java application with the MySQL database, we need to follow 5 following steps.

In this example we are using MySql as the database. So we need to know following
informations for the mysql database:

1. Driver class: The driver class for the mysql database is com.mysql.jdbc.Driver.
2. Connection URL: The connection URL for the mysql database
is jdbc:mysql://localhost:3306/sonoo where jdbc is the API, mysql is the
database, localhost is the server name on which mysql is running, we may also use
IP address, 3306 is the port number and sonoo is the database name. We may use
any database, in such case, we need to replace the sonoo with our database name.
3. Username: The default username for the mysql database is root.
4. Password: It is the password given by the user at the time of installing the mysql
database. In this example, we are going to use root as the password.

Let's first create a table in the mysql database, but before creating table, we need to create
database first.

1. import java.sql.*;
2. class MysqlCon{
3. public static void main(String args[]){
4. try{
5. Class.forName("com.mysql.jdbc.Driver");
6. Connection con=DriverManager.getConnection(
7. "jdbc:mysql://localhost:3306/sonoo","root","root");
8. //here sonoo is database name, root is username and password
9. Statement stmt=con.createStatement();
10. ResultSet rs=stmt.executeQuery("select * from emp");
11. while(rs.next())
12. System.out.println(rs.getInt(1)+" "+rs.getString(2)+" "+rs.getString(3));
13. con.close();
14. }catch(Exception e){ System.out.println(e);}
15. }
16. }

10
Department of computer
Science and Technology Chandigarh Engineering College

SCREENSHOTS(CODING)

11
Department of computer
Science and Technology Chandigarh Engineering College

12
Department of computer
Science and Technology Chandigarh Engineering College

13
Department of computer
Science and Technology Chandigarh Engineering College

SCREENSHOTS(OUTPUT)

14
Department of computer
Science and Technology Chandigarh Engineering College
a

15
Department of computer
Science and Technology Chandigarh Engineering College

16
Department of computer
Science and Technology Chandigarh Engineering College

TIMELINES
I made this project during my training of 6 weeks in June from a well reputed institute named
SlickSoft,Patiala . It is an ISO Certified institute situated in Patiala which lead to the
development of my concepts in Advance java.

During my training in Slicksoft , I made this project named “BookShop” .The project was built
in the last 2 weeks of my training under the supervision of the institute . The project was made
by me myself but not in a team.

I made all my efforts to make this project and complete this project before the deadline.

All the features to add would take more than 2 weeks but I worked day and night to complete
this project before the deadline as I have urge to make different projects.

17
Department of computer
Science and Technology Chandigarh Engineering College

REFERENCES
Books:

1. JAVA :The complete reference 7th Edition


2. SQL SERVER -2000 IN 21 DAYS “Techmedia Publications”.

Websites:

1. www.google.com
2. www.w3schools.com
3. www.wiki.org

18

You might also like