a Design an application for the Homestead Furniture Store that gets sales

A design an application for the homestead furniture

This preview shows page 15 - 22 out of 53 pages.

9.a. Design an application for the Homestead Furniture Store that gets sales transaction data, including an account number, customer name, and purchase price. Output the account number and name, then output the customer’s payment each month for the next 12 months. Assume that there is no finance charge, that the customer makes no new purchases, and that the customer pays off the balance with equal monthly payments.
Programming Logic and Design, 8e Solutions 5-16 Pseudocode: start Declarations num accountNum num balanceDue num month num paymentAmt string custName num TOTAL_MONTHS = 12 string PROMPT1 = “Enter an account number >> ” string PROMPT2 = “Enter the customer name and purchase price (balance due) >> ” housekeeping() detail() finishUp() stop housekeeping() output PROMPT1 input accountNum return detail() output PROMPT2
Programming Logic and Design, 8e b. Modify the Homestead Furniture Store application so it executes continuously for any number of customers until a sentinel value is supplied for the account number.
Programming Logic and Design, 8e Solutions 5-18 Pseudocode: start Declarations num accountNum num balanceDue num month num paymentAmt string custName num TOTAL_MONTHS = 12 string PROMPT1 = “Enter an account number or 999 to quit >> ” string PROMPT2 = “Enter the customer name and purchase price (balance due) >> ” housekeeping() while accountNum <> 999 detailLoop() endwhile finishUp()
Programming Logic and Design, 8e 10. a. Design an application for Domicile Designs that gets sales transaction data, including an account number, customer name, and purchase price. The store charges 1.25 percent interest on the balance due each month. Output the account number and name; then output the customer’s projected balance each month for the next 12 months. Assume that when the balance reaches $25 or less, the customer can pay off the account. At the beginning of every month, 1.25 percent interest is added to the balance, and then the customer makes a payment equal to 7 percent of the current balance. Assume that the customer makes no new purchases.
Programming Logic and Design, 8e Solutions 5-20 Pseudocode: start Declarations num accountNum num balanceDue num month num paymentAmt
Programming Logic and Design, 8e

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture