Q. Try out a program below and state the output using TPW software in your computer.

program elec; {a program to calculate electricity bills}

var

     standing_charge : real; { the fixed quarterly charge }

     unit_rate : real;

    units_used : integer;

    total_bill : real;

begin

    standing_charge := 7.41;

    unit_rate := 0.065; {converted to £}

    units_used := 1200;

    total_bill := standing_charge + (unit_rate * units_used);

    writeln('Total amoung payable', total_bill)

end.


DEADLINE SUBMISSION: 15/3/2006 (WEDNESDAY)

Hosted by www.Geocities.ws

1