Computer Science, asked by llcoolz15, 1 year ago

Write a program that calculates and prints the monthly electric bill for the Olympia Power company. The company services 3 types of customers :residential, business and industrial. The bill calculations vary, depending on the type of customer. Electric bills are calculated as follows : Residential service : Basic service charge of $17.00 � Plus amounts calculated against the kWh using the following rates : Delivery : 0.04629 RDM : -0.00124 Incr state assessment : 0.00026 � Plus a Consol. Billing Credit of -0.07294 times Delivery charge � Plus a Tariff Surcharge of 0.0204082 times the total thus far � Plus a Electric Supply charge of 0.12170 times kWh � Plus a Sales Tax of .0475 times the Electric Supply Business service : Basic service charge of $ 60.00 � Plus amounts calculated against the kWh using the following rates : Delivery : 0.04556 State Assessment : 0.06861 RCB/SPT : use rate below � Plus an Electric Supply charge of 0.035 times kWh � Plus a Sales Tax of .0350 times the Electric Supply RCB/SPT code Rate S - 0.00015 M - 0.00025 L - 0.00040 I - 0.00045 G - 0.00060 Industrial service : No basic service charge � An Electric Supply charge of 75.25 times mWh � Plus a Sales Tax of .0875 times the Electric Supply � Plus a Power Grid charge of X times mWh where X is the Power Grid rate entered by the user. Note 1 : The program must prompt the user to enter a customer number and a service code of : R, r, B, b, I, i. Treat any other character as an error. Note 2 : The program must use 3 void functions : one to calculate and output each type of bill.

Answers

Answered by Anonymous
0
n=input("enter a bill amount ")
for i in (n):
z=i(i-1)
print z "amount to be paid sir"


Answered by vishwaschoudhar
0
n=input("enter a bill amount ")
for i in (n):
z=i(i-1)
print z "amount to be paid sir"

Similar questions