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...
icon
Related questions
Question

I need a hierarchy chart drawn of this flowchart please someone help

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.
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.
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Concept of Flowchart
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT