Basic output, no wrong input, exit after 1 calculation. --------------------Configuration: -------------------- Welcome to the Student Loan Calculator Today is: Wed Oct 03 19:11:53 EDT 2007 ======================================= Enter the amount of the loan (ex. 6000.00): 6000 Enter the annual interest rate: (ex. 12.0, must be between 0 and 100): 12 Enter the term in months: (ex. 18): 18 Monthly payment will be: $365.89 The loan is $6000.00 at an interest rate of 12.00% Month Owing Payment Amount Remaining ======================================================== 1 $6060.00 $365.89 $5694.11 2 $5751.05 $365.89 $5385.16 3 $5439.01 $365.89 $5073.12 4 $5123.85 $365.89 $4757.95 5 $4805.53 $365.89 $4439.64 6 $4484.04 $365.89 $4118.15 7 $4159.33 $365.89 $3793.44 8 $3831.37 $365.89 $3465.48 9 $3500.13 $365.89 $3134.24 10 $3165.58 $365.89 $2799.69 11 $2827.69 $365.89 $2461.79 12 $2486.41 $365.89 $2120.52 13 $2141.73 $365.89 $1775.83 14 $1793.59 $365.89 $1427.70 15 $1441.98 $365.89 $1076.08 16 $1086.84 $365.89 $720.95 17 $728.16 $365.89 $362.27 18 $365.89 $365.89 $0.00 Total Amount Paid: $6586.06 Do You Want to Perform Another Calculation? [Y or N] n GOODBYE Process completed. Testing numbers outside the range for interest rate, replies "y" to enter another calculation, then checks larger numbers. Even with larger values, columns in chart still line up. --------------------Configuration: -------------------- Welcome to the Student Loan Calculator Today is: Wed Oct 03 19:13:56 EDT 2007 ======================================= Enter the amount of the loan (ex. 6000.00): 1500 Enter the annual interest rate: (ex. 12.0, must be between 0 and 100): 200 Invalid number entered. Please try again. Enter the annual interest rate: (ex. 12.0, must be between 0 and 100): -90 Invalid number entered. Please try again. Enter the annual interest rate: (ex. 12.0, must be between 0 and 100): 14.5 Enter the term in months: (ex. 18): 8 Monthly payment will be: $197.84 The loan is $1500.00 at an interest rate of 14.50% Month Owing Payment Amount Remaining ======================================================== 1 $1518.12 $197.84 $1320.29 2 $1336.24 $197.84 $1138.40 3 $1152.16 $197.84 $954.32 4 $965.85 $197.84 $768.01 5 $777.29 $197.84 $579.45 6 $586.46 $197.84 $388.62 7 $393.31 $197.84 $195.48 8 $197.84 $197.84 $0.00 Total Amount Paid: $1582.71 Do You Want to Perform Another Calculation? [Y or N] y Welcome to the Student Loan Calculator Today is: Wed Oct 03 19:13:56 EDT 2007 ======================================= Enter the amount of the loan (ex. 6000.00): 300000 Enter the annual interest rate: (ex. 12.0, must be between 0 and 100): 18 Enter the term in months: (ex. 18): 120 Monthly payment will be: $5405.56 The loan is $300000.00 at an interest rate of 18.00% Month Owing Payment Amount Remaining ======================================================== 1 $304500.00 $5405.56 $299094.44 2 $303580.86 $5405.56 $298175.30 3 $302647.93 $5405.56 $297242.38 4 $301701.01 $5405.56 $296295.46 5 $300739.89 $5405.56 $295334.33 6 $299764.35 $5405.56 $294358.79 7 $298774.17 $5405.56 $293368.62 8 $297769.15 $5405.56 $292363.59 9 $296749.05 $5405.56 $291343.49 10 $295713.64 $5405.56 $290308.09 11 $294662.71 $5405.56 $289257.15 12 $293596.01 $5405.56 $288190.45 13 $292513.31 $5405.56 $287107.75 14 $291414.37 $5405.56 $286008.81 15 $290298.95 $5405.56 $284893.39 16 $289166.79 $5405.56 $283761.24 17 $288017.65 $5405.56 $282612.10 18 $286851.28 $5405.56 $281445.72 19 $285667.41 $5405.56 $280261.85 20 $284465.78 $5405.56 $279060.23 21 $283246.13 $5405.56 $277840.57 22 $282008.18 $5405.56 $276602.63 23 $280751.66 $5405.56 $275346.11 24 $279476.30 $5405.56 $274070.74 25 $278181.81 $5405.56 $272776.25 26 $276867.89 $5405.56 $271462.34 27 $275534.27 $5405.56 $270128.72 28 $274180.65 $5405.56 $268775.09 29 $272806.72 $5405.56 $267401.16 30 $271412.18 $5405.56 $266006.62 31 $269996.72 $5405.56 $264591.17 32 $268560.03 $5405.56 $263154.48 33 $267101.80 $5405.56 $261696.24 34 $265621.68 $5405.56 $260216.13 35 $264119.37 $5405.56 $258713.81 36 $262594.52 $5405.56 $257188.96 37 $261046.80 $5405.56 $255641.24 38 $259475.86 $5405.56 $254070.30 39 $257881.36 $5405.56 $252475.80 40 $256262.94 $5405.56 $250857.38 41 $254620.25 $5405.56 $249214.69 42 $252952.91 $5405.56 $247547.35 43 $251260.56 $5405.56 $245855.01 44 $249542.83 $5405.56 $244137.28 45 $247799.34 $5405.56 $242393.78 46 $246029.69 $5405.56 $240624.13 47 $244233.49 $5405.56 $238827.94 48 $242410.36 $5405.56 $237004.80 49 $240559.87 $5405.56 $235154.32 50 $238681.63 $5405.56 $233276.08 51 $236775.22 $5405.56 $231369.66 52 $234840.21 $5405.56 $229434.65 53 $232876.17 $5405.56 $227470.61 54 $230882.67 $5405.56 $225477.12 55 $228859.27 $5405.56 $223453.72 56 $226805.52 $5405.56 $221399.97 57 $224720.97 $5405.56 $219315.41 58 $222605.14 $5405.56 $217199.59 59 $220457.58 $5405.56 $215052.02 60 $218277.80 $5405.56 $212872.25 61 $216065.33 $5405.56 $210659.78 62 $213819.67 $5405.56 $208414.12 63 $211540.33 $5405.56 $206134.77 64 $209226.79 $5405.56 $203821.24 65 $206878.56 $5405.56 $201473.00 66 $204495.09 $5405.56 $199089.54 67 $202075.88 $5405.56 $196670.33 68 $199620.38 $5405.56 $194214.83 69 $197128.05 $5405.56 $191722.49 70 $194598.33 $5405.56 $189192.77 71 $192030.66 $5405.56 $186625.11 72 $189424.49 $5405.56 $184018.93 73 $186779.21 $5405.56 $181373.66 74 $184094.26 $5405.56 $178688.71 75 $181369.04 $5405.56 $175963.48 76 $178602.93 $5405.56 $173197.38 77 $175795.34 $5405.56 $170389.78 78 $172945.63 $5405.56 $167540.07 79 $170053.17 $5405.56 $164647.62 80 $167117.33 $5405.56 $161711.78 81 $164137.45 $5405.56 $158731.90 82 $161112.87 $5405.56 $155707.32 83 $158042.93 $5405.56 $152637.37 84 $154926.93 $5405.56 $149521.38 85 $151764.20 $5405.56 $146358.64 86 $148554.02 $5405.56 $143148.47 87 $145295.69 $5405.56 $139890.14 88 $141988.49 $5405.56 $136582.93 89 $138631.68 $5405.56 $133226.12 90 $135224.51 $5405.56 $129818.96 91 $131766.24 $5405.56 $126360.68 92 $128256.10 $5405.56 $122850.54 93 $124693.30 $5405.56 $119287.74 94 $121077.06 $5405.56 $115671.50 95 $117406.57 $5405.56 $112001.02 96 $113681.03 $5405.56 $108275.48 97 $109899.61 $5405.56 $104494.05 98 $106061.46 $5405.56 $100655.91 99 $102165.75 $5405.56 $96760.19 100 $98211.59 $5405.56 $92806.04 101 $94198.13 $5405.56 $88792.57 102 $90124.46 $5405.56 $84718.91 103 $85989.69 $5405.56 $80584.13 104 $81792.89 $5405.56 $76387.34 105 $77533.15 $5405.56 $72127.59 106 $73209.51 $5405.56 $67803.95 107 $68821.01 $5405.56 $63415.45 108 $64366.69 $5405.56 $58961.13 109 $59845.55 $5405.56 $54439.99 110 $55256.59 $5405.56 $49851.03 111 $50598.80 $5405.56 $45193.24 112 $45871.14 $5405.56 $40465.59 113 $41072.57 $5405.56 $35667.01 114 $36202.02 $5405.56 $30796.46 115 $31258.41 $5405.56 $25852.86 116 $26240.65 $5405.56 $20835.09 117 $21147.62 $5405.56 $15742.06 118 $15978.19 $5405.56 $10572.64 119 $10731.23 $5405.56 $5325.67 120 $5405.56 $5405.56 $0.00 Total Amount Paid: $648666.72 Do You Want to Perform Another Calculation? [Y or N] n GOODBYE Process completed. Enters a character other than Y/y or N/n when asked if another calculation is desired. --------------------Configuration: -------------------- Welcome to the Student Loan Calculator Today is: Wed Oct 03 19:16:20 EDT 2007 ======================================= Enter the amount of the loan (ex. 6000.00): 2000 Enter the annual interest rate: (ex. 12.0, must be between 0 and 100): 26 Enter the term in months: (ex. 18): 24 Monthly payment will be: $107.75 The loan is $2000.00 at an interest rate of 26.00% Month Owing Payment Amount Remaining ======================================================== 1 $2043.33 $107.75 $1935.58 2 $1977.52 $107.75 $1869.77 3 $1910.28 $107.75 $1802.54 4 $1841.59 $107.75 $1733.84 5 $1771.41 $107.75 $1663.66 6 $1699.70 $107.75 $1591.96 7 $1626.45 $107.75 $1518.70 8 $1551.60 $107.75 $1443.85 9 $1475.14 $107.75 $1367.39 10 $1397.02 $107.75 $1289.27 11 $1317.20 $107.75 $1209.45 12 $1235.66 $107.75 $1127.91 13 $1152.35 $107.75 $1044.60 14 $1067.23 $107.75 $959.48 15 $980.27 $107.75 $872.52 16 $891.42 $107.75 $783.67 17 $800.65 $107.75 $692.91 18 $707.92 $107.75 $600.17 19 $613.17 $107.75 $505.42 20 $516.37 $107.75 $408.63 21 $417.48 $107.75 $309.73 22 $316.44 $107.75 $208.69 23 $213.21 $107.75 $105.46 24 $107.75 $107.75 $0.00 Total Amount Paid: $2585.98 Do You Want to Perform Another Calculation? [Y or N] Q GOODBYE Process completed. Error checking for negative numbers, and input that doesn't match the variable type. --------------------Configuration: -------------------- Welcome to the Student Loan Calculator Today is: Wed Oct 03 20:51:49 EDT 2007 ======================================= Enter the amount of the loan (ex. 6000.00): Twenty Thousand Invalid number entered. Please try again. Enter the amount of the loan (ex. 6000.00): $20000 Invalid number entered. Please try again. Enter the amount of the loan (ex. 6000.00): -200000 Invalid number entered. Please try again. Enter the amount of the loan (ex. 6000.00): 20000 Enter the annual interest rate: (ex. 12.0, must be between 0 and 100): -2 Invalid number entered. Please try again. Enter the annual interest rate: (ex. 12.0, must be between 0 and 100): 200 Invalid number entered. Please try again. Enter the annual interest rate: (ex. 12.0, must be between 0 and 100): Sixteen percent Invalid number entered. Please try again. Enter the annual interest rate: (ex. 12.0, must be between 0 and 100): 16 Enter the term in months: (ex. 18): October Invalid number entered. Please try again. Enter the term in months: (ex. 18): -33 Invalid number entered. Please try again. Enter the term in months: (ex. 18): 12 Monthly payment will be: $1814.62 The loan is $20000.00 at an interest rate of 16.00% Month Owing Payment Amount Remaining ======================================================== 1 $20266.67 $1814.62 $18452.05 2 $18698.08 $1814.62 $16883.46 3 $17108.57 $1814.62 $15293.96 4 $15497.87 $1814.62 $13683.26 5 $13865.70 $1814.62 $12051.08 6 $12211.76 $1814.62 $10397.15 7 $10535.78 $1814.62 $8721.16 8 $8837.44 $1814.62 $7022.82 9 $7116.46 $1814.62 $5301.84 10 $5372.54 $1814.62 $3557.92 11 $3605.36 $1814.62 $1790.74 12 $1814.62 $1814.62 $0.00 Total Amount Paid: $21775.41 Do You Want to Perform Another Calculation? [Y or N] *NO* GOODBYE Process completed.