Mapa mental
Algorithm Constructs
Conteúdo do mapa
Algorithm Constructs
Assignment
- Storing a value in a variable
- playerName = user Input
- Storing a value in a variable
Iteration
- For Loop
- Repeats a section of code for a given number of times
- For 10 times
- Repeats a section of code for a given number of times
- While Loop
- Repeats a section of code if a given condition is true or false
- IF damage is >=10 OUTPUT "Congratulations"
- Repeats a section of code if a given condition is true or false
- For Loop
Sequence
- Instructions processed one after another
- DECLARE then SET then OUTPUT
- Instructions processed one after another
Modularisation
- Assigning a function of code if a function is required to be played multiple times
- FUNCTION
- Minimises lines of code and repetitive code
- Assigning a function of code if a function is required to be played multiple times
Selection and Condition
- Tells the code to perform a specific function based on a condition and whether that condition is true or false.
- IF damage is <10 print "Unfortunately you have not made it to round two"
- Tells the code to perform a specific function based on a condition and whether that condition is true or false.
Informações
- Descrição
- Mapa Mental sobre Algorithm Constructs, criado por Pratham Patel em 29-04-2026.
- Criado por
- Pratham Patel
- Visualizações
- 0
- Avaliação