Engineering
Engineering, 07.03.2020 04:55, 030702princessjs

// A standard mortgage is paid monthly over 30 years.
// This program is intended to output 360 payment coupons
// for each new borrower at a mortgage company.
// Each coupon lists the month number, year number,
// and a friendly mailing reminder.
start
Declarations
num MONTHS = 12
num YEARS = 30
string MSG = "Remember to allow 5 days for mailing"
num acctNum
num yearCounter
housekeeping()
while acctNUm <> QUIT
printCoupons()
endwhile
finish()
stop

housekeeping()
print "Enter account number or ", QUIT, " to quit "
input acctNum
return

printCoupons()
while yearCounter <= YEARS
while monthCounter <= MONTHS
print acctNum, monthCounter, yearCounter, MSG
monthCounter = monthCounter + 1
endwhile
endwhile
output "Enter account number or ", QUIT, " to quit "
input acctNum
return

finish()
output "End of job"
return

Can you please help me debug this code, Thanks!

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, bryneosburn
Line joining liquid phase with liquid and solid phase mixture is known as: a) liquidus b) solidus c) tie line d) none of the mentioned
Answers: 2
image
Engineering, 04.07.2019 16:10, TheOriginalMeyah
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
image
Engineering, 04.07.2019 18:10, danksans7011
The mass flow rate of the fluid remains constant in all steady flow process. a)- true b)- false
Answers: 1
image
Engineering, 04.07.2019 18:10, dval1146
You are making beer. the first step is filling the glass carboy with the liquid wort. the internal diameter of the carboy is 15 in., and you wish to fill it up to a depth of 2 ft. if your wort is drawn from the kettle using a siphon process that flows at 3 gpm, how long will it take to fill?
Answers: 1
Do you know the correct answer?
// A standard mortgage is paid monthly over 30 years.
// This program is intended to output 36...

Questions in other subjects:

Konu
Health, 15.12.2020 22:20
Konu
Mathematics, 15.12.2020 22:20
Konu
Mathematics, 15.12.2020 22:20
Konu
Mathematics, 15.12.2020 22:20