Author Topic: [computer] how to do pseudocode questi0n? :(  (Read 3522 times)

Offline rickyponting66

  • SF Immigrant
  • **
  • Posts: 87
  • Reputation: 181
  • Gender: Male
[computer] how to do pseudocode questi0n? :(
« on: May 19, 2011, 08:48:27 pm »
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.
I'm a Bee.. I'm a Bee!

Offline Dasith

  • SF Senior Citizen
  • *****
  • Posts: 919
  • Reputation: 65535
  • Gender: Male
Re: [computer] how to do pseudocode questi0n? :(
« Reply #1 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 !
I would love to change the world, but they won't give me the source code. ;)

Offline rickyponting66

  • SF Immigrant
  • **
  • Posts: 87
  • Reputation: 181
  • Gender: Male
Re: [computer] how to do pseudocode questi0n? :(
« Reply #2 on: May 20, 2011, 08:42:11 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 !

But i want a knowledge about its format and commands like loop, if command, etc...
I'm a Bee.. I'm a Bee!

Offline Dasith

  • SF Senior Citizen
  • *****
  • Posts: 919
  • Reputation: 65535
  • Gender: Male
Re: [computer] how to do pseudocode questi0n? :(
« Reply #3 on: May 20, 2011, 08:49:53 am »
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
I would love to change the world, but they won't give me the source code. ;)

Offline Dasith

  • SF Senior Citizen
  • *****
  • Posts: 919
  • Reputation: 65535
  • Gender: Male
Re: [computer] how to do pseudocode questi0n? :(
« Reply #4 on: May 20, 2011, 08:54:07 am »
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

« Last Edit: May 20, 2011, 08:56:45 am by Dasith »
I would love to change the world, but they won't give me the source code. ;)