Support our Blind Hand Charity by donating at 9818291723. Your contribution has the potential to bring about significant positive change for humanity.

Search This Blog

MY PROGRAMMES

Thursday, April 6, 2023

ELECTRICITY BILL

print("Enter the details of first appliance","\n")
p1=int(input("Enter the power of appliance in Watt = "))
n1=int(input("Enter the number of appliance in houses = "))
t1=int(input("Enter the number of hours used = "))
print("\n","Enter the details of second appliance")
p2=int(input("Enter the power of appliance in Watt = "))
n2=int(input("Enter the number of appliance in houses = "))
t2=int(input("Enter the number of hours used = "))
print("\n","Enter the details of third appliance")
p3=int(input("Enter the power of appliance in Watt = "))
n3=int(input("Enter the number of appliance in houses = "))
t3=int(input("Enter the number of hours used = "))
print("\n","Enter the details of fourth appliance")
p4=int(input("Enter the power of appliance in Watt = "))
n4=int(input("Enter the number of appliance in houses = "))
t4=int(input("Enter the number of hours used = "))
print("\n","Enter the details of fifth appliance")
p5=int(input("Enter the power of appliance in Watt = "))
n5=int(input("Enter the number of appliance in houses = "))
t5=int(input("Enter the number of hours used = "))
e1=n1*(p1*0.001)*t1
e2=n2*(p2*0.001)*t2
e3=n3*(p3*0.001)*t3
e4=n4*(p4*0.001)*t4
e5=n5*(p5*0.001)*t5
print("\n","Total electricity consumed =",e1+e2+e3+e4+e5,"KwH")
print("\n","Total cost for 1 day =",(e1+e2+e3+e4+e5)*5)
print("\n","Total cost for 30 days =",((e1+e2+e3+e4+e5)*5)*30)
print("\n","Total cost for 31 days =",((e1+e2+e3+e4+e5)*5)*31)