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

Sunday, April 9, 2023

HOME ELECTRIC BILL UPTO 5 DEVICES

print("Enter the details of first application")
p1=int(input("Enter the power in Watt = "))
t1=int(input("Enter the number of hours used = "))
n1=int(input("Enter the number of application = "))
print("Enter the details of second application")
p2=int(input("Enter the power in Watt = "))
t2=int(input("Enter the number of hours used = "))
n2=int(input("Enter the number of application = "))
print("Enter the details of third application")
p3=int(input("Enter the power in Watt = "))
t3=int(input("Enter the number of hours used = "))
n3=int(input("Enter the number of application = "))
print("Enter the details of fourth application")
p4=int(input("Enter the power in Watt = "))
t4=int(input("Enter the number of hours used = "))
n4=int(input("Enter the number of application = "))
print("Enter the details of fifth application")
p5=int(input("Enter the power in Watt = "))
t5=int(input("Enter the number of hours used = "))
n5=int(input("Enter the number of application = "))
e1=(p1*0.001)*t1*n1
e2=(p2*0.001)*t2*n2
e3=(p3*0.001)*t3*n3
e4=(p4*0.001)*t4*n4
e5=(p5*0.001)*t5*n5
e=e1+e2+e3+e4+e5
if e<200:
    print("no bill")
elif 200<e<301:
    print("Your bill for 1 day =",e*5+((e*5)*0.025),"\n","Your bill for 30 days =",(e*5)*30+(((e*5)*30)*0.025),"\n","Your bill for 31 days =",(e*5)*31+(((e*5)*31)*0.025),"\n")
elif 300<e<401:
    print(e*7+((e*7)*0.025),"\n","Your bill for 30 days =",(e*7)*30+(((e*7)*30)*0.025),"\n","Your bill for 31 days =",(e*7)*31+(((e*7)*31)*0.025),"\n")
elif 400<e:
    print(e*8.5+((e*8.5)*0.025),"\n","Your bill for 30 days =",(e*8.5)*30+(((e*8.5)*30)*0.025),"\n","Your bill for 31 days =",(e*8.5)*31+(((e*8.5)*31)*0.025),"\n")