Notizen
Selection Iteration Datatypes
Inhalt der Notizen (1)
Seite 1
Notes
An Algorithm is a finite set of instructions to solve a problem or complete a task.
Algorithms can be written in Structured English, Pseudocode and in Flow charts.
Selection
Selection allows your program to make choices according to criteria.
Selection e.g
Is user>15 years
if yes - They can watch film
if not - no film
Iteration
Loops are used to repeat program instruction until a condition is met
Loop e.g
Enter Password
Loop Until
Correct password is entered
Data types
integer - Number without decimals (Whole Numbers)
real/float - Number with decimals (Numbers with Fractional parts)
Boolean - True or False, Yes or no
Character - Letters used
String - Words used by “Speech marks”