Yes, I did look in the "Your Essential Guide to Algorithms" thread, but I want to be sure,
Are for loops accepted in pseudocode? they aren't in the specifications document, but most people seem to think they are valid. They definitely should be, as they're better than whiles if you can use both.
Also, is ELSEIF valid, or would you be encouraged to use a casewhere?
Do you always have to use BEGIN SUBPROGRAM LinearSearch(...) or can you jsut use BEGIN LinerSearch(...)
Can you just use > rather than 'greater than' and >= (or the actual hand written one) rather than 'greater than or equal to'. Also, is their a valid symbol for 'not equal to' e.g. '!=' ?
Finally, are 'AND' and 'OR' for an if statement (i.e. choice = light AND switch = on THEN...) keywords?
Thanks in advance, Elliot
Are for loops accepted in pseudocode? they aren't in the specifications document, but most people seem to think they are valid. They definitely should be, as they're better than whiles if you can use both.
Also, is ELSEIF valid, or would you be encouraged to use a casewhere?
Do you always have to use BEGIN SUBPROGRAM LinearSearch(...) or can you jsut use BEGIN LinerSearch(...)
Can you just use > rather than 'greater than' and >= (or the actual hand written one) rather than 'greater than or equal to'. Also, is their a valid symbol for 'not equal to' e.g. '!=' ?
Finally, are 'AND' and 'OR' for an if statement (i.e. choice = light AND switch = on THEN...) keywords?
Thanks in advance, Elliot