Blogging

What are the three parts of an algorithm?

  • Sequencing, selection, and iteration.

  • Every algorithm can be created by a mixture of sequencing, selection, and iteration

What is a Sequence?

  • A sequence is the order of how to do something to achieve a result, similarly to how you follow the instructions.

What is an algorithms?

  • An algorithm is a finite set of instruction that accomplish a task, it can be expressed by natural language, diagrams, and various other ways.

What is a Iteration

  • An iteration is a loop and doing something again until a condition is met..

What is a Selection?

  • A selection allows an algorithm to make a decision based on if a condition is met.

What is a Substring?

  • A substring is part of an existing string

Personal Notes & Topics to Study

  • Conditions within Iterations
  • Sequencing
  • Usage of SubStrings EX: print(string[5:10])
num1 = 5
num2 = num1 * 3
num3 = num2 / num1 * (9 % 2) * 4
result = (num3 % num1 + num2) % num3 * 3 / 5
print(result)
3.0
  • You will describe the different parts of an algorithm, sequencing, selection, and iteration in the image below.

  • sequencing: 1, 2

  • Selection: 3, 5
  • Iteration: 4

CrossWord Puzzle Hack ANSWERS

  1. Recursive

  2. Selection

  3. Sequence