English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3 answers

Pseudo of course means "false". Pseudocode is something between text and computer code. It's more concise than text but is not capable of being executed by a computer.

I don't believe there's any standardized approcach to writing pseudocode. There's no grammar or syntax as with a computer language. You just write the steps you plan on having the code follow as completely and unambigously as possible.

An example:

Read user's ATM card.

Validate card.

If valid
prompt for password
else
eject card
display "Invalid card"
end.

Validate password.


Repeat up to 3 times until valid:

If valid
display main menu
else
display "Invalid password, try again".

After 3 invalids:

Eject card.
Display "Please contact your bank".

2007-03-20 15:52:26 · answer #1 · answered by Anonymous · 0 0

Like said before; pseudocode in its intend just shows computer programming is based on elementary steps and instructions, not so abstract as a human verbal communication therefore there was no need to standardize or anyway formalize pseudocode.

You likely meant a beginner's programming book, saw such book onsale in a nearby Chapters.Indigo bookstore, it was part of the Dummies series and I skim through it for curiosity, surprised that it has BASIC compiler; all BASIC I know is interpreted.

2007-03-20 16:53:46 · answer #2 · answered by Andy T 7 · 0 0

Programmers use pseudocode in the same way that people use diagrams. Just like there's no single standard for diagrams, there's not a specific language known as Pseudocode.

2007-03-20 16:13:50 · answer #3 · answered by Super J Dynamite 2 · 0 0

fedest.com, questions and answers