Qualification > Queries

[computer] how to do pseudocode questi0n? :(

(1/1)

rickyponting66:
how to do a pseudocode c0de question? Whats the method... I dont know much abt it...
Can any one help in an easy way? Or provide comprehensîve n0tex that explain its construction.

Dasith:
theres no perticular meathod in phesudocode, u can describe your own soultion to the problem in any way you like,
but the sequence of steps shuld be right & logical for it to be a phesodocode !

rickyponting66:

--- Quote from: Dasith on May 20, 2011, 02:15:47 am ---theres no perticular meathod in phesudocode, u can describe your own soultion to the problem in any way you like,
but the sequence of steps shuld be right & logical for it to be a phesodocode !

--- End quote ---

But i want a knowledge about its format and commands like loop, if command, etc...

Dasith:
k generally the loops are while , for & reapeat untill (may vary from language to language)

while loop- It repeats a given sequence of instructions untill a condition/conditions are false
Repeat untill - repeats a given sequence untill the condition is true.
For next-Keeps reapeating untill it reaches the specified count, i.e as specified by programmer

Dasith:
if statement is usually like this.

If Condition true/false  Then
    Do these>....

else If Another condition True /fale Then
    Do these>....

it could keep on continuing untill u put (end IF)


Things would get a bit more complicated if u try to use If conditions inside another if condition
I.e nested IF

Same whith loops too
Loops inside loops are called nested loops

Navigation

[0] Message Index

Go to full version