URGENT HELP NEEDED

KING KONG ELECTRICITY AUTHORITY
BILL CALCULATOR
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.
Program flow:
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:
  8. Units consumed (current meter reading - previous meter reading)
  9. Total billing (VEP)
  10. Total VAT @ 15%
  11. Total billing (Total billing (VEP) + VAT)...please help me do this

Hello!

In case you forgot to read the forum rules, here is quick copy.

Cheers.

The UNIX and Linux Forums