I have no idea what i have to do and i need someone to write the pseudo code for [url=http://img84.imageshack.us/img84/5201/columnandrows.png]this Flow chart[/url]. It is a loop in a loop of a program that is meant to create a certain amount of Column and rows in an excel spreadsheet.
My asssignment is due tomorrow if i do not submit it i Fail my CERT IV :S
[Edited on 08.09.2011 4:37 PM PDT]
-
Thanks alot for this man. [quote]However, note that when you're using it to write actual code that you are still conforming to the variable name restrictions. For example, Col# isn't a valid variable name in Javascript.[/quote] Yes I am just using the "#" symbol in the pseudo code because it isn't fussy with that stuff. I didn't go to TAFE today, just so I could finish this off and submit it via email. I just hope I passed...
-
The ++ operator increments the variable by one. So... num = 1; num++; //num is now 2 Similarly, the -- operator decrements by one. num = 1; num--; //num is now 0 Note that you can use them in two different ways though - a post increment/decrement and a pre increment/decrement. A post increment/decrement will return the value, THEN increment/decrement it, while a pre increment/decrement will increment/decrement THEN return it. For example... num = 1; if(num++ == 2){ //Code here will never execute } num2 = 1; if(++num2 == 2){ //Code here will execute } Yes, that's Javascript in the example. Yes, your new pseudocode is correct (even though it would make sense to some kind of looping mechanism, but it's difficult to say if you should - the diagram needs more context). However, note that when you're using it to write actual code that you are still conforming to the variable name restrictions. For example, Col# isn't a valid variable name in Javascript.
-
[quote][b]Posted by:[/b] dazarobbo start columns = 1 rows = 1 if column number less than or equal to max rows output row number and columns cols++ else if row number less than or equal to max rows column = 1 row number = column number + 1 else end end if end if It's basically a loop within a loop (this isn't meant to be an exact copy of the above logic). [quote]for(var rows=0; rowsstart columns = 1 rows = 1 if column number less than or equal to max rows output row number and columns cols++ else if row number less than or equal to max rows column = 1 row number = column number + 1 else end end if end if It's basically a loop within a loop (this isn't meant to be an exact copy of the above logic). [quote]for(var rows=0; rows