previous | start | next

Example: Invoice Generation

The problem is to provide a program that can print an Invoice such as the one below. Each invoice will contain the address of the customer. Each Line Item will print the product description, the quantity ordered, the price/item, and the total charge for that quantity of items. The total amount due for all line items on the invoice should also be printed.

                         Invoice

EZ Rental
8384 Dempsey
Brooklyn, NY 01234

Description            Qty             Price     Total
------------------------------------------------------
Power Cleaner           1              $49.95    49.95
PX Cleaner Fluid        8              $ 9.00    72.00 
M803 Vac Bags          10              $ 2.08    20.80

Amount Due: $142.75

     


previous | start | next