Exercise 2: Describing a Simple IF/ELSE Flowchart in Words — Possible Solution ==================================================================== THE FIVE SHAPES, IN ORDER ------------------------------ 1. START TERMINAL (oval): labeled "Start". This is the single entry point of the flowchart, per this chapter's own symbol table (ovals mark the algorithm's own boundaries). 2. DECISION (diamond): labeled "x < 0?". An arrow flows from the Start oval directly into this diamond. Per this chapter's own table, diamonds correspond to IF/THEN/ELSE branching - this single diamond represents the entire IF x < 0 THEN ... ELSE ... ENDIF structure, with two arrows leaving it. 3a. OUTPUT (parallelogram), reached via the diamond's "Yes" branch: labeled "Display 'negative'". This corresponds to the THEN branch's own DISPLAY "negative" statement. 3b. OUTPUT (parallelogram), reached via the diamond's "No" branch: labeled "Display 'non-negative'". This corresponds to the ELSE branch's own DISPLAY "non-negative" statement. 4. END TERMINAL (oval): labeled "End". Both output parallelograms (3a and 3b) have an arrow flowing into this single End oval, converging the two branches back into one exit point. WHY THIS LAYOUT IS CORRECT ------------------------------ This uses exactly the five symbols this chapter's own table defines, with each used for its correct purpose: one Start oval, one Decision diamond (since there is exactly one branching condition, x < 0), two Output parallelograms (one per possible outcome, since DISPLAY is an output operation), and one End oval that both branches converge into, since both possible outcomes represent the algorithm finishing after a single message is displayed. WHY THIS WORKS AS AN ANSWER ------------------------------ The description maps each shape directly and explicitly to the exact pseudocode construct it represents (the diamond to IF/THEN/ELSE, each parallelogram to its own DISPLAY statement), uses only the five symbols this chapter defined rather than inventing new ones, and correctly shows the two branches converging into a single End terminal rather than leaving the diagram with two disconnected endings.