B.SC Cs Batchno 25
B.SC Cs Batchno 25
SATHYABAMA
INSTITUTE OF SCIENCE AND TECHNOLOGY
JEPPIAAR NAGAR, RAJIV GANDHI SALAI,
CHENNAI – 600119, TAMILNADU
APRIL 2021
1
SATHYABAMA
INSTITUTE OF SCIENCE AND
TECHNOLOGY (DEEMED TO BE
UNIVERSITY)
Accredited with Grade “A” by NAAC
(Established under Section 3 of UGC Act, 1956)
JEPPIAAR NAGAR, RAJIV GANDHI SALAI, CHENNAI– 600119
www.sathyabama.ac.in
This is to certify that this Project Report is the bonafide work of INBHA.K
(Reg. No. 38290026) and KARTHIKA.J (Reg. No. 38290033) who carried
out the project entitled “ELECTRICITY BILLING SYSTEM “under my
supervision from November 2020 to April 2021.
Internal Guide
Ms. J.REFONAA M.E., Ph.D.,
2
DECLARATION
DATE:
PLACE: CHENNAI SIGNATURE OF THE
CANDIDATE
3
ACKNOWLEDGEMENT
4
ABSTRACT
5
TABLE OF CONTENTS
ABSTRACT
LIST OF FIGURES
Introduction 10
1.1Preamble 10
1. 11
1.2Problem statement
1.3Proposed solution 11
6
21
Implementation 21
4. 4.1 Implementation of operations
21
4.2 Implementation of sql statement
22
4.3 Algorithm of Implementation
22
4.3.1 Algorithm of admin 26
4.3.2 Algorithm of
27
customer
4.4 DFD (Data Flow
Diagram)
30
Testing 30
5.1 Testing process 30
5.
5.2 Testing objectives 30
5.3 Level of testing 30
5.3.1 Unit testing 32
5.3.2 Integration testing 33
5.3.3 System testing
Conclusion 35
6.1 Conclusion 35
6. 6.2 Future Analysis 35
6.3 References 35
Appendix 37
Source code
7
LIST OF FIGURES
8
LIST OF TABLES
9
Chapter 1
INTRODUCTION
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 amanual 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.
10
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.
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 consumed every month regularly.
To generate the bills adding penalty and rent.
To save the time by implementing payment process online.
Fig 1.1.1: Block diagram showing the proposed online Electricity billing
system.
11
This project system excludes the need of maintaining paper electricity bill
as all the electricity bill records are managed electronically.
Administrator doesn’t have to keep a manual track of the users. The
system automatically calculates fine.
Users don’t have to keep a manual track of the users. The system
automatically calculates fine.
There is no need of delivery boy for delivery bills to user’s place.
Thus, it saves human efforts and resources.
12
CHAPTER 2
ANALYSIS AND SYSTEM REQUIREMENT
13
Feasibility considerations
Three key considerations are involved in the feasibility study. They are as
follows:-
Economic Feasibility:
Economic analysis is the most frequently used method for evaluating the
effectiveness of the candidate system.
We analyse the candidate system (computerized system) is feasible as than the
manual system because it saves the money, time and manpower. It also feasible
according to cost benefits analysis
Technical Feasibility:
Technical feasibility centers around the technology used. It means the candidate
system is technically feasible i.e. it don’t have any technical fault and work
properly in the given environment. Our system is technically feasible; it is
providing us required output.
Behavioral Feasibility:
Behavioral feasibility is the analysis of behavior of the candidate system. In this
we analyse that the candidate system is working properly or not. If working
than it communicating proper with the environment or not. All this matters are
analysed and a good candidate system is prepared. Due to the change of system
what is the change in behaviour of the users, this factors are also analysed.
14
Mouse
15
CHAPTER 3
SYSTEM DESIGN AND MODELLING
Bill calculation
if
Per unit cost Bill payment
Of electricity
View consumer
Feedback
Logout
1
3.2 Preliminary Design
System design is an abstract representation of a system component and
their relationship and which describe the aggregated functionally and
performance of the system. It is also the plan or blueprint for how to obtain
answer to the question being asked. The design specifies various type of
approach.
Database design is one of the most important factors to keep in mind if
you are concerned with application performance management. By designing
your database to be efficient in each call it makes and to effectively create rows
of data in the database, you can reduce the amount of CPU needed by the server
to complete your request, thereby ensuring a faster application.
1
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 vale. 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 the entities in diagram.
Cardinality specifies how many instances of an entity relate to one
instance of another entity. Ordinality is also closely linked to cardinality
1
Fig 3.1.1: ER diagram
Login username
Login id password
User_id
Login
Username Usermobile
user
Has
Useremail
manage
Bill cus
Cus add id
Bill type
Cus id
customer bills
Cus
name
Conc date
Cus mobile connection
Conctyp
Cus email
Conc id
Has
Unit id
units
19
Unit typ
3.3 Normalization
2
CHAPTER 4
IMPLIMENTATION
Adding customer:Here admin can add new 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.
Updating customer: Here customer can update their details by using
meter no of the customer.
Delete customer: Here admin can delete details based on meter number.
Insert statement:
Update statement:
2
• The UPDATE syntax would be as follows: UPDATE table_name SET
column_name =value, column_name=value... [WHERE condition].
Delete statement:
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.
2
4.3 Algorithm of implementation
Explanation of Algorithm:
✓ Start system
✓ Enter login name and password
✓ On clicking the login button
✓ Connect to database
✓ Query database to know whether user credentials are correct
✓ If not, deny access and return login page with an error message
✓ If correct, check if credentials for administrator
✓ If yes, allow login
✓ Set admin session, re-direct administrator to admin login page
✓ If no, allow login set user session
✓ Re-direct user to user home page
Login:
This program will allow the admin to enter the username
and password.
If the entered credentials are correct, then the login will be
successful otherwise need to be signup.
If admin forgets password, it can be retrieved by giving
username and answer for security question.
After successful login the admin will be redirected to admin portal
page where he/she can do following activities.
NewCustomer:
▪ This program will allow the admin to enter the customer details
and automatically generates unique meter number.
▪ If customer name, address, city, state, email and phone number
is entered, insert the values into customer
2
else print
error while
next=true
Submit the details of customer that has been entered by clicking onto next
button.
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.
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.
2
▪ If we need to cancel the particulars that has been entered click onto 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 onto
exit option.
Start
Admin login
if
Main page
View consumer
Bill
Logout
Stop
2
4.3.2 Algorithm or of Customer:
Login:
▪ This program will allow the customer to enter the username and
password. If the entered credentials are correct, then the login will be
successful otherwise need to be signup with the meter_no which is given
by admin.
▪ If customer forgets password, it can be retrieved by giving username and
answer for security question. After successful login the customer will be
redirected to customer portal page where he/she can do following
activities.
UpdateInfo1:
▪ This program will allow the customer to update the customer details.
If customer address, city, state, email and phone number is updated,
update the values into
customer else print error
update the details of customer that has been updated by clicking onto
update button.
▪ If we need to cancel the particulars that has been updated, click onto
back 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.
2
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.
GenerateBill:
▪ This program will allow the customer to generate bill when meterno 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.
Start
Consumer
If
Main page
View bill
Consummation calculation
Bill payment
2
4.4 DFD(Data Flow DiLaoggroaumt )
They are the versatile diagramming tools used for structured system analysis.
They are specifically used for process modelling which involves graphically
representing the function or process, which captures, manipulate, store, and
distribute data between a system and its environment and between components
within a system.
Fig 4.4.1 zero level DFD
Bill management
Customer management
Connection management
Login management
2
Fig 4.4.2 First level DFD
ELECTRICITY GENERATE
MANAGEME ELECTRIC
NT REPORT
CUSTOMER GENERATE CUSTOMER
MANAGEME REPORT
NT
CONNECTIO GENERATE
N ELECTRICITY CONNECTION
MANAGEME REPORT
BILLING
SYSTEM
GENERATE BILL
BILL MANAGEMENT REPORT
GENERATE
SYSTEM SYSTEM USER
USER REPORT
MANAGEME
2
Fig 4.4.3 Second level DFD
Manage paid
record
3
CHAPTER 5
TESTING
This chapter gives the outline of all the testing methods that are carried
out to get a bug free application.
3
Table 5.1: Negative test case for phone number insertion
Function Input Expected Error Resolved
name error
Input phone 98977 Phone is Length of Consume()
number invalid phone number
is not equal to
10
Input phone 9877avg Phone Alphabets are
number number is being taken as
invalid input for
phone
number
3
Table 5.5: Negative test case for customer name insertion
3
5.3.3 System testing
Here the entire application is tested. The reference document for this process is
the requirement document, and the goal is to see IF the application meets its
requirements. Each module and component of ethereal was thoroughly tested to
remove bugs througha system testing strategy. Test cases were generated for all
possible input sequences and the output was verified for its correctness.
Table 5.8: Test cases for the project
6.2 REFERENCES
[1]. Arimoro, T. A., Oyetunji, A. K., &Odugboye, O. E. (2019). Analysis of
Electricity Billing System in Corporate Buildings in Lagos, Nigeria. Studies,
1(6), 10-20.
[2]. Panthala, S., Islam, N., & Habib, S. A. (2015). Automated industrial load
measurement system.
[3]. Adegboyega, A., Gabriel, A. A., Ademola, A. J., Victor, A. I., &Nigeri, K.
(2013). Design and Implementation of an Enhanced Power Billing System for
Electricity Consumers in Nigeria. African Journal of Computing & ICT, 6(1).
3
[4]. Antoniou, G., Batten, L., Narayan, S., &Parampalli, U. (2009). A privacy
preserving e-payment scheme. In Intelligent Distributed Computing III (pp.
197-202). Springer, Berlin, Heidelberg
[5]. Rahul K. Sai (2016) Advanced Centralized Electricity Billing System
Using (IOT). International Journal of Advanced Research in Computer Science
and Software Engineering icrosoft Developer Network (MSDN)
[6]. Li, S., Wang, G., Zhou, J., & Chen, K. (2009). Fair and secure mobile
billing systems. Wireless personal communications, 51(1), 81-93.
[7]. Al-Ani, M. S., &Noory, R. (2012). Billing system design based on internet
environment. Editorial Preface, 3(9).
[8]. Barreto, P. S., Amvame-Nze, G., Silva, C.V., Oliveira, J. S. S., de Carvalho,
H. P., Abdalla, H., ... &Puttini, R. (2005, April). A study of billing schemes in
an experimental next generation network. In International Conference on
Networking (pp. 66-74). Springer, Berlin, Heidelberg
[9]. Bo, Y., Dongsu, L., &Yumin, W. (2002).An anonymity-revoking e-
payment system with a smart card. International Journal on Digital Libraries,
3(4), 291-296
3
Appendix
Source code:
New page:
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Electricity Bill</title>
</head>
<body>
<div class="container">
<h1 id="nav"> Electricity Billing System </h1>
<div id="bd" >
</form>
</form>
<img id="oimg"
src="https://previews.123rf.com/images/pikepicture/pikepicture1904/pikepictur
e190400140/120731051-long-queue-in-food-store-vector-banner-concept-
young-and-old-people-waiting-in-queue-line-men-women-.jpg">
<footer>
<a href="zsd">Help</a>
<a href="ds">Support</a>
3
</footer>
</div>
</div>
</body>
</html>
New page:
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css "
integrity="sha384-
ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2
MZw1T" crossorigin="anonymous">
</head>
<body>
3
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="psw"
required>
<br>
<div class="clearfix">
<br>
<h1>Added Sucessfully!</h1>
</body>
</html>
3
4