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

as pertaining to computer algorithms.

2006-12-22 11:10:18 · 3 answers · asked by Adewale 1 in Computers & Internet Programming & Design

3 answers

pseudocode is just a written step by step description of what you want your program to do. It can start out as an outline form with real general descriptions and latter evolve into more detailed sequences and steps.

2006-12-22 11:14:45 · answer #1 · answered by MarkG 7 · 0 0

Psuedocode is just a hypothetical code language, using terms that pertain to all programming languages. So say you are a PHP programmer, and your friend is an CFML programmer. You want him to create a loop that connects to a database over and over. This is what you would show/tell him:

Start program
Start loop
Create database connection
Withdraw database information
Close database connection
End loop
End program

This way, he can understand what you're trying to tell him, without using PHP only code. The above is my style of writing pseudocode, but you can write it in any way you want, using any dialect. There is no set way of writing pseudocode.

2006-12-22 19:29:47 · answer #2 · answered by Alex V 3 · 0 0

pseudocode is just plain english statements for thing you want to accomplish. For example:

begin loop
fetch next employee record
if not found, exit loop
if employee is full time and active,
update record, set salary = salary * 1.05
end loop

The above could be considered pseudocode. You can take the above and write code from it using whatever language you need.

2006-12-22 19:15:57 · answer #3 · answered by BigRez 6 · 0 0

fedest.com, questions and answers