PDA

View Full Version : loop diagramming tool?

mgsarch
Apr 16, 2008, 08:29 PM
Is there a simple tool that will help diagram a program? Like, visual pseudo-coding kind of thing.

I really want a little program that visualizes the data set created by for loops. I've never seen anything like that and I know it's pretty simple to set up a little spreadsheet but it would be so handy to have a little calculator that did that.

yeroen
Apr 16, 2008, 11:07 PM
you mean like a flow-chart?

mgsarch
Apr 17, 2008, 12:22 AM
you mean like a flow-chart?

no, not a chart at all. it would perform more like a spreadsheet.

eg.

FOR Calculator

Inputs: Starting Count Value, Test, Action

for (int i = 0; i < 100; i++) {
}

Output: value for i at t0,t1,t2,t3 ... etc.

This would be incredibly useful to me. I can easily output the numbers to the console of my IDE but it would be great to have a calculator that just did this and maybe saved to numbers/excel doc.

It would be helpful because then I don't risk stupid infinite loops or other mistakes I'm bound to make and it also is good for helping explain how loops work.

mgsarch
Apr 17, 2008, 12:22 AM
no, not a chart at all. it would perform more like a spreadsheet.

eg.

FOR Calculator

Inputs: Starting Count Value, Test, Action

for (int i = 0; i < 100; i++) {
}

Output: value for i at t0,t1,t2,t3 ... etc.

This would be incredibly useful to me. I can easily output the numbers to the console of my IDE but it would be great to have a calculator that just did this and maybe saved to numbers/excel doc.

It would be helpful because then I don't risk stupid infinite loops or other mistakes I'm bound to make and it also is good for helping explain how loops work.

It would be ridiculously easy to write this program, i guess i should just do it.

GeeYouEye
Apr 17, 2008, 01:27 AM
IIRC, there's actually a way to do this within Excel already, using macros.

mgsarch
Apr 17, 2008, 01:37 PM
IIRC, there's actually a way to do this within Excel already, using macros.

hmm, interesting, i'm going to search, i'll post if i find.

ty.