The following debugging assignment contains a flowchart that contains syntax and/or logical errors. Examine the flowchart and then find and correct all the bugs. Use Draw.io to draw your corrected flowchart. Save your corrected flowchart as a drawio file (Use the Save As option in Drawio). Export your flowchart as a JPG file (Export JPG option in Drawio). Insert the picture (JPG file saved in the step above) in the space provided below:
Debugging Exercise 3
Program gets student names continuously. If "XXX" is entered, then the cache student quiz scores are entered until "0" is entered. Then, three student names and their total scores are displayed.
Declarations:
- String Scene
- String QUIT
- Integer QUIT_SCORE
- Integer total
Housekeeping:
- Output: Please enter name (QUIT to quit)
- Input: name
Housekeeping:
- Function: main
- Begin
- While QUIT is not equal to "QUIT"
- Input: name
- If name is equal to "QUIT"
- End of Job
- Else
- Output: Job complete
- Input: score
- total Score = total Score + score
- Output: Quit or continue?
- Input: QUIT
- Output: Name: [name], Score: [total Score]
- Return