You are on page 1of 4

Project File

Computer science

Electricity Bill
By:Kshitij Jadwani
Acknowledgment
I would like to express my sincere gratitude to all those who have
contributed to the completion of this project. Their support, guidance, and
encouragement have been invaluable throughout this journey.

First and foremost, I am deeply thankful to Sangita Chaddha for their


continuous guidance, invaluable insights, and unwavering support. Their
expertise and encouragement have been instrumental in shaping this
project and pushing me towards excellence.

I would also like to extend my appreciation to my classmates and friends


who provided feedback, suggestions, and moral support during the
development of this project. Their constructive criticism and brainstorming
sessions have been incredibly beneficial.

Furthermore, I am indebted to the [Name of Institution] for providing the


necessary resources, facilities, and conducive environment for carrying out
this project.

Last but not least, I want to express my gratitude to my family for their love,
understanding, and encouragement throughout this endeavor. Their
unwavering support has been the cornerstone of my success.

This project would not have been possible without the collective effort and
support of all those mentioned above. Thank you all for your invaluable
contributions.
Q. Wite a progam using python to make an electricity bill.
Source Code:
customername = input("Enter your name: ")
address = input("Enter your address ")
meternumber = input("Enter your consumer number: ")

x = int(input("Enter current meter reading: "))

if x>0 and x<100:


unitrate=2.90
elif x>101 and x<200:
unitrate=3.90
elif x>201 and x<500:
unitrate=4.90
elif x>501:
unitrate=6.30

billamount = x * unitrate

duedate = "30th April 2023"

print("******************************************")
print("Electricity Bill")
print("Customer Name: ", customername)
print("Address: ", address)
print("Meter Number: ", meternumber)
print("Units Consumed: ", x)
print("Unit Rate: ", unitrate)
print("Bill Amount: ", billamount)
print("Due Date: ", duedate)
print("******************************************")
Output :
Enter your name: Kshitij
Enter your address 12, sewa nagar market
Enter your consumer number: 9999
Enter current meter reading: 12
******************************************
Electricity Bill
Customer Name: Kshitij
Address: 12, sewa nagar market
Meter Number: 9999
Units Consumed: 12
Unit Rate: 2.9
Bill Amount: 34.8
Due Date: 30th April 2023

You might also like