Is there a pseudocode program out there?

wfbberzerker

Lifer
Apr 12, 2001
10,423
0
0
that would be hard to do, as you can't really have a program line by line pick out the meaning behind code.
 

Cattlegod

Diamond Member
May 22, 2001
8,687
1
0
not gonna happen. it would be quicker just to write the psuedo code for youself and turn it in, rather than finding a program to do it.
 

clarkey01

Diamond Member
Feb 4, 2004
3,419
1
0
I need to learn but I know java already ! I'd thought this would be easy, just need a guide, I have little or no material on the subject.
 

Injury

Lifer
Jul 19, 2004
13,066
2
81
Are you an idiot? Pseudo code is easy.

You just say what you need it to do.

For instance:

initialize height variable;
initialize width variable;
initialize area variable;


//start of math

Prompt for width;
input width;
Prompt for length;
input height;

area = length times height;

display area;

prompt for another calculation;
if yes goto start of math
if no end;




Just say what you need it to do... if it's more complex you might say like "run check for data subroutine" and have a seperate page of psuedo code for that sub routine...

This is easy stuff. Imagine you are talking to someone that is having trouble with their java code over the phone... you wouldn't speak in code because they'd get confused, but you'd ask if they did things like intialize variables and create loops...

You put it in with some syntax, like put parenthesis and brackets where you will probably need them in the code, but it's language that a moron could understand whether they know java or not.
 

boggsie

Platinum Member
Mar 31, 2000
2,326
1
81
You need more comments in there, as that will be pretty difficult if I have to go in to make a change/update/fix!

;)

Originally posted by: Injury
Are you an idiot? Pseudo code is easy.

You just say what you need it to do.

For instance:

initialize height variable;
initialize width variable;
initialize area variable;


//start of math

Prompt for width;
input width;
Prompt for length;
input height;

area = length times height;

display area;

prompt for another calculation;
if yes goto start of math
if no end;




Just say what you need it to do... if it's more complex you might say like "run check for data subroutine" and have a seperate page of psuedo code for that sub routine...

This is easy stuff. Imagine you are talking to someone that is having trouble with their java code over the phone... you wouldn't speak in code because they'd get confused, but you'd ask if they did things like intialize variables and create loops...

You put it in with some syntax, like put parenthesis and brackets where you will probably need them in the code, but it's language that a moron could understand whether they know java or not.

 
Jun 6, 2005
194
0
0
i dont see how you can have issues with writing pseudo code if you can write actual code with correct syntax and semantics. pseudo code is just like programming but more generalized and more natural language based

i.e.

i = 0
while (i < num) {
...
}

(assign) i <- 0
WHILE i is less than num DO...
 

SaturnX

Diamond Member
Jul 16, 2000
3,415
0
76
Originally posted by: clarkey01
I need to learn but I know java already ! I'd thought this would be easy, just need a guide, I have little or no material on the subject.

There isn't some universal means of writing pseudocode, like the example above, you just write your code with no language specific syntax, just explanations of what's going on. Very simple.

--Mark