Welcome to Dream.In.Code
Become an Expert!

Join 149,602 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,901 people online right now. Registration is fast and FREE... Join Now!




how to draw flowchart from pseudocode

 
Reply to this topicStart new topic

how to draw flowchart from pseudocode

rins_p6
6 Sep, 2007 - 10:44 AM
Post #1

New D.I.C Head
*

Joined: 6 Sep, 2007
Posts: 5


My Contributions
hello everyone,
i need little help here
i have pseudocode and i did started making flowchart but i havnt done it before so can anyone tell me how do igo ahead
here is my code
CODE

start
  get numberLaps
  get lapLength
  fuelTotal = 0
  distanceTravel = 0
  while numberLaps <> 0
       get amountFuelUsed
       distanceTravel = distanceTravel + lapLength
       fuelTotal = fuelTotal + amountFuel
       numberLaps = numberLaps - 1
  endwhile
  averageMPG = distanceTravel / fuelTotal
  print averageMPG
stop



and here is the flowchart i have doneAttached File  Racing_day.doc ( 23.5k ) Number of downloads: 171


please can anyone help me for this wub.gif smile.gif

This post has been edited by rins_p6: 6 Sep, 2007 - 10:45 AM
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: How To Draw Flowchart From Pseudocode
6 Sep, 2007 - 01:05 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,655



Thanked: 313 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Yup you are on the right track. You are going to have two more boxes, one for each variable being set and then in your while loop you are going to have a diamond with the condition numberLaps <> 0 in it. You will have a line down to a series of boxes for your calculations. After your last calculation draw an arrow to the side and back up and pointing to the arrow that is going back down into your diamond. Out the side of the diamond you are going to draw an arrow to the side and down to the first box after the loop (where you calculate averageMPG). This one represents when the condition is false (that is when your numberLaps DOES equal zero).

Example...

IPB Image

Where you have your sequences you are going to have multiple boxes for your calculations. Then after they are all done, back to the top of the loop.

decap.gif
User is online!Profile CardPM
+Quote Post

rins_p6
RE: How To Draw Flowchart From Pseudocode
7 Sep, 2007 - 02:52 PM
Post #3

New D.I.C Head
*

Joined: 6 Sep, 2007
Posts: 5


My Contributions
and one more question how can u take a screen shot....like u just did down there .......i want to do it for VB.....see if u can help thanx for ur this help ....i really appreciate it


QUOTE(Martyr2 @ 6 Sep, 2007 - 02:05 PM) *

Yup you are on the right track. You are going to have two more boxes, one for each variable being set and then in your while loop you are going to have a diamond with the condition numberLaps <> 0 in it. You will have a line down to a series of boxes for your calculations. After your last calculation draw an arrow to the side and back up and pointing to the arrow that is going back down into your diamond. Out the side of the diamond you are going to draw an arrow to the side and down to the first box after the loop (where you calculate averageMPG). This one represents when the condition is false (that is when your numberLaps DOES equal zero).

Example...

IPB Image

Where you have your sequences you are going to have multiple boxes for your calculations. Then after they are all done, back to the top of the loop.

decap.gif


User is offlineProfile CardPM
+Quote Post

Martyr2
RE: How To Draw Flowchart From Pseudocode
7 Sep, 2007 - 07:15 PM
Post #4

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,655



Thanked: 313 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Hit the printscreen button on your keyboard, go to a graphics program like paint and hit ctrl +v to paste it. Then save it to a web site somewhere and link it here through the use of the image icon (the icon with a little tree on it in this editor). Then specify the URL to the picture and you are good to go.

smile.gif
User is online!Profile CardPM
+Quote Post

rins_p6
RE: How To Draw Flowchart From Pseudocode
9 Sep, 2007 - 05:03 PM
Post #5

New D.I.C Head
*

Joined: 6 Sep, 2007
Posts: 5


My Contributions
thank you so much....i didnt even no abt tht key.....wow gr8 thnx......


QUOTE(Martyr2 @ 7 Sep, 2007 - 08:15 PM) *

Hit the printscreen button on your keyboard, go to a graphics program like paint and hit ctrl +v to paste it. Then save it to a web site somewhere and link it here through the use of the image icon (the icon with a little tree on it in this editor). Then specify the URL to the picture and you are good to go.

smile.gif


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 11:50PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month