Pseudo Code

Related Essays

Homework 1-Fortran Code
the equation above it and this time you solve for xn-1, hint why it is call back substitution PSEUDO-CODE ! Name the PROGRAM, make it less error prone with implicit
Object Oriented Development
design document. A design document can be written in either plain English or pseudo code. With plain English, I would just write out what each part of the program
Carrierselectie In De Telecommarkt
78*…*72*71 /10!= 1,6*10^12). Onze betrachting leek dus te idealistisch. We schreven in pseudo-code wat het programma (zie Bijlage 1) zou doen, maar verder dan dit
Microsoft Vs Linux
instead of being compiled into machine language, these programs are compiled into pseudo-code. These types of programming languages combine the best of interpreted

Submitted by to the category Science and Technology on 07/31/2011 02:12 PM

How to write pseudocode

There are six basic computer operations

1. A computer can receive information

Read (information from a file)

Get (information from the keyboard)

2. A computer can put out information

Write (information to a file)

Display (information to the screen)

3. A computer can perform arithmetic

Use actual mathematical symbols or the words for the symbols

Add number to total

Total = total + number

+, -, *, /

Calculate, Compute also used

4. A computer can assign a value to a piece of data

3 cases

to give data an initial value

Initialize, Set

To assign a value as a result of some processing

‘=’

* x = 5 + y

to keep a piece of information for later use

Save, Store

5. A computer can compare two piece of information and select one of two alternative actions

IF condition THEN

some action

ELSE

alternative action

ENDIF

6. A computer can repeat a group of actions

WHILE condition (is true)

some action

ENDWHILE

FOR a number of times

some action

ENDFOR

The Structure Theorem (and the pseudocode we use to represent the control structures)

It is possible to write any computer program by using only three basic control structures: sequence, selection, repetition.

Sequence

Execution of one step after another. This is represented as a sequence of pseudocode statements:

Statement 1

Statement 2

Statement 3

Example:

Read three numbers

Add three numbers

Display total of three numbers

Selection...

View Full Essay
Full Essay Stats...
  • Words: 471
  • Pages: 2
  • Views: 218

Join now to view this essay and thousands of others on PaperCamp.com. It's free Join Now!