// A standard mortgage is paid monthly over 30 years. // This program is intended to display 360 payment coupons // for a new borrower. Each coupon lists the month number, // year number, and a friendly mailing reminder.
// A standard mortgage is paid monthly over 30 years.
// This program is intended to display 360 payment coupons
// for a new borrower. Each coupon lists the month number,
// year number, and a friendly mailing reminder.
start
num MONTHS = 12
num YEARS = 30
string MSG = "Remember to allow 5 days for mailing"
num monthCounter = 0
num yearCounter = 30
while yearCounter <= YEARS
while monthCounter <= MONTHS
output monthCounter, yearCounter, MSG
endwhile
endwhile
stop
housekeeping()
print "Enter account number or ", QUIT, " to quit "
return
printCoupons()
while yearCounter <= YEARS
while monthCounter <= MONTHS
print acctNum, monthCounter, yearCounter, MSG
monthCounter = monthCounter + 1
endwhile
yearCounter = yearCounter + 1
endwhile
output "Enter account number or ", QUIT, " to quit "
input acctNum
return
finish()
output "End of job"
return
Trending now
This is a popular solution!
Step by step
Solved in 2 steps