Roshitha Java
Roshitha Java
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 service. 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 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 formation into their account every month. User scan then view their electricity
bill and pay before the month end.
TABLEOFCONTENTS
Abstract i
Table of contents ii
List of figures iii
1. Introduction
1.1 Preamble 1-2
1.2 Problem statement 2
1.3 Proposed solution 2
2. Analysis sand 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.1Entity- Relationship Diagram 4-6
3.1.2SchemaDiagram 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 of pseudo code of implementation 12-15
5. Testing
5.1 Testing process 16
5.2 Testing objectives 16
5.3 Levels of Testing
5.3.1Unit 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
7.source code 33-36
Conclusion
LIST OF FIGURES
INTRODUCTION
1.1 Preamble
We, the owners of our project, respect all customers and make them happy with
our service.
Themainaimofourprojectistosatisfycustomerbysavingtheirtimebypaymentproces
s, 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 areas follows:
❖ To keep the information of Customer.
❖ To keep the information of consuming unit energy of current month.
❖ To keep the information of consuming unit energy of previous month.
❖ To calculate the units consume delivery month regularly.
❖ To generate the bills adding penalty and rent.
❖ To save the time by implementing payment process online.
there are a number of flaws with the manual system. Because the entire bill must
be kept and maintained by hand, the process of keeping and maintaining the information
is extremely laborious and time-consuming for the consumer.
It’s a time-consuming and exhausting operation because employees must visit clients’
homes every month to deliver bills and collect money.
Figure 3.1.2 is a Schema diagram of Electricity Billing System which has six
tables i.e., login, customer, tax, rent, bill, and meter_info where each table contain
attributes some with primary key, foreign key. In the login table there are 6 attributes
"meter no”, "username”, “password”, "user”, "question”, "answer”. The customer
table has 7 attributes "name”, "meter _no"(primary key), "address”, "city”, "state”,
“email”, "phone”. The rent table has 3 attributes "cost _per _unit"(primary key),
"meter_ rent” ,"service _charge". The tax table has3 attributes "service _tax”
,"swacch _bharat_ cess”, "gst”.
The bill table has 5 attributes "meter_ no"(foreign key that references the
primary key of the customer table meter_ no),"month”, "units”, "total_ bill”,
"status”. The meter_ info table has 6 attributes "meter_ no" (foreign key that
references the primary key of the customer table
meter_no),"meter_location”,"meter_type”,"phase_code”,"bill_type”,"days".
3.1.2 Schematic
Diagram Login
meter_no Username password user question Answer
customer
rent
tax
bill
meter
__inf_info
meter_no meter_location meter_type phase_code bill_type Days
FIG3.1.2:Schema diagramofElectricityBillingSystem
3.NORMALIZATION
Let’s discuss about anomalies first then we will discuss normal forms with examples.
Anomalies in java dbms There are three types of anomalies that occur when the data base
is not normalized. These are–Insertion, update and deletion anomaly.
3.1.3 Firstnormalform(1NF)
As per the rule of first normal form,
✓ All rows must be unique (no duplicate rows).
✓ Each cell must only contain a single value (not a list).
✓ Each value should be non-divisible (can't be split down further).
Customer
.
▪ If we need to submit the particulars that has be entered click on to submit
option.
Customer Details:
▪ This program will allow the admin to view customer details.
▪ Ifweneedtoprinttheparticularsthathasbeenviewedclickontoprintoption.
Deposit Details:
▪ Thisprogramwillallowtheadmintoviewbilldetails.Ifweneedtosorttheparticular
sbasedonmeter_no and month.
▪ Ifweneedtosearchtheparticularsthathasbeenviewedclickontosearchoption.
▪ Ifweneedtoprinttheparticularsthathasbeenviewedclickontoprintoption.
Tax Details:
▪ 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 on to submit button.
▪ Ifweneedtocanceltheparticularsthathasbeenenteredclickontocanceloption.
Calculate Bill:
▪ 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
bills print error
Submit the details of tax that has been entered by clicking on to submit
button.
▪ If we need to cancel the particulars that has been entered click on to
cancel option.
Delete Bill:
▪ 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 on to delete
option.
▪ If we need to cancel the particulars that has been entered click on to back
option.
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 on to exit option.
View Info:
▪ This program will allow the customer to view his/her own details.
▪ Ifweneedtogobackfromtheparticularsthathasbeenviewedclickontoback
option.
Pay Bill:
▪ This program will allow the customer to view bill details and redirects to pay
▪ The bill where status will be updated.
▪ Ifweneedtocanceltheparticularsthathasbeenviewedclickontobackoption.
▪ If we need to pay the bill amount that has been viewed click on to pay option.
Bill Details:
▪ This program will allow the customer to view bill details.
▪ Ifweneedtoprinttheparticularsthathasbeenviewedclickontoprintoption.
Generate Bill:
▪ This program will allow the customer to generate bill when meter_ no and
month is selected.
▪ Generate the details by clicking on generate bill button.
About:
▪ This program will allow the customer to view details of the project in short.
▪ If we need to exit the particular that has been viewed click on to exit option.
NOTE: Utility
(notepad,browser,calculator),queryandlogoutisgiventobothcustomerandadminportals.
CHAPTER 5
TESTING
This chapter gives the outline of all the testing methods that are carried out
to get a bug free application.
Unit Testing
Unit testing focuses verification effort on the smallest unit of software
design the module. The software built, is a collection of individual modules.
In this kind of testing exact flow of control for each module was verified .With
detailed design consideration used as a guide, important control paths are
tested to uncover errors within the boundary of the module.
Table5.1: Negative test case for phone number insertion
Function Input Expected Error Resolved
Name Output
Input phone 98977 Phone Length of Consume()
number number is phone
invalid number is
not equal to
10
Input phone 98977agv Phone Alphabets
number number is are being
invalid taken as _
input for
phone
number
FIG6.1:List of tables
LoginTable:
6.2 SNAPSHOTS:
FIG6.12:Adminhomepage
FIG6.13:Newcustomer page
FIG6.14:MeterInfopage
FIG6.15:CustomerDetailspage
FIG6.16:TaxDetailspage
FIG6.17:CalculateBill page
FIG6.18:DeleteCustomerpage
FIG6.19:CustomerHomepage
FIG6.20:Updatecustomerdetailspage
FIG6.21:ViewCustomerDetailspage
FIG6.22:Querypage
FIG6.23:PayBillpage
FIG6.24:Paytmpage
FIG6.25:BillDetailspage
FIG6.26:GenerateBillpage
FIG6.27:DepositDetailspage
FIG6.28:Aboutpage
CONCLUSION
In conclusion, the electricity billing system plays a crucial role in utility
companies by accurately measuring and charging customers for their energy
consumption. It is a complex system that involves various components and
processes, ranging from meter reading to billing generation and customer
management. Advancements in technology have led to the development of modern
electricity billing systems that leverage smart meters, automated data processing,
online self-service portals, and advanced analytics. These systems offer numerous
benefits, including improved accuracy, efficiency, and customer satisfaction .By
integrating smart meters, utility companies can capture real- time consumption
data, eliminating the need for manual meter reading and ensuring accurate billing
based on actual usage. Automation of data processing reduces errors and streamlines
billing calculations, resulting in more accurate bills and efficient operations.