Pseudo Code

*****************
Last edited on
Pseudo code is a mix of English and code. I'm seeing a lot of English but little or no code.
Saying "add up 10 items. divide by 10" won't suffice. write down how you will do this.
for example:

SUM = 0
LOOP counter FROM 0 TO 10
SUM = SUM + price[counter]
ENDLOOP
AVERAGE = SUM / 10

putting this into C++ code is a lot easier than just plain English

Check out the next link
http://www.cs.cornell.edu/Courses/cs482/2003su/handouts/pseudocode.pdf

pay attention to point 4 in the pdf and not so much to point 3 if you're just starting out.
just try to find a comfortable balance
Topic archived. No new replies allowed.