This document aims to teach new programmers the ins and outs of pseudo code. It will better the understanding of both new and old programmers as it includes simple and precise statements describing each one. It includes accurate descriptions of variables, arrays, comments, conditional statements, loops, input, output, functions, and procedures.
Definition
“a notation resembling a simplified programming language, used in program design.” https://www.google.ae/#q=pseudo+code+definition VARIABLES
A variable is used as a storage location for values and unknown quantities. It can be used is used to reference the stored value. The name and content are separate this allows the name to be used independently but still keeping the value exact. This is important as the value might change during the course of program execution.
Data Type
Description
Integer
An integer is a whole number.
E.g. -2, -1, 0, 1, 2
Boolean
A value which can have one of two possible values. These values are usually 0 (false) and 1 (true).
Real
A value which represents an approximation of a real number. Real numbers are not countable; computers cannot represent them exactly using a finite amount of information
Character
A unit of communication which is represented by numerical systems such as binary and hexadecimal. The values these systems represent are characters which are members of the alphanumerical system.
String
A sequence of numbers either as a literal constant or a variable.
Setting a Variable When setting a variable the variable name is written followed by the value, which is to be assigned to this variable.
Eg.
VariableName → Value
ARRAYS
An array is used to describe a collection of elements, each selected by one or more indices that can be computed at run time by the program. These collections are called array variables, array values, or simply array. Depending on the language array types may overlap other data types that describe aggregates of values such as lists and