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 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 (“R” for residential or “C” for commercial)
4. Date of meter reading
5. Period of meter reading (start month – end month)
6. Previous meter reading
7. Current meter reading (30 days)
The following calculations should be done:
1. Units consumed (current meter reading – previous meter reading)
2. Total billing (VEP)
3. Total VAT @ 15%
4. Total billing (Total billing (VEP) + VAT)..
PLEASE HELP ME IN DOING THIS AS IM NEW TO LINUX