217k views
2 votes
Draw the appropriate flowchart symbols for each

of the following statement
I. Accept Variable num
II. Is num > 0 ?
III. Display num
IV. Num = num + 1
V. Stop

User Sorens
by
8.7k points

1 Answer

3 votes

Here are the appropriate flowchart symbols for each of the statements:

I. Accept Variable num: Parallelogram with "Input/Output" written inside

II. Is num > 0 ?: Diamond with "Yes" and "No" written on either side

III. Display num: Parallelogram with "Input/Output" written inside

IV. Num = num + 1: Rectangle with "Process" written inside

V. Stop: Oval with "Terminator" or "End" written inside

Putting all these symbols together, the flowchart would look like this:

+--------------+

| |

+---->+ Input/Output |

| | |

| +------+-------+

| |

| v

| +-----+-----+

| | |

| | Diamond |

| | |

| +-+-----+---+

| | Yes |

| v v

| +-------+---+

| | |

| | Input/Output |

| | |

| +-------+---+

| |

| v

| +-------+-+

| | |

| | Process |

| | |

| +---------+

| |

| v

| +-------+-+

| | |

| | End |

| | |

| +---------+

|

+--------------+

User Carra
by
8.9k points