ERUMA
ERUMA
CHENNAI
SENIOR SECONDARY COMPARTMENT
NAME : R PRAVEEN
MK SUNANDHA SHREE
CLASS : XI F
Mas. R PRAVEEN
MK SUNANDHA SHREE (Roll Number: 11F26
11F55 of class XI F of Velammal Vidyalaya
Mr. R. Praveen
PGT CS
PROGRAM CODE:
# ELECTRICITY BILLING
'''Project HINT: Two sectors - Domestic & Commercial
Domestic - Unit>200 - 2Rs, Unit >300 - 4 Rs , Unit >400 - 5 Rs, Unit >500 -
6Rs
Commercial - Unit>200 - 4Rs, Unit >300 - 8 Rs , Unit >400 - 10 Rs,
Unit >500 - 12Rs'''
print("********************************************")
print("PRAVEEN ELECTRICITY SERVICES")
print("********************************************\n")
l=[]
cid=int(input("Enter your CID: "))
cname=input("Enter your Customer Name: ")
area=input("Enter the Location: ")
phno=int(input("Enter your Phone Number: "))
cat=input("Enter the Category - Domestic / Commercial:")
unit=int(input("Enter the Electricity Units consumed: "))
if cat=="Domestic":
if unit>=0 and unit<=200:
print("Free Electricity")
elif unit>200 and unit<=300:
amt=unit*2
print("The Bill Amount payable is:",amt)
elif unit>300 and unit<=400:
amt=unit*4
print("The Bill Amount payable is:",amt)
elif unit>400 and unit<=500:
amt=unit*8
print("The Bill Amount payable is:",amt)
elif unit>500:
RESULT: The python code for the electricity billing system was developed
and executed successfully.