
December 13th, 2012, 12:02 PM
|
 |
Contributing User
|
|
|
|
I think your flowchart is wrong. If the circles are correct please mark them more carefully, one should be LABEL and the other GOTO . Flowcharts seem outdated since the goto lost favor, except at the assembly level, a lot of years ago. I'd do it like this, without testing there might be an "off-by-1" error. If there's a prefered direction orientation of branch diamonds I ignored it. I deleberately arranged the vertical alignment of START and STOP.
According to
http://www.google.com/imgres?imgurl=http://www.wiley.com/college/busin/icmis/oakman/outline/chap05/images/f5_02.gif&imgrefurl=http://www.wiley.com/college/busin/icmis/oakman/outline/chap05/slides/symbols.htm&h=388&w=450&sz=54&tbnid=ZGbPYpBizsz0qM:&tbnh=86&tbnw=100&zoom=1&usg=__w3QBXCPKRDA6SdvE1fJVguY-Zqo=&docid=-rLfUVMfOA1P8M&hl=en&sa=X&ei=PQ7KUMn0LIra0QHx04GoBg&ved=0CEcQ9QEwBA&dur=1985
Code:
---I'm oval------|
--| ----|
-| Start count in- --|
-| between 79 and 463 \
|- by 2. |-
| |--
|- --
\------------------/
|
|
V
┌──────────────────────────────┐
│ │
│ n = 79 │
│ │
└──────────────────────────────┘
|
|<---------------------------------------\
V ------
/\ |----
/ \ \-------
/ \ |-------
/ \ \--
/ \ |
/ n<(463-2)\-------YES-------------+ |-
\ ? / | |
\ / | |--
\ / V |
\ / ┌──────────────────────────────┐ -|
\ / │ │ |
\/ │ n += 2 │ |
| │ │ |
| └──────────────────────────────┘ |
N | -|
O | |
| V /
| /─────────────────────────────/ |
| / / /
| / / |
| / display n / -|
\ / / |
| / / -|
| /─────────────────────────────/ -|
-- | -/
\| -| --|
| | ---/
| ----\ ------/
| --------------|
|
|
|
|
|
\
|
V
---I'm oval------|
--| ----|
-| DONE! --|
-| \
|- |-
| |--
|- --
\------------------/
__________________
[code] Code tags[/code] are essential for python code!
|