Classroom Notes: 1.1 Planning flowcharts
Q1) What is Computational Thinking?
Computational thinking is a way of solving problems step by step, using a computer.
Q2) What are the steps involved in computational thinking?
Steps in Computational Thinking:
In short: We break, find, focus, and plan to solve problems like a computer.
- Decomposition - Break a big problem into smaller parts.
- Pattern Recognition - Find similarities or repeated ideas.
- Abstraction - Focus only on the important details, ignore the rest.
- Algorithm Design - Create clear step-by-step instructions to solve the problem.
In short: We break, find, focus, and plan to solve problems like a computer.
Q3) What is an Algorithm?
An algorithm is a clear set of step by step instructions to solve a problem listed in a proper order.
Q4) What is a Flowchart?
A flowchart is a diagram that shows steps of a process using shapes and arrows.
Q5) List the shapes of flowchart and what they represent:
| Shape | Representation |
|---|---|
| Oval (Ellipse) | Start or End |
| Rectangle | Process or Action |
| Diamond | Decision (Yes/No) |
| Parallelogram | Input or Output |
| Arrows | Indicate the flow |
In short: Computational thinking helps us plan, algorithms give steps, and flowcharts show those steps with shapes.
Q6) Please convert the below algorithms into flowcharts:
Algorithm 1: Make a Glass of Lemon Juice
- Start
- Take a glass
- Add water
- Add lemon juice
- Add sugar
- Stir well
- Drink
- End
Flowchart 1: Make a Glass of Lemon Juice
Algorithm 2: Find the Largest of Two Numbers
- Start
- Read two numbers (A and B)
- If A > B Print A is largest
- Else Print B is largest
- End
Flowchart 2: Find the Largest of Two Numbers