KING KONG ELECTRICITY AUTHORITY
You are required to develop a script that will enable KING KONG ELECTRICITY AUTHORITY to
calculate customer bills based on their meter readings.
The customers are categorized into the following categories:
? Residential customers
? Commercial customers
Residential tariff rates
If the units of power consumed is less than or equal to (<=) 75 kW per month, the government
will subsidize at the rate of 17.64 cents per unit for all consumptions equal to or less than
75kW per month and in effect the customer will pay 17.20 cents per unit.
If the units of power consumed are greater than (>) 75 kW per month, the user is not entitled
for government subsidy. All consumptions will be charged at the rate of 34.84 cents per unit.
Commercial tariff rates
If the units of power consumed is less than or equal to (<=) 14,999 kW per month, the
consumer is charged at 42 cents per unit. The excess units will be charged at 44 cents per unit
and added to the overall total.
The following are the inputs to the program:
1. Client name
2. Client address
3. Client category (