
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
Edition 7ISBN: 1285225562
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
Edition 7ISBN: 1285225562a. 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.
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.
Step 1 of 2
The following pseudo code describes steps for Homestead Furniture store.
a)
Start
Declarations
number acctNum
string custName
number purchasePrice
number monthlyPayment
housekeeping()
detailedLoop()
endOfJob()
Stop
housekeeping()
output "Enter account number: "
input acctNum
output "Enter customer's name: "
input custName
output "Enter purchase price: "
input purchasePrice
return
detailedLoop()
output "Customer Name: ", custName
output "Account Number: ", acctNum
monthlyPayment = purchasePrice / 12
for count = 1 to 12
output "Payment Number ", count, ": $" , monthlyPayment
end for
return
endOfJob()
output " Customer payments Done!! "
return
Step 2 of 2
Why don’t you like this exercise?
Other