#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    6
    Rep Power
    0

    Cant undestand flowchart !!!


    I have a quiz tomorow ebout flowchart.
    But i cant undestand how to make them.
    I have this qustion:
    Write a program to count in-between 79 and 463 by 2s

    Please help me !!!
    how do i make flowshart

    Thank for helpers

    imageshack.us/photo/my-images/404/flowchart1.png/

    is it corect ?
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,709
    Rep Power
    480
    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=__w3QBXCPKRDA6SdvE1f JVguY-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 and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo