Question:

Flow Chart.. I have problem drawing it...

by  |  earlier

0 LIKES UnLike

Given the following pseudocode, draw a complete flowchart:

read x

read y

sum = 0

while (x <= y) {

sum = sum x

x = x 1

}

display sum

============

I did a little bit then was stucked... ==

Please help me on this... explain too..So I can understand and do other similar questions..

To draw it out, you can use paint..

This is my work... =="

http://mymathsbloggie.blogspot.com/

 Tags:

   Report

2 ANSWERS


  1. Add 2 boxes for for &quot;Read Y&quot; and &quot;Sum=0&quot;

    Use a diamond box with the question &quot;X&lt;=y?&quot; with two branches.

    One branch (the &quot;YES&quot; branch) goes to a box directly below with the two instructions (2 boxes) to sum+x and add 1 to x.

    The output of this box goes back up to the input of your diamond box.

    The OTHER output of your diamond box (the &quot;NO&quot; branch) goes to a box to the right, &quot;Display Sum&quot;, then goes to a small circle with &quot;END&quot; inside.

    Good luck.


  2. http://i31.photobucket.com/albums/c365/S...

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.