1 - Project File (By Sai Supriya)
1 - Project File (By Sai Supriya)
Submitted by
Name of Student
Under the guidance of
Name of Teacher
Project Guide
CERTIFICATE
Certified that the project work entitled “ELECTRICITY BILLING SYSTEM”
carried out by Sudent Name,
bonafied students of The Oxford College of Engineering, Bengaluru in partial
fulfilment for the award of the Degree of Bachelor of Engineering in Computer
Science and Engineering of the Visvesvaraya Technological University, Belagavi
during the year 2020-2021. It is certified that all corrections/suggestions indicated for
Internal Assessment have been incorporated in the report deposited in the departmental
library. The project report has been approved as it satisfies the academic requirements
in respect of project work prescribed for the said Degree.
External Viva
Name of the Examiners Signature with Date
1.
2.
(Approved by AICTE, New Delhi, accredited by NBA, NAAC, New Delhi &
Affiliated to VTU, Belagavi)
Department Vision
Department Mission
DECLARATION
We, the students of fifth semester B.E, in the Department of Computer Science
and Engineering, The Oxford College of Engineering, Bengaluru declare that the
Project work entitled “ELECTRICITY BILLING SYSTEM” has been carried out by
us and submitted in partial fulfilment of the course requirements for the award of degree
in Bachelor of Engineering in Computer Science and Engineering discipline of
Visvesvaraya Technological University, Belagavi during the academic year 2020-
2021. Further, the matter embodied in the dissertation has not been submitted
previously by anybody for the award of any degree or diploma to any other university.
Student Name
Place: Bengaluru
Date:
ABSTRACT
Electricity consumers are often faced with the problem of inaccuracy and
delay in monthly billing due to some drawbacks. Thus, it is essential to have an
efficient system for such purposes via electronic platform with consideration to
proximity. The proposed system automates the conventional process of paying
electricity bill by visiting the Electricity Board which is tiresome and time
consuming. It is also designed to automate the electricity bill calculation and
payment for user convenience. The system is developed with Java swings as the
base programming language which can be used to develop websites, web
applications and web services. The Microsoft Structured Query Language (SQL)
server is also used for creating back-end database. The system would be having
two logins: the administrative and user login. The administrator can view the
user's account details and can add the customer's information of consuming units
of energy of the current month in their account. The Admin must feed the system
with the electricity usage data into respective user’s account. The system then
calculates the electricity bill for every user and updates the information into their
account every month. Users can then view their electricity bill and pay before the
month end.
ACKNOWLEDGEMENT
Name of Student
ii
TABLE OF CONTENTS
Abstract i
Acknowledgment ii
Table of contents iii
List of figures iv
1. Introduction
1.1 Preamble 1-2
1.2 Problem statement 2
1.3 Proposed solution 2
2. Analysis and System Requirements
2.1 Existing and Proposed System 3
2.2 Software & Hardware Requirements 3
3. System Design and Modelling
3.1 Preliminary Design
3.1.1 Entity-Relationship Diagram 4-6
3.1.2 Schema Diagram 7-8
3.2 Normalization
3.2.1 First normal form(1NF) 9
3.2.2 Second normal form(2NF) 9
3.2.3 Third normal form(3NF) 9
4. Implementation
4.1 Implementation of operations 10
4.2 Implementation of SQL statements 10-11
4.3 Algorithm or pseudocode of implementation 12-15
5. Testing
5.1 Testing process 16
5.2 Testing objectives 16
5.3 Levels of Testing
5.3.1 Unit Testing 16-18
5.3.2 Integration testing 18-19
5.3.3 System testing 19-20
6. Discussion and Snapshots
6.1 Tables 21-23
6.2 Snapshots 23-33
Conclusion 34
Bibliography 35
iii
LIST OF FIGURES
FIG 3.1.1: Schema diagram of Electricity Billing System 6
FIG 3.1.2: ER diagram of Electricity Billing System 8
FIG 6.1: Snapshot of List of tables 21
FIG 6.2: Snapshot login table description 21
FIG 6.3: Snapshot of customer table description 22
FIG 6.4 Snapshot of tax table description 22
FIG 6.5: Snapshot of rent table description 22
FIG 6.6: Snapshot of bill table description 22
FIG 6.7: Snapshot of meter_info table description 23
FIG 6.8: Snapshot of Splash page 23
FIG 6.9: Snapshot of Login page 24
FIG 6.10: Snapshot of Signup page 24
FIG 6.11: Snapshot of ForgotPassword page 25
FIG 6.12: Snapshot of Admin home page 25
FIG 6.13: Snapshot of New Customer page 26
FIG 6.14: Snapshot of Meter Info page 26
FIG 6.15: Snapshot of Customer Details page 27
FIG 6.16: Snapshot of Tax Details page 27
FIG 6.17: Snapshot of Calculate Bill page 28
FIG 6.18: Snapshot of Delete Customer page 28
FIG 6.19: Snapshot of Customer Home page 29
FIG 6.20: Snapshot of Update Customer Details page 29
FIG 6.21: Snapshot of View Customer Details page 30
FIG 6.22: Snapshot of View Customer Details page 30
FIG 6.23: Snapshot of PayBill page 31
FIG 6.24: Snapshot of Paytm page 31
FIG 6.25: Snapshot of Bill Details page 32
FIG 6.26: Snapshot of Generate Bill page 32
FIG 6.27: Snapshot of Deposit Bill page 33
FIG 6.28: Snapshot of About page 33
LIST OF TABLES
Table 5.1: Negative test case for phone number insertion 17
Table 5.2: Positive test case for phone number insertion 17
Table 5.3: Negative test case for email insertion 17
Table 5.4: Positive test case for email insertion 17
Table 5.5: Negative test case for customer name insertion 18
Table 5.6: Positive test case for customer name insertion 18
Table 5.7: Test case on basis of generation of bill 18
Table 5.8: Test case on basis of Deposit Details 19
Table 5.9: Test cases for the project iv 19-20
Chapter 1
INTRODUCTION
Electricity Billing System is a software-based application.
i. This project aims at serving the department of electricity by computerizing the
billing system.
ii. It mainly focuses on the calculation of units consumed during the specified time
and the money to be charged by the electricity offices.
iii. This computerized system will make the overall billing system easy, accessible,
comfortable, and effective for consumers.
To design the billing system more service oriented and simple, the following features
have been implemented in the project. The application has high speed of performance
with accuracy and efficiency.
The software provides facility of data sharing, it does not require any staff as in the
conventional system. Once it is installed on the system only the meter readings are to
be given by the admin where customer can view all details, it has the provision of
security restriction.
The electricity billing software calculates the units consumed by the customer and
makes bills, it requires small storage for installation and functioning. There is provision
for debugging if any problem is encountered in the system.
The system excludes the need of maintaining paper electricity bill, administrator
does not have to keep a manual track of the users, users can pay the amount without
visiting the office. Thus, it saves human efforts and resources.
1.1 Preamble
We, the owners of our project, respect all customers and make them happy with
our service.
The main aim of our project is to satisfy customer by saving their time by payment
process, maintaining records, and allowing the customer to view his/her records and
permitting them to update their details.
The firm handles all the work manually, which is very tedious and mismatched.
The objectives of our project are as follows:
To keep the information of Customer.
Page | 1
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 2
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
CHAPTER 2
ANALYSIS AND SYSTEM REQUIREMENT
Page | 3
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
CHAPTER 3
SYSTEM DESIGN AND MODELLING
Page | 4
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Actions, which are represented by diamond shapes, show how two entities
share information in the database.
In some cases, entities can be self-linked. For example, employees can
supervise other employees.
Attributes, which are represented by ovals. A key attribute is the unique,
distinguishing characteristic of the entity.
A multivalued attribute can have more than one value. For example, an
employee entity can have multiple skill values.
A derived attribute is based on another attribute. For example, an employee's
monthly salary is based on the employee's annual salary.
Connecting lines, solid lines that connect attributes to show the relationships
of entities in the diagram.
Cardinality specifies how many instances of an entity relate to one instance of
another entity. Ordinality is also closely linked to cardinality.
Figure 3.1.1 describes the ER diagram of Electricity Billing System. It has 5
entities namely login, customer, tax, bill, and meter info. The entities have attributes
which are primary and foreign and attributes. The primary attributes are underlined.
Page | 5
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
service_charge
cost_per_unit
3.1.1 ER Diagram meter_rent
1
rent
gst
1 service_tax
tax
swacch_bharat_cess
total_bill
N
pays bill
month
meter_no status
units
meter_no
meter_no
name meter_location
city N N
state phase_code
bill_type
email
has
meter_type
N
phone
login
meter_no username
question password
user
answer
Page | 6
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 7
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
customer
Name meter_no Address City state Email phone
rent
cost_per_unit meter_rent service_rent
tax
service_tax swacch_bharat_cess gst
bill
meter_no Month units total_bill Status
meter_info
meter_no meter_location meter_type phase_code bill_type Days
3.2 Normalization
Normalization is a process of organizing the data in database to avoid data
redundancy, insertion anomaly, update anomaly & deletion anomaly.
Page | 8
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Let’s discuss about anomalies first then we will discuss normal forms with
examples. Anomalies in DBMS There are three types of anomalies that occur when
the database is not normalized. These are –Insertion, update and deletion anomaly.
Customer
Page | 9
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
CHAPTER 4
IMPLIMENTATION
4.1 Implementation of operations
Adding Customer: Here admin can add new customer to the customer list
who started using electricity bill system.
Searching Deposit Details: Here admin can search according to meter
number and month to view deposit details.
Viewing Details: Here admin and user can view customer details and about
details.
Adding Tax: Here admin can add tax details.
Updating Customer: Here customer can update his/her details by using
meter_no of the customer.
Delete Customer: Here admin can delete details based on meter number.
Page | 10
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Delete statement:
The DELETE statement is used to delete existing records in a table.
The DELETE syntax would be as follows: DELETE FROM
table_nameWHERE condition.
The following SQL statement delete's a record in the “customer” table: delete
from customer where meter_no=12345.
Create statement:
The CREATE TABLE Statement is used to create tables to store data.
Integrity Constraints like primary key, unique key, foreign key can be defined
for the columns while creating the table.
The syntax would be as follows: CREATETABLE table_name
(column1datatype, column2datatype, column3 datatype, columnN datatype,
PRIMARY KEY (one or more columns)).
The following SQL statement creates a table “customer” table: create
table customer (name varchar (30), meter_no varchar (20) primary
key, address varchar (50), city varchar (20), state varchar (30), email
varchar (30), phone varchar (30));
The following SQL statement creates a table “login” table: create
table login (meter_no varchar (30), username varchar (30), password
varchar (30), user varchar (30), question varchar (40), answer varchar
(30));
The following SQL statement creates a table “tax” table: create table
tax (cost_per_unit int (20) primary key, meter_rent int (20),
service_charge int (20), service_tax int (20), swacch_bharat_cess int
(20), gst int (20));
The following SQL statement creates a table “bill” table: create table
bill (meter_no varchar (20), foreign key(meter_no) references
customer(meter_no) on delete cascade, month varchar (20), units int
(20), total_bill int (20), status varchar (40));
The following SQL statement creates a table “meter_info” table:
create table meter_info (meter_no varchar (30), foreign key(meter_no)
references customer(meter_no) on delete cascade, meter_location
varchar (10), meter_type varchar (15), phase_code int (5), bill_type
varchar (10), days int (5));
Page | 11
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 12
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
If we need to submit the particulars that has been entered click onto submit
option.
CustomerDetails:
This program will allow the admin to view customer details.
If we need to print the particulars that has been viewed click onto print option.
DepositDetails:
This program will allow the admin to view bill details. If we need to sort the
particulars based on meter_no and month.
If we need to search the particulars that has been viewed click onto search
option.
If we need to print the particulars that has been viewed click onto print option.
TaxDetails:
This program will allow the admin to add tax details.
insert the values into tax
else print error
Submit the details of tax that has been entered by clicking onto submit button.
If we need to cancel the particulars that has been entered click onto cancel
option.
CalculateBill:
This program will allow the admin to calculate total_bill when units consumed
are inserted where meter_no and month is selected.
insert the values into bill
else print error
Submit the details of tax that has been entered by clicking onto submit button.
If we need to cancel the particulars that has been entered click onto cancel
option.
DeleteBill:
This Program will allow the admin to delete the customer info when meter_no
is selected.
If we need to delete the particulars that has been saved click onto delete
option.
If we need to cancel the particulars that has been entered click onto back
option.
Page | 13
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
About:
This program will allow the admin to view details of the project in short.
If we need to exit the particulars that has been viewed click onto exit option.
ViewInfo:
This program will allow the customer to view his/her own details.
If we need to go back from the particulars that has been viewed click onto
back option.
PayBill:
This program will allow the customer to view bill details and redirects to pay
the bill where status will be updated.
If we need to cancel the particulars that has been viewed click onto back
option.
If we need to pay the bill amount that has been viewed click onto pay option.
BillDetails:
This program will allow the customer to view bill details.
If we need to print the particulars that has been viewed click onto print option.
Page | 14
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
GenerateBill:
This program will allow the customer to generate bill when meter_no and
month is selected.
Generate the details by clicking on generatebill button.
About:
This program will allow the customer to view details of the project in short.
If we need to exit the particulars that has been viewed click onto exit option.
Page | 15
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
CHAPTER 5
TESTING
This chapter gives the outline of all the testing methods that are carried out to
get a bug free application.
Page | 16
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 17
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 18
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 19
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 20
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
CHAPTER 6
DISCUSSION AND SNAPSHOTS
6.1 TABLES:
The given below table is a snapshot of backend view of the localhost and the
structures of the tables present in Electricity Billing System. The tables present are
login, customer, tax, bill, meter_info.
The login is used to store the details of login’s admin and customer with
meter_no.
The customer is used to store details of customer.
The tax is used to store tax values.
The rent is used to store rent values.
The bill is used to store details of bill of meter.
The meter_info is used to store information of meter placed.
Page | 21
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Customer Table:
Page | 22
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Meter_Info Table:
6.2 SNAPSHOTS:
Page | 23
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 24
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 25
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 26
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 27
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 28
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 29
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 30
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 31
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 32
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
Page | 33
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
CONCLUSION
After all the hard work is done for electricity bill management system is here.
It is a software which helps the user to work with the billing cycles, paying bills,
managing different DETAILS under which are working etc.
This software reduces the amount of manual data entry and gives greater
efficiency. The User Interface of it is very friendly and can be easily used by anyone.
It also decreases the amount of time taken to write details and other modules.
Page | 34
Department of Computer Science and Engineering, TOCE
ELECTRICITY BILLING SYSTEM
BIBLIOGRAPHY
REFERENCES
Book Reference
Database Management Systems 3rd Edition by Raghu Ramakrishnan
(TEXTBOOK).
Websites
http://www.github.com
https://www.youtube.com/watch?v=iWitVuW2D1o&t=4s
www.stackoverflow.com
www.google.com
http://www.javatpoint.com/
Page | 35
Department of Computer Science and Engineering, TOCE