//Output of Assignment 1 for COMP 2404 //Test 1 Creating: Lou, $1000.00 for 12 months at 6.00% Creating: Sue, $5000.00 for 60 months at 7.00% Creating: Frank, $3000.00 for 24 months at 6.00% Lou, $1000.00 for 12 months at 6.00% ---------------------------------------------------------- Payment Schedule for: Lou, $1000.00 for 12 months at 6.00% ========================================================= Month Owing Payment Amount Remaining 1 $1005.00 $86.07 $918.93 2 $923.53 $86.07 $837.46 3 $841.65 $86.07 $755.58 4 $759.36 $86.07 $673.29 5 $676.66 $86.07 $590.59 6 $593.55 $86.07 $507.48 7 $510.02 $86.07 $423.95 8 $426.07 $86.07 $340.01 9 $341.71 $86.07 $255.64 10 $256.92 $86.07 $170.85 11 $171.70 $86.07 $85.64 12 $86.07 $86.07 $-0.00 The total amount paid was $1032.80 ---------------------------------------------------------- Test for identity Decreasing set capacity to 2 Good, the objects are the same ---------------------------------------------------------- Adding Lou, $1000.00 for 12 months at 6.00% to Car Loans Adding Sue, $5000.00 for 60 months at 7.00% to Car Loans Adding Frank, $3000.00 for 24 months at 6.00% to Other Loans In Car Loans: Creating: Anne, $2000.00 for 12 months at 6.00% Expanding set capacity to 4 In Car Loans: Creating: John, $12000.00 for 48 months at 6.00% In Car Loans: Creating: Mary, $15000.00 for 60 months at 6.00% Expanding set capacity to 8 In Other Loans: Creating: Dave, $12000.00 for 48 months at 6.00% In Other Loans: Creating: Louis, $15000.00 for 60 months at 6.00% number of car loans = 5 Lou, $1000.00 for 12 months at 6.00% Deleting: Lou, $1000.00 for 12 months at 6.00% Sue, $5000.00 for 60 months at 7.00% Deleting: Sue, $5000.00 for 60 months at 7.00% Anne, $2000.00 for 12 months at 6.00% Deleting: Anne, $2000.00 for 12 months at 6.00% Decreasing set capacity to 4 John, $12000.00 for 48 months at 6.00% Deleting: John, $12000.00 for 48 months at 6.00% Decreasing set capacity to 2 Mary, $15000.00 for 60 months at 6.00% Deleting: Mary, $15000.00 for 60 months at 6.00% number of other loans = 3 Frank, $3000.00 for 24 months at 6.00% Dave, $12000.00 for 48 months at 6.00% Louis, $15000.00 for 60 months at 6.00% Balances ========== 3000.00 12000.00 15000.00 Deleting Other Loans ====================== Deleting: Frank, $3000.00 for 24 months at 6.00% Deleting: Dave, $12000.00 for 48 months at 6.00% Decreasing set capacity to 2 Deleting: Louis, $15000.00 for 60 months at 6.00% Press any key to continue . . .