Find the errors and circle them and explain why they need to be changed

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Find the errors and circle them and explain why they need to be changed 

The image illustrates a flowchart for a program designed to retrieve student names and quiz scores. The program continues to prompt for student names until "XXX" is entered to quit. For each student, quiz scores are entered until a score of 0 is specified. Finally, the cumulative score for each student is displayed.

### Flowchart Explanation:

1. **Start Node:**
   - The process begins here.

2. **Declarations:**
   - Variables are defined:
     - `string name`
     - `num score`
     - `string QUIT = “XXX”`
     - `num QUIT_SCORE = 0`
     - `num total`

3. **Housekeeping Process:**
   - Outputs the message: “Please enter name or XXX to quit.”
   - Inputs a student's name into the variable `name`.

4. **Decision Node:**
   - Checks whether `name` is not equal to `QUIT` (XXX).
   - **Yes Path:** If true, continues to detail loop.
   - **No Path:** If false, proceeds to end of job process.

5. **Detail Loop Process:**
   - Actions that involve entering quiz scores and calculating totals would occur here.

6. **End of Job Process:**
   - Outputs the message: “Job complete.”
   - Ends the process.

7. **Stop Node:**
   - The process terminates here.

This flowchart effectively outlines the logical sequence for entering and processing student names and scores, culminating in a display of results once all inputs have been processed or the quit condition is met.
Transcribed Image Text:The image illustrates a flowchart for a program designed to retrieve student names and quiz scores. The program continues to prompt for student names until "XXX" is entered to quit. For each student, quiz scores are entered until a score of 0 is specified. Finally, the cumulative score for each student is displayed. ### Flowchart Explanation: 1. **Start Node:** - The process begins here. 2. **Declarations:** - Variables are defined: - `string name` - `num score` - `string QUIT = “XXX”` - `num QUIT_SCORE = 0` - `num total` 3. **Housekeeping Process:** - Outputs the message: “Please enter name or XXX to quit.” - Inputs a student's name into the variable `name`. 4. **Decision Node:** - Checks whether `name` is not equal to `QUIT` (XXX). - **Yes Path:** If true, continues to detail loop. - **No Path:** If false, proceeds to end of job process. 5. **Detail Loop Process:** - Actions that involve entering quiz scores and calculating totals would occur here. 6. **End of Job Process:** - Outputs the message: “Job complete.” - Ends the process. 7. **Stop Node:** - The process terminates here. This flowchart effectively outlines the logical sequence for entering and processing student names and scores, culminating in a display of results once all inputs have been processed or the quit condition is met.
The flowchart represents a function called `detailLoop()` used to process scores. Below is a detailed transcription and explanation of each step in the flowchart:

1. **Start**: The process begins with the `detailLoop()` function.

2. **Output Prompt**: The system outputs the prompt, “Enter score or 0 to quit”.

3. **Input Score**: The user inputs a score.

4. **Decision Point (QUIT?)**:
   - Checks if the entered score equals 0.
   - If Yes: The flow moves to the output section with the total score.
   - If No: The process proceeds to update the total.

5. **Update Total**: The current score is added to the total using `total = total + score`.

6. **Loop Back**: After updating the total, the flow returns to the beginning, prompting the user to enter another score.

7. **Output Total Score**:
   - When a score of 0 is entered, the output displays the name followed by “Total score: ” and the accumulated score.

8. **End**: The function returns and concludes the operation.

This flowchart illustrates a looping mechanism for continuously collecting scores and accumulating their total until the user decides to quit by inputting 0.
Transcribed Image Text:The flowchart represents a function called `detailLoop()` used to process scores. Below is a detailed transcription and explanation of each step in the flowchart: 1. **Start**: The process begins with the `detailLoop()` function. 2. **Output Prompt**: The system outputs the prompt, “Enter score or 0 to quit”. 3. **Input Score**: The user inputs a score. 4. **Decision Point (QUIT?)**: - Checks if the entered score equals 0. - If Yes: The flow moves to the output section with the total score. - If No: The process proceeds to update the total. 5. **Update Total**: The current score is added to the total using `total = total + score`. 6. **Loop Back**: After updating the total, the flow returns to the beginning, prompting the user to enter another score. 7. **Output Total Score**: - When a score of 0 is entered, the output displays the name followed by “Total score: ” and the accumulated score. 8. **End**: The function returns and concludes the operation. This flowchart illustrates a looping mechanism for continuously collecting scores and accumulating their total until the user decides to quit by inputting 0.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY