17. Flowchart


Answer:

You could first divide the group into:

    1. children
    2. adults

And then divide the adults into:

    1. male adults
    2. female adults

Flowchart

We wish to perform two splits to divide integers into negative, zero, and positive. First zero and positives are split from the negatives, and then that group is further split.

ThreeWay

The flowchart shows how this works. One decision is nested inside the false branch of the first decision. A negative integer is correctly detected by the first decision. But a zero or positive integer goes through another decision to pick the correct category for it.

Question 17:

Are there other ways to do this?