Chap5prob10b - 10.b Modify the Domicile Designs application...

This preview shows page 1 - 3 out of 3 pages.

10.b. Modify the Domicile Designs application so it executes continuously for any number ofcustomers until a sentinel value is supplied for the account number.Answer: A sample solution followsFlowchart:
Pseudocode:start
Declarationsnum accountNumnum balanceDuenum monthnum paymentAmtstring custNamenum TOTAL_MONTHS = 12num PAY_RATE = 0.07num INTEREST_RATE = 0.0125num MIN_BALANCE = 25string PROMPT1 = “Enter an account number or 999 to quit >> ”string PROMPT2 = “Enter the customer name and purchase price (balance due) >> ”housekeeping()while accountNum <> 999detailLoop()endwhile

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture