Mindmap
Algoriyhmic constructs
Inhalt der Mindmap
Algoriyhmic constructs
sequence
- A sequence is a number of instructions that are processed one after the other.
- Pseudocode Example: DECLARE count SET count TO 1 OUTPUT the value of count
- A sequence is a number of instructions that are processed one after the other.
assignment
- deignment is used to store the value of an expression into a variable.
- Pseudocode Example: DECLARE studentName SET studentName TO Bob
- deignment is used to store the value of an expression into a variable.
iteraton
- Iteration is also called repetition and is used when something is repeated over and over again, so anything where the program goes round in a loop. Typically programmed using code such as WHILE, REPEAT and FOR statements. See the example of Pseudocode using a FOR loop to write out numbers 1 to 10:
- Pseudocode Example: DECLARE count SET count TO 0 FOR count = 1 to 10 OUTPUT count END FOR OUTPUT ‘finished’
- Iteration is also called repetition and is used when something is repeated over and over again, so anything where the program goes round in a loop. Typically programmed using code such as WHILE, REPEAT and FOR statements. See the example of Pseudocode using a FOR loop to write out numbers 1 to 10:
modularisation
- Modularisation is used to reduce the complexity of a system by deconstructing it into independent units or modules.
- Pseudocode Example: FUNCTION delivery_charge CALCULATE totalCost IF (totalCost > $10) THEN OUTPUT ‘no delivery charge’ ELSE OUTPUT ‘$5 delivery charge’ ENDIF OUTPUT ‘thankyou’ END FUNCTION
- Modularisation is used to reduce the complexity of a system by deconstructing it into independent units or modules.
Selection and Condition (IF, IF ELSE)
- A selection statement uses a condition to select, or determine, the next line of the program that is to be executed.
- Pseudocode Example: CALCULATE totalCost IF (totalCost > $10) THEN OUTPUT 'no delivery charge' ELSE OUTPUT '$5 delivery charge' ENDIF OUTPUT 'thankyou'
- A selection statement uses a condition to select, or determine, the next line of the program that is to be executed.
Informationen
- Beschreibung
- Mindmap am Algoriyhmic constructs, erstellt von Fatima Palasara am 01/05/2026.
- Erstellt von
- Fatima Palasara
- Aufrufe
- 0
- Bewertung