Problem Solving IT SBA
Problem Solving IT SBA
Problem Statement:
Mr. Green is thinking of purchasing some new equipment. He is thinking of investing
twice the amount of money that he made for the year or $12,000, whichever is greater.
He has checked with three banks and their interest rates and repayment periods in
years are: Bank A: 7.25% over 3 years; Bank B: 6,75% over 4 years and Bank C:
6.45% over 5 years. You need to help Mr. Green to determine what his monthly
payments will be for each of these options, including his total loan repayment amount
and recommend which option he should choose.
Begin
For Bank 1 to 3 Do begin
Prompt user for money made in the year
Read “AmtOfMoney”
IF “AmtOfMoney” * 2 > 12000 THEN
Write “Invest”
ELSE
“AmtOfMoney” * 2 < 12000
Write “Invest 12000”
ENDIF
Simple interest = SI
Loan Amount = LA
Total= AmtOfMoney + SI
Monthly Payment = MnthlyPM
Prompt user for ‘AmtOfMoney’
Read AmtOfMoney
Prompt user for Rate
Read ‘R’
Prompt user for time in years
Read ‘T’
SI = AmtOfMoney * R * T / 100
MnthlyPM
ENDFOR
Write ‘Simple interest of money is’, SI/(T*12)
Write ‘Total Amount is’, Total
Write ‘Monthly payment amount is’, MnthlyPM
END.
Test Data
3000, 8000,
7500,
15000, 2000
Trace Table 1
Trace Table 2
Trace Table 4
Trace Table 5