Provide a pseudocode and a flow chart for 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.
Provide a pseudocode and a flow chart for 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. The application should execute continuously for any number of customers until a sentinel value is supplied for the account number.
Flowchart
START
num account
string name
num s
num charges = 0.0125
num balance
balance = price
i = 1
InputDetails()
OutputDetails()
STOP
InputDeatils()
output "ENTER ACCOUNT NUMBER"
input account_number
output"Enter purchase price"
input price
output "Enter customer name"
input name
return
checkBalance()
if balance == 25 OR balance<25
output "customer can pay off the account"
else
if balance>25 then
balance=balance + balance * charges
end if
return
calculate_Balance()
balance = balance + balance * 0.07
return
OutputDetails()
output "ACCOUNT NUMBER:" ,account_number
output " CUSTOMER NAME:" ,name
while i <= 12
calculate_Balance()
checkBalance()
output " PROJECTED BALANCE IS:", balance
i = i + 1
end while
return
Solution-
For an application for Domicile Designs that retrieves sales transaction data, such as an account number, customer name, and purchase price, a pseudocode and a flow chart are provided. Each month, the business assesses 1.25 percent interest on the outstanding balance. Where we output the customer's expected balance for the following 12 months, followed by the account number and name. We presum that the customer can settle the account when the balance falls to $25 or less. Every month, 1.25 percent interest is added to the outstanding balance, and the consumer then pays a payment that is 7 percent of the outstanding balance. assuming the client doesn't make any more purchases. The programme should run constantly for any quantity of users. Until an account number sentinel value is provided, the application should run continuously for any number of users.
FlowChart-
The flowchart below takes information about the customer account number, customer name, and purchase price, calculates the balance due for each month, and then outputs the information.
START
num account
string name
num s
num charges = 0.0125
num balance
balance = price
i = 1
InputDetails()
OutputDetails()
STOP
Details such as the customer account number, customer name, and purchase amount are accepted in the following flowchart. It stands for the routine acceptDetails ()
Step by step
Solved in 2 steps with 4 images