Project Sample XII
Project Sample XII
COMPUTER SCIENCE
PROJECT
ON
ELECTRICITYBILLI
NGS
SUBMITTED BY:
SUBHASHREE
KHUNTIA
XII-M4
UNDER THE GUIDANCE
OF: MRS. SASMITA
PATTNAIK
1|Page
Firstly, I would like to thank our computer teacher(
Sasmita Pattanayak ),because he always supported
and guided us while doing this project. She is very well
cleared all the doubts I had regarding this project.Also ,
I would like to especially thank my parents and friends
who helped me a lot to complete this project within the
limited time.
2|Page
This is to certify that the project entitled “
ELECTRICITY BILLINGS ” submitted by Subhashree
Khuntia , student of class XII has successfully
completed computer science project on Electricity
Billings laid down in the regulation of CBSE in Jupiter
Public School.
This project work is done towards the partial
fulfillment of the requirement for the award of class
XII under CBSE board.
Signature of Principal
Signature of Student
3|Page
TABLE OF CONTENT
3. Problem statement 7
4. Proposed solution 8
5. Architecture of system 9
Management system
9. Functional and non-functional of electricity 16-18
bill management system
10. Er diagram AND Flowchart 19-20
11. Source code 21-25
12. Output 26
13. Conclusion 27
14. Bibliography 28
4|Page
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.
5|Page
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:
6|Page
7|Page
PROPOSED SOLUTION
8|Page
ARCHITECTURE OF SYSTEM
9|Page
ELECTRICITY BILL MANAGEMENT SYSTEM
EntityUser:
Every User detail needs to be stored in a proper manner with very needed
attributes. All the other tasks can be performed only if the user is authenticated.
After the admin has registered and is verified by the admin then the user can
perform all the tasks on it.
Username:
User name is taken from the user and fed into this it is properly validated so that
no mistake happens.
Number:
The phone number is taken here to keep the member updated and the
confirmation of the eventis also managed through this method.
Email:
Email is taken to make member aware of new offers new events and for
future references, it is also relevant.
Address:
Address of the user is required at the time the user is registering itself on the
system.
10 | P a g e
Password:
The password is required to login into the system and the password must contain
a special character, a numeric character, and an upper-case letter. Password must
contain at least six characters. One must keep the password difficult so thatno
onecan get into your account andmakeany changes.
Entity Customer:
The customer is the entity that requires it to get updated about their monthly
usage of electricity and to pay their monthly bill in online mode if they want to. If
any customer hasany query, then there isalso an option to put yourquery and it
will be answered by your service provider.
Some of the features of the customer entity are explained below: Ward
number:
Address:
The address is required because the meter is put into the home and the service
provider has to go to the customer’s home every month to read the units used by
the customer. After knowing the units used, only then it can be updated on this
system. So, the address of the customer is required.
Entity payment:
This module is presenting both the interfaces but the options thatare provided are
different. In the customer’s interface, there is an option to pay the electricity bill
using their debit card or by net banking. The customer can also pay the bill by
cash by going to the particular branch.
Customers can also see their payment status after paying their bills. In the
employee’s module, there is no option to pay the bill, they can only see the
monthly salary status after deducting their leaves. One thing that employees can
do is that they can cut the connection to a customer that has not paid their bill in
the given time period.
11 | P a g e
Admin cannot see any details they can only help the user in registration by
verifying the user.
12 | P a g e
MODULES OF ELECTRICITY BILL MANAGEMENT SYSTEM
Our system has only two main interfaces. One is for the admin and the other one is for
the user, the here user can be a customer or an employee.
Along with these,we have other interfaces which can be discussed as below:
Login:
After registration, one can log in to the system as the end-user of the system on the
behalf of the user. The user will get only those privileges that are given to the user for
which one has registered. For example, if a user has registered as a customer, then the
user only has the privileges to view the data andcannotmake any changes to the data
thatis shown.
User:
The user can be anyone either a customer or an employee. If the user is an employee,
then he can make changes to the data like adding units in the bill, used by a customer. If
the useris a customer, then he can only see the details of his account, not of any other
account. The customer can see the monthly usage of electricity and can pay the bill but
cannot make any changes to the data.
Admin:
This module can only have one account and this account has all the privileges which a
user account might not have. First of all, the admin account is created, and thenif the
adminverifies aregistering user, then his account will be created otherwise not.
Queries:
In this module, the customer can ask any query he has and his question with his details
will be sent to the person who is managing queries and then he or she can reply to the
query of a customer.Admin can also see any query made by the customer and can also
reply to the customer.
Department:
In this section, all the employee’s details can be seen by the privileged user. All the
employees are divided into different sections according to their job profile.
13 | P a g e
Employees working in multiple sections might get repeated into the different
departments. Only admin has the privilege to make any change into an employee’s
account.
Meters:
In this, new customers can be added, monthly bills can be sent to the customer’s
account, any particular customer can be found using a unique meter idand the
remaining balance of acustomercanbe checked.
OtherFeatures:
There are other various features that are provided in this attendance management
system like updating results and checking results by the students. Paying fees either by
online modeor by offline mode.
Now this prison management system is designed in such a way that it takes fewer
resources to work properly.
It has its own sort of minimum requirements that we need to take care of:
• The system needs a minimum of 2 GB of ram to run all the features smoothly and
suddenly.
• It needs a minimum of 1.3 GHz processor to run smoothly as less than that may create
problems.
• The system needs to be operated by some authorized person as wrong hands can make
it irresponsible.
• Rest is all upto the user’s usage will care for hardware.
• For security Antivirus is recommended.
14 | P a g e
USE CASE DIAGRAM OF ELECTRICITY BILL
MANAGEMENT SYSTEM
In this use case, as you can see, we have our system as a box and the
users who use our system are of the kind of outside the box but related
to the system. There are two kinds of users one is admin and the other is
user type.
Users:
There are two users that are present here in this system. One is admin
but the other is a user. This user has all the privileges but it cannot
register itself on this system as the admin needs to verify the registering
user. After the admin verifies the user only then he is eligible to use the
system and after that, it has all the privileges. Attributes given to the
user are:
Adding user:
Admin can add a new user and can save it. The details of the user can be
seen only by the valid users.
Adding staff:
In this attribute or column, the user can add the details about the staff
members. Adding customers: this entity is about the details of the
customers who are using the service from the company and all other
details of them.
Admin panel:
There can be only one account of admin. Admin can add the users. When
a user tries to register on the prison management system then the
request goes to admin and if the admin verifies only the user can register
itself on it.
• He can log in through his id and password. The password is made very
secure so that no person can guess and make it difficult for hackers to
crack.
• He has access to a profile of his own and he can search for detail of other
15 | P a g e
Users and can see the detail him.
• This admin is responsible for creating and uploading the Menu card to
every User in the Interface.Admin can also delete the cards according to
the requirement.
• He can add a user to that account and give access to handling the prison
on their own.
The functional requirement of the electricity bill management system is that it does
what it is meant for.A functional requirement describes what a software system should
do, while non-functional requirements place constraints on how the system will do so.
Functional requirements specify a functionthata system orsystem componentmust be
able to perform.
It can be documented in various ways. The most common ones are written descriptions
in documents and use cases.
this system is doing that properly in the user entity. After fetching the data of the
customer, the bill can be made and sent to the customer.
Non-functional necessities square measure the other demand than practical necessities.
These square measures the necessities that specify criteria which will be wouldn’t to
choose the operation of a system, instead of specific behaviors. Non-functional
necessities square measure within the style of “system shall be “, associate degree
overall property of the system as a fullorof a specific facet and not a particular
operation. The system’s over all properties remarkably mark the distinction between
16 | P a g e
Whether or not the event project has succeeded or unsuccessful.
Execution qualities, like security and usefulness, that square measure evident at the run
time.
Evolution qualities, like liabilities, maintainability, flexibility, and quantifiable, that
square measure embodied within the static structure of the code.
Here we need to take care of few more things before heading towards the system. The
most important feature of the electricity billmanagementsystem application world is
the application’s ease of usage .application will easy to use if made while keeping in
mind that the user need not think twice about searching any feature.
Everything should be made distinctive by using the color combination such that
everything needed most frequenty high lighted with focus colors. We can use simple
layouts like the card and grid layout etc. By varying color and other UI combinations,
many good intuitive interfaces can be made. Which ultimately makes the interface easy
to use for a long time.
Unlike ancient style wherever the goal is to form the thing or application physically
enticing, the goal of interface style is to form the user’sinteraction expertise as
straightforward and intuitive as attainable – what’s typically known as user-centered
style. Where smart graphic/industrial style is daring and eye-catching, smart interface
style is commonly delicate and invisible.
17 | P a g e
Simple and Harmonic way making UIisvery intuitive and needs to follow.
The typography is taken care very strictly as the need of the system.
Color combo of lite and dark is good way emphasize and done well in this system.
The feedback form is a very good way taking feedback of forms and improving the
system.
Simplified forms:–
The formis made simple to fill with the clean user interface
18 | P a g e
ER DIAGRAM
19 | P a g e
FLOWCHART
20 | P a g e
SOURCE CODE
**importmysql.connectorassql,random,datetimeasdt
import matplotlib.pyplot as plt
conn=sql.connect(host='localhost',user='root',passwd='mc.la.ren',data base='EBS')
if conn.is_connected():
print("successfullyconnected") c='YES' or "yes" or 'Yes'
V='YES'or"yes"or'Yes'c1=conn.cursor()
whilec=='YES'or"yes"or'Yes':print('************************WELCOMETO
ELECTRICITYBILLINGSYSTEM************************')
print(dt.datetime.now())
print('1.NEW USER')
print('2.EXISTING USER')
print('3.EXIT')
choice1=int(input('ENTERYOURCHOICE:')) if choice1==1:
21 | P a g e
print('************************WELCOMETOELECTRICITYBILLINGSYSTEM
************************') print("1.ACCOUNT SETTINGS") print("2.TRANSACTION")
print("3.VIEW CUSTOMER DETAILS")
print("4.GRAPHICALREPRESENTATION")
print('5.EXIT')
choice2=int(input('ENTER YOUR CHOICE')) if choice2==1:
print('1.NEW CUSTOMER') print('2.DELETE EXISTING ACCOUNT')
choice12=int(input('ENTER YOUR CHOICE:')) if choice12==1:
accountno=random.randrange(1000000,9999999,10) print("your accountno
is",accountno) boxid=input("enter your mete box ID:") bankname=input('Enter your
BANK NAME :') bankbranch=input('Enter your BANK BRANCH :') name=input('Enter
your name :')address=input('Enter your address :') areacode=int(input('Enter your area
PIN CODE :')) phoneno=int(input('Enter your PHONE NUMBER :')) email=input('Enter
your email :')
info2="insertintoAddNewCustomervalues({},'{}','{}','{}','{}',{},{},'{}','{}')".
Format(accountno,bankname,bankbranch,name,address,areacode,phoneno,email,boxid)
c1.execute(info2) conn.commit()
V=input("do you want to continue?(yes or no)") if V=='yes':
continue else:
break
elifchoice12==2:
acc=input("ENTER YOUR ACCOUNT NUMBER:") use=input("ENTER YOUR USERNAME:")
info6=c1.execute("delete from Transaction where accountno='{}'". Format (acc))
info7=c1.execute("delete from AddNewCustomer where accountno='{}'". format(acc))
info8=c1.execute("delete from newuser where username='{}'".format(use))
c1.execute(info6)
c1.execute(info7) c1.execute(info8) conn.commit()
print("THANK YOU FOR USING OUR SOFTWARE,YOURACCOUNT IS SUCCESFULLY
DELETED")
V=input("doyouwanttocontinue?(yesorno)")
22 | P a g e
ifV=='yes':
Continue else:
break
elifchoice2==2:
accountno=int(input('Enteryouraccountnumber:'))
info10="select*fromTransactionwhereaccountno="+str(accountno) c1.execute(info10)
data3=c1.fetchall() for row in data3:
paid=row[6] ifpaid=='yes':
print('youhavealreadypaidthebill') break
else:
unit=random.randint(0,101)
print('Dearcustomer,youhaveused',unit,'unitsofelectricity.') print('One unit of curent is
150 ruppees')
amount=150*unit toda=dt.date.today() deadline=dt.date(2020,1,30) if deadline<toda:
fine=(toda-deadline)*30
totamt=amount+fine
print('youhavedealyedfor',toda-deadline,'days.Thefineperdayis30 rupees.')
GST=(15/100)*totamt totalamt=totamt+GST
print('Pleaepayup',totalamt,'rupeesincldingGST') p=input("Please Enter YES to transact")
if p=="YES"or 'Yes'or'yes': print("Transaction successful") print("You have paid the bill")
else:
print('plzpaythebillsooner') else:
totamt=0 GST=(15/100)*amount totalamt=amount+GST
print('Pleaepayup',totalamt,'rupeesincldingGST') p=input("Please Enter YES to transact")
ifp=="YES":
print("Transactionsuccessful") print("Youhavepaid thebill")
23 | P a g e
else:
print('plzpaythe billsooner')
info3="insertintoTransactionvalues({},{},'{}',{},{},{},'{}')“.Format
(accountno,unit,toda,totamt,GST,totalamt,p) c1.execute(info3)
conn.commit()
V=input("doyouwanttocontinue?(yesorno)") if V=='yes':
continue else:
break
elifchoice2==3:
accountno=int(input('Enteryouraccountnumber:'))
info4="select*fromAddNewCustomerwhereaccountno="+str(accountno)
c1.execute(info4)
data1=c1.fetchall() for row in data1:
print("AccountNumber:",row[0]) print("bankname:",row[1]) print("bankbranch:",row[2])
print("Person name:",row[3])
24 | P a g e
L1,L2,=[],[]
foriinc1.fetchall(): L1.append(i[0])
L2.append(i[1]) plt.plot(L1,L2) plt.title("GRAPH") plt.show()
V=input("doyouwanttocontinue?(yesorno)") if V=='yes':
Continue else:
break
elifchoice2==5:
print("THANKYOU!!!!VISITAGAIN!!!!")
Break c='yes' else:
print('username/passwordisincorrect')
Break
c=input("doyouwanttotryagain?(yes orno)") else:
print("THANKYOU!!!!VISITAGAIN!!!!")
V='no‘
elifchoice1==3:
print("THANKYOU!!!!VISIT AGAIN!!!!")
c='no' Break else:
print("invalidchoice")
c=input("do you want to try again?(yes or no)") else:
print("THANKYOU!!!!VISIT AGAIN!!!!")
c='no'**
25 | P a g e
OUTPUT
Screenshots of the program
26 | P a g e
CONCLUSION
After all the hard work is done for the electricity bill management
system is here. It is software that helps the user to work with the
billing cycles, paying bills, managing different departments under
which employees are working, etc. This software reduces the amount
of manual data entry and gives greater efficiency.
27 | P a g e
BIBLIOGRAPHY
• lovelycoding.org
• freeprojectz.com
• Slideshare.net
• Stackoverflow.com
• github.com
28 | P a g e