previous | start | next

## Example: Printing an Invoice (Requirements)

- This program prints the billing address, all line items, and the amount due.
- Each line item contains the description and unit price of a product, the quantity ordered, and the total price.

  >     Sam's Small Appliances
  >     100 Main Street
  >     Anytown, CA 98765

  >     Description                        Price  Qty  Total
  >     Toaster                            29.95   3   89.95
  >     Hair dryer                         24.95   1   24.95
  >     Car vacuum                         19.99   2   39.98

  >     AMOUNT DUE: $154.78

- In the interest of simplicity, no user interface is required.

previous | start | next