Pseudo Code Examples 2

Pseudo Code Examples 2 - Pseudo Code Examples Formal pseudo...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Pseudo Code Examples Formal pseudo code is used to clearly pin down the work that needs to be done when programming. Although some use an informal "list of steps", it is often useful to use formal pseudo code for more complex algorithms, since it is "sort of code" without the riggers of formal programming languages.The following is not complete and is not meant to be complete. It is simply the forms of pseudo code that would be used in a introduction to programming. It contains the sequential structure, the decision structure and the iteration or loop structure. To begin the program code START program name To end the program code STOP The capitalized START and STOP are pseudo code words. They are in all capitals to draw attention to them. In this example the pseudo code words are also bold to draw even more attention. In practice bold letters are not required but I like them :). The sequential structure is simply the statement that is required to explain the step. For instance to express a formula code
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Pseudo Code Examples 2 - Pseudo Code Examples Formal pseudo...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online