ls -l purchases.dat payments.dat -rw-r--r-- 1 msaul msaul 0 2010-03-20 17:25 payments.dat -rw-r--r-- 1 msaul msaul 159 2010-03-02 15:27 purchases.dat cat purchases.dat A100:Annie Marie's Dance Academy:123:1500 F110:Frankies Repair Shop:1123:250 S100:Sandra's Counselling Service:67:500 A100:Annie Marie's Dance Academy:254:500 makePayments.bash purchases.dat payments.dat MAIN MENU # Note, screen clears, # then displays this menu 1. Make a Vendor Payment 2. Display Vendor Purchases 3. Display Payments to Vendors 4. Exit Please make a selection: 2 Purchases Report # screen clears ================ Annie Marie's Dance Academy $ 2000.00 Frankies Repair Shop $ 250.00 Sandra's Counselling Service $ 500.00 Total Purchases: $ 2750.00 Press to return to menu... MAIN MENU # screen clears 1. Make a Vendor Payment 2. Display Vendor Purchases 3. Display Payments to Vendors 4. Exit Please make a selection: 3 Payments Report # screen clears ================ Total Payments: $ 0.00 Press to return to menu... MAIN MENU # screen clears 1. Make a Vendor Payment 2. Display Vendor Purchases 3. Display Payments to Vendors 4. Exit Please make a selection: 1 Enter the vendor number: 123 Invalid or non-existent vendor number. Please re-enter: Z100 Invalid or non-existent vendor number. Please re-enter: A100 Vendor Name: Annie Marie's Dance Academy 1. Invoice #123 Amount: 1500 2. Invoice #254 Amount: 500 Please select transaction number: 1 Enter Payment amount: 750 Payment transcation recorded. Press to return to menu... MAIN MENU # screen clears 1. Make a Vendor Payment 2. Display Vendor Purchases 3. Display Payments to Vendors 4. Exit Please make a selection: 3 Payments Report # screen clears ================ Annie Marie's Dance Academy $ 750.00 Total Payments: $ 750.00 Press to return to menu... MAIN MENU # screen clears 1. Make a Vendor Payment 2. Display Vendor Purchases 3. Display Payments to Vendors 4. Exit Please make a selection: 4 # program exits, returns to shell prompt