# Week 3

:::{topic} Learning goals
- separate data and program logic for easier code maintainability
- use an array to represent a homogeneous sequence of data
  - explain the significance of arrays
- use `for` loops to repeat an action on array elements
- use `while` as control flow element
- differentiate the control flow elements `if-else`, `for`, `while`, `do-while` on a flowchart
- use and compare strings
- define and combine Boolean expressions
- convert an expression with the ternary conditional operator to an `if-else` statement
- differentiate between `scanf` and `fgets`
:::

:::{toctree}
:maxdepth: 1
week03/spare-parts-inventory-assistant
week03/blending-data-and-logic
week03/arrays
week03/strings-boolean-expressions
week03/ternary-operator-while
week03/for-loop
week03/reading-whole-lines
:::

:::{activity}
Write down what you have learned in the previous class.

Steps:
- 1 min write down.
- 2 min discuss in pairs and *expand* your lists.
:::

