CLS
REM program to calculate the credit card balance
input "minimum monthly payment rate;",b
input "the outstanding balance",bal
a = B
ann = 0.02
m = a * BAL
i = 0.0017 * BAL
pp = m - i
bal1 = BAL - pp
PRINT "the minimum monthly payment and remaining balance month1",m,bal
i = 0.0017 * bal1
m = a * bal1
pp = m - i
bal2 = bal1 - pp
PRINT "the minimum monthly payment and remaining balance month2",m,bal2
i = 0.0017 * bal2
m = a * bal2
pp = m - i
bal3 = bal2 - pp
PRINT "the minimum monthly payment and remaining balance month3",m,bal3
i = 0.0017 * bal3
m = a * bal3
pp = m - i
bal4 = bal3 - pp
PRINT "the minimum monthly payment and remaining balance month4",m,bal4
i = 0.0017 * bal4
m = a * bal4
pp = m - i
bal5 = bal4 - pp
PRINT "the minimum monthly payment and remaining balance month5",m,bal5
i = 0.0017 * bal5
m = a * bal5
pp = m - i
bal6 = bal5 - pp
PRINT "the minimum monthly payment and remaining balance month6",m,bal6
i = 0.0017 * bal6
m = a * bal6
pp = m - i
bal7 = bal6 - pp
PRINT "the minimum montly payment and remaining balance month7",m,bal7
i = 0.0017 * bal7
m = a * bal7
pp = m - i
bal8 = bal7 - pp
PRINT "the minimun monthly payment and remaining balance month8",m,bal8
i = 0.0017 * bal8
m = a * bal8
pp = m - i
bal9 = bal8 - pp
PRINT "the minimum monthly payment and remaining balance month9",m,bal9
i = 0.0017 * bal9
m = a * bal9
pp = m - i
bal10 = bal9 - pp
PRINT "the minimum monthly payment and remaining balance month10",m,bal10
i = 0.0017 * bal10
m = a * bal10
pp = m - i
bal11 = bal10 - pp
PRINT "the minimum monthly payment and remaining balance month11",m,bal11
i = 0.0017 * bal11
m = a * bal11
pp = m - i
bal12 = bal11 - pp
PRINT "the minimum payment aand remaining balance month12",m,bal12
END
oga where solution to number 1 na
ReplyDeletecheck the site na
ReplyDelete