I need a hierarchy chart drawn of this flowchart please someone help
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section3.1: Assignment Operations
Problem 6E: (Numerical) Write an assignment statement to calculate the nth term in an arithmetic sequence. This...
Related questions
Question
I need a hierarchy chart drawn of this flowchart please someone help

Transcribed Image Text:This program will input a salesperson’s name followed by the first sale amount and then the number of sales as indicated below for a used car dealership. Use a while loop to process the salespersons. Salespersons may have a different number of sales. Use a for loop to process the sales for each salesperson. The range for valid sales amounts is $1 through $25000. After all the sales have been entered for a salesperson, three results will be displayed: average sale amount; highest sale; and lowest sale. Use a function to process each salesperson and display their results using dollars and cents including a dollar sign. At the end of the program, display the total number of salespersons (it might not always be 4 as shown in the test data). Study the Runner’s Times example problem in the Homework 5 folder. It contains both logic diagrams and the matching Python program which illustrate concepts you will find very useful for solving this problem.
Using the following test data for salespersons, calculate the average, highest, and lowest sales for each.
![### Educational Website Transcription and Diagram Explanation
---
**Flowchart for Processing Salesperson Data**
This flowchart represents a program designed to process and analyze sales data for a salesperson. The flowchart is divided into distinct steps and decision points. Here's the breakdown:
1. **Start: Process_salesperson()**
- The process begins with obtaining the salesperson’s name via user input.
2. **Input: Sales Data**
- Prompt for the first sale amount. If the input is less than 0 or greater than 25000, an error message is displayed, and the user is prompted to re-enter a correct amount.
3. **Initialize Sales Variables**
- Initialize total, lowest, and highest sales with the first sale amount.
4. **Number of Sales**
- Prompt the user for the total number of sales the salesperson has. Convert this input into an integer.
5. **Iterate Through Sales**
- For the given number of sales:
- Prompt for each sale amount. Again, check that it is within the correct range [0, 25000]. If invalid, prompt again.
- Add each valid sale to the total sales.
- Update the highest and lowest sales as necessary.
6. **Calculate Average Sale**
- Once sales input is complete, calculate the average sale by dividing total sales by the number of sales.
7. **Output Results**
- Print out the calculated average, along with the highest sale obtained.
8. **Return**
- The process ends, returning to the initial state or stopping the execution.
---
### Diagram Components
- **Shapes and Symbols:**
- **Rounded Rectangle (Start/End):** Indicates the start and end of the process.
- **Parallelogram (Input/Output):** Represents inputting data and displaying output.
- **Diamond (Decision):** Shows decision points requiring true/false evaluation.
- **Rectangle (Process):** Implies processes like calculations or operations.
- **Connecting Arrows:**
- Directional flow is guided by arrows connecting various shapes, illustrating the sequence of operations and branching paths based on conditional evaluations.
This flowchart effectively captures the steps involved in processing and analyzing sales data for a salesperson, ensuring data integrity through range checks and providing meaningful output with average and peak sales figures.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F78d57d79-5bdd-470b-8043-f6ada2e59fe2%2Fc5452df6-a863-464e-9fbd-5359d4861f6f%2Fqi866fj_processed.png&w=3840&q=75)
Transcribed Image Text:### Educational Website Transcription and Diagram Explanation
---
**Flowchart for Processing Salesperson Data**
This flowchart represents a program designed to process and analyze sales data for a salesperson. The flowchart is divided into distinct steps and decision points. Here's the breakdown:
1. **Start: Process_salesperson()**
- The process begins with obtaining the salesperson’s name via user input.
2. **Input: Sales Data**
- Prompt for the first sale amount. If the input is less than 0 or greater than 25000, an error message is displayed, and the user is prompted to re-enter a correct amount.
3. **Initialize Sales Variables**
- Initialize total, lowest, and highest sales with the first sale amount.
4. **Number of Sales**
- Prompt the user for the total number of sales the salesperson has. Convert this input into an integer.
5. **Iterate Through Sales**
- For the given number of sales:
- Prompt for each sale amount. Again, check that it is within the correct range [0, 25000]. If invalid, prompt again.
- Add each valid sale to the total sales.
- Update the highest and lowest sales as necessary.
6. **Calculate Average Sale**
- Once sales input is complete, calculate the average sale by dividing total sales by the number of sales.
7. **Output Results**
- Print out the calculated average, along with the highest sale obtained.
8. **Return**
- The process ends, returning to the initial state or stopping the execution.
---
### Diagram Components
- **Shapes and Symbols:**
- **Rounded Rectangle (Start/End):** Indicates the start and end of the process.
- **Parallelogram (Input/Output):** Represents inputting data and displaying output.
- **Diamond (Decision):** Shows decision points requiring true/false evaluation.
- **Rectangle (Process):** Implies processes like calculations or operations.
- **Connecting Arrows:**
- Directional flow is guided by arrows connecting various shapes, illustrating the sequence of operations and branching paths based on conditional evaluations.
This flowchart effectively captures the steps involved in processing and analyzing sales data for a salesperson, ensuring data integrity through range checks and providing meaningful output with average and peak sales figures.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images

Knowledge Booster
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.Recommended textbooks for you

C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning

C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning

Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning