Sequential Exercise 3.
Extend the previous exercise to produce an invoice. It should include a standing charge of £12.60 and VAT at 5%. Output the information in a suitable format. Use a constant definition for the standing charge.
Algorithm
ElectricCharge
cost per unit:=0. 667
VAT:= 0.05
standing charge:= 12.6
read present meter reading
read previous meter reading
electicity used:= present
meter reading-previous meter reading
amount owed:= electricity used*6.67/100 + standing charge
write amount owed
End.
PROGRAM: standing.cpp