DBMS Mini PRG
DBMS Mini PRG
on
Prof. N. G.Khandare
2024-2025
The Shetkari Shikshan Mandal,
Department of Computer Engineering
Bhivarabai Sawant College of Engineering & Research ,
Pune-41
Date:22-10-24
CERTIFICATE
of class T.E Computer Engineering Sem-V; I have successfully completed their project stage one
work on “ENERGY BILLING SYSTEM’’ at Bhivarabai Sawant College of Engineering & Research,
Pune in the partial fulfillment of the Post. Graduate Degree course in T.E at the Department of
Computer Engineering, in the academic Year 2024-2025 Semester – V as prescribed by the
Savitribai Phule Pune University.
Prof.N.G.Khandare Dr.A.D.Gujar
Guide Head of the Department
(Department of Computer Engineering) (Department of Computer Engineering)
Acknowledgements
I would like to express my sincere gratitude to all those who have contributed to the successful
completion of this mini project on "Energy Billing System."Firstly, I would like to thank my project
guide, Prof. N.G.Khandare, professor at TSSM’S Bhivarabai Sawant College of Engineering and
Research Narhe Pune, for her invaluable guidance, encouragement, and support throughout this
project. Her expertise and insights have greatly contributed to the successful completion of this work.I
extend my gratitude to the Head of the Department, Computer Engineering, Dr A.D.Gujar sir for
providing the necessary resources and facilities for the project and for offering valuable suggestions
during the progress of the work. My appreciation also goes to the Principal of TSSM’S Bhivarabai
Sawant College of Engineering and Research for providing an inspiring and conducive learning
environment.I would also like to acknowledge the management of TSSM’S Bhivarabai Sawant
College of Engineering and Research for their constant support in all academic endeavors.Special
thanks are due to the lab attendants for their assistance in providing the equipment and ensuring the
smooth functioning of the laboratory during the project period.I would also like to thank my friends
for their encouragement and valuable suggestions, which helped me to improve my project. Finally, I
am deeply grateful to my family for their continuous support, understanding, and motivation
throughout this journey. I am greatly grateful for this opportunity and knowledge they have provided.
Acknowledgment
List figures
List of tables
Abbreviations
Abstract
Chapter 6:-Testing
Chapter 7:-Conclusion
1
1.1 Motivation
In today's fast-paced world, the manual process of energy billing has numerous challenges, including
errors, delays, and inefficiencies. With increasing energy consumption, there is a growing need for a
more reliable, automated, and user-friendly system that can manage billing processes effectively. The
motivation behind this project is to develop a solution that addresses these challenges by leveraging
database management techniques and software automation to improve the accuracy, reliability, and
efficiency of energy billing.
1.2 Goal
The primary goal of this project is to design and implement an "Energy Billing System" that
automates the process of generating energy bills based on customer consumption data. The system
aims to provide a secure and scalable platform for managing user data, generating bills, and allowing
for easy access to billing information.
1.3 ProblemStatement
The existing manual systems for energy billing face several issues, such as data inconsistencies, lack
of security, and slow processing. This project seeks to replace the traditional manual methods with an
automated system that can handle data securely, generate bills accurately, and reduce human errors.
The "Energy Billing System" will also allow real-time updates, modifications, and data retrieval.
2
1.4 Scope of Work
The scope of this project encompasses the development of a web-based application that uses Java for
the front end and MySQL for the back-end database. It will enable functionalities such as user
management, billing, and report generation. The system is designed to be easily adaptable to different
organizations with minor modifications, ensuring flexibility in various real-world scenarios. Future
enhancements could include incorporating mobile app support and advanced data analytics for energy
usage forecasting.
1.5 Outcomes
The successful implementation of this project will result in an automated billing system that reduces
manual workload, minimizes billing errors, and improves the overall efficiency of energy
management. Additionally, it will provide a centralized database for storing and managing user data
securely, enabling faster data access and reporting.
1.6 Conclusion
The "Energy Billing System" is expected to transform the conventional manual billing process into a
streamlined, automated solution. By implementing this system, organizations can benefit from
increased accuracy, improved data management, and enhanced user satisfaction.
3
Chapter 2
Mini Project Design
This chapter is organized as follows. Section 2.1 introduces data modeling concepts, explaining the
importance of representing data structures and relationships for the successful design of the mini
project. Section 2..1.1 presents the Entity-Relationship (ER) Diagram, detailing the process of
identifying entities, attributes, and relationships within the system. This section includes examples and
diagrams to illustrate the ER model relevant to the project. Section 2.1.2 discusses the relational
model, explaining how the entities and relationships defined in the ER diagram translate into tables,
keys, and constraints in a relational database. It includes examples of table structures and
normalization processes to ensure data integrity.
4
2.1 Data Modeling
ER diagram
Relational Modeling
5
Chapter 3
Requirement Analysis
This chapter is organized as follows. Section 3.1 discusses the functional requirements of the system,
detailing the specific capabilities and features that the software must provide. This section emphasizes
the importance of identifying and documenting these requirements to ensure a clear understanding
among stakeholders. Section 3.2 presents the non-functional requirements, which encompass the
performance, usability, security, and other quality attributes that the system must meet.In software
engineering, a functional requirement defines a function of a software system or its component. A
function is described as a set of inputs, the behavior, and outputs. Functional requirements may be
calculations, technical details, data manipulation and processing and other specific functionality that
show how a use case is to be fulfilled. They are supported by non-functional requirements, which
impose constraints on the design or implementation (such as performance requirements, security, or
reliability).As defined in requirements engineering, functional requirements specify particular
behaviors of a system. This should be contrasted with non-functional requirements which specify
overall characteristics such as cost and reliability
6
3.1 Functional Requirements-
7
Software Requirements
Front End:-
- jdk-8u181-windows-x64(JAVA)
- NetBeans 8.2 IDE
Back End:-
-MySQL 8.0.12
Database Connectivity:-
-MySQL connector.jar
-jdbc.odbc connector
8
Chapter 4
Graphical User Interface
Front Page
9
Administrator Login
Customer Login
10
Help
11
Chapter 5
Source Code
1) Login_Form Code :
package
Billing_System;;
import
java.awt.Toolkit;
import
java.awt.event.WindowEvent;
import java.sql.*;
import javax.swing.*;
import
java.util.logging.Level;
import
java.util.logging.Logger;
PreparedStatemen
t pst;ResultSet rs;
String sql;
String uname,passwd;
SQLException {
initComponents();
this.setLocationRelativeTo(null);
12
} private void loginbtnActionPerformed(java.awt.event.ActionEvent
evt) {try {
con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/project","root","nick@123");
pst =
con.prepareStatement(sql);
pst.setString(1,
usertxt.getText());rs =
pst.executeQuery();
while(rs.next())
uname=rs.getString("Uname");
passwd =
rs.getString("Password");
JOptionPane.showMessageDialog(null,"Login Successful");
close();
MainForm mf = new
MainForm();
mf.setVisible(true);
else
13
Please Try again");
usertxt.setText
("");
passtxt.setText
("");
usertxt.setText
("");
passtxt.setText
("");
evt) {close();
Register R=new
Register();
R.setVisible(true);
evt) {this.hide();
Frontpage F;
F = new
Frontpage();
F.setVisible(true)
; }
14
Chapter 6
Testing
Test case Expected actualoutput
S.No Explanation Remarks
Name output
15
Consumer
Enter Correct Consumer isnot
number
8 Authentication consumer Fail
present
should
number
present
Cannot leave
10 Field Field should Field is not Pass
any field empty
not empty Empty
Cannot leave
11 Field Field should Field is Fail
any field empty
empty Empty
Bill Details
12 Print Print the Bill Bill Details Pass
should be
Details are printed
printed
Mobile no.
13 Mobile No Mobile No. Mobile no. Isof Pass
Should be of
Is 10 Digit 10 digit
10 digit
Mobile no.
Mobile No. Mobile no. Is
14 Mobile No Should be Fail
Is 10 Digit not 10 digit
not of 10
digit
16
Chapter 7
Conclusion
We have been given the problem of Billing of Electricity Consumers. Earlier the Billing
process is manually calculated by using the database small tolls and small scale packages at
their desktop. In our project “ENERGY BILLING SYSTEM” we have automated the entire
billing system is Online and centralized with all offices which they have in the central power
distribution company limited.In Consumer Management, I have tracked all the information of
the consumer and have given the privileged modifications, changes.As a result of this
automation, manual workload is reduced and data retrieval becomes easy. This project can be
helpful for centralization of information.
17