In question 6 of Lesson 7
you wrote a program to process a gas bill. If you haven't
already done so write down an algorithm for this program. Now
extend the algorithm so that the option of paying the bill by
installments is given. Thus as well as entering the numeric
data the user answers a question as to whether they wish to pay
the bill in full or by installments. If paid in
installments then a five percent interest charge is added to the
total bill before VAT is charged. An initial twenty percent must be
paid initially and the remainder is paid in three equal monthly
installments. The output should indicate the initial payment and
monthly installment.
A program is required as part of an invoicing system to enter the
reference number of a product, its unit price in pounds and pence
and a quantity ordered. The program should output the total cost
of the order given that the first 100 items ordered are charged
at the unit price and that the remainder are charged at 75% of unit
price. Write an algorithm for this program.