0

hi,

can any one please explain to me that what are the differences and the relationship among algorithm, program and pseudocode. thanks

3
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by kxh29
0

pseudo code is a DESCRIPTION based on an algorythm. It is used so that programmers can see what is happening. It is good as it allows programmers to understand tasks at a glance

i.e.

' VB CODE
Dim str as string = "heya"
Dim str2 as string = "oh no!"

if str = str2 then
    msgbox("they equal each other")
else
    msgbox("they are not equal")
end if

'pseudocode

[B]if[/B] string 1 equals string 2
    show message box stating both are equal
[B]else[/B]
    show message box stating they are not
[B]end if[/B]

the main reason for using it is during analysis and design stages of creating an application so the designer can work out what is required to happen and create a logical order before attempting to code the given code.

0

An algorithm is a set of instructions, usually performing a specialized function within an application.

The psuedo-code is english-like statements used in the formulation of source-code.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.