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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

 

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

    

 

 

 

 

 

 

 

Expert Solution
Step 1

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

Computer Science homework question answer, step 1, image 1

Details such as the customer account number, customer name, and purchase amount are accepted in the following flowchart. It stands for the routine acceptDetails ()

Computer Science homework question answer, step 1, image 2

Computer Science homework question answer, step 1, image 3

 

steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Structure chart
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education