// 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.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 2CP
icon
Related questions
Question

// 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

// A standard mortgage is paid monthly over 30 years.
// This program is intended to print 360 payment coupons
// for each new borrower at a mortgage comapny. Each coupon
// lists the month number, year number, and a friendly mailing reminder.
start
Declarations
num MONTHS = 12
num YEARS = 360
string MSG = "Remember to allow 5 days for mailing"
num acctNum
num monthCounter
num yearCounter
housekeeping ()
while acctNUm <> QUIT
printCoupons ()
endwhile
finish()
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 + 1
yearCounter
endwhile
output "Enter account number or ", QUIT,
input acctNum
to quit
return
finish()
output "End of job"
return
Transcribed Image Text:// A standard mortgage is paid monthly over 30 years. // This program is intended to print 360 payment coupons // for each new borrower at a mortgage comapny. Each coupon // lists the month number, year number, and a friendly mailing reminder. start Declarations num MONTHS = 12 num YEARS = 360 string MSG = "Remember to allow 5 days for mailing" num acctNum num monthCounter num yearCounter housekeeping () while acctNUm <> QUIT printCoupons () endwhile finish() 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 + 1 yearCounter endwhile output "Enter account number or ", QUIT, input acctNum to quit return finish() output "End of job" return
Chapter 4 Debug 2
II A standard mortgage is paid monthly over 30 years.
I/ This program is intended to display 360 payment coupons
Il for a new borrower. Each coupon lists the month number,
Il 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
Transcribed Image Text:Chapter 4 Debug 2 II A standard mortgage is paid monthly over 30 years. I/ This program is intended to display 360 payment coupons Il for a new borrower. Each coupon lists the month number, Il 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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
ListBox
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Expert Answers to Latest Homework Questions

Q: In the circuit below, what should be the values of A and B so that Y = C. D (for all values of C and…
Q: Sandy Chen owns a small specialty store, named Chen's Chattel, whose year-end is June 30. A physical…
Q: We wish to design a three-stage amplifier. To make the problem simple, we do not consider the Early…
Q: help  please answer in text form with proper workings and explanation for each and every part and…
Q: On December 31, 2013, Corporation A leased equipment to Company B for a five-year period. The annual…
Q: 2. A carnival ride has 4 planes going around in a circle. Propeller on the front of each plane…
Q: Please answer in typing format
Q: Çapları 0,273 nm olan hidrojen moleküllerinin oluşturduğu 1 mol hidrojen gazı 300°C'de 6 dm3 hacim…
Q: Use the equations pro to solve the question
Q: help please answer in text form with proper workings and explanation for each and every part and…
Q: help please answer in text form with proper workings and explanation for each and every part and…
Q: A cash budget, by quarters, is given below for a retail company (000 omitted). The company requires…
Q: help please answer in text form with proper workings and explanation for each and every part and…
Q: Please answer in typing format solution
Q: help please answer in text form with proper workings and explanation for each and every part and…
Q: help please answer in text form with proper workings and explanation for each and every part and…
Q: help please answer in text form with proper workings and explanation for each and every part and…
Q: help please answer in text form with proper workings and explanation for each and every part and…
Q: 5 6 7 8 1 47° 3 4 a. Name the two adjacent angles to Angle 6. Desk 1 $ # 4 55 7 t 8
Q: Check-In (June 3 - June 7) 00043&cfql=1&db=0&fromQB=0&inProgress The figure below shows two parallel…
Q: La biología inventada de un animal inventado llamado saltarín desértico