Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Programming Logic for Web Developers ยท Lesson 2 of 4

Thinking in Steps

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
2
Module 1 ยท Thinking in Steps

โฌ… Back to Course Outline

๐Ÿง  Module 1 โ€” Thinking in Steps

Programming Logic for Web Developers ยท Beginner Level ยท 2026


1. Module Introduction

Welcome to the very first module of Programming Logic for Web Developers. This is the start of an exciting journey. By the end, you will understand how programmers think. You will learn the secret behind every program, every app, and every website.

Have you ever followed a recipe to cook rice? Have you ever given directions to a stranger? Have you ever solved a maths problem step by step? If yes, then you already use logic. Logic is the art of thinking in clear, ordered steps.

Programming logic is simply using logic to tell a computer what to do. Computers are fast, but they are not clever. They cannot guess. They need clear steps. When you learn to give clear steps, you can control a computer.

In this module, you will learn what programming logic is. You will learn how to break a big problem into small steps. You will learn about algorithms, flowcharts, and pseudocode. Do not worry if these words sound strange. Every word will be explained in very simple language.

This module is written for beginners. You do not need to know any coding. You do not need a computer. You just need a curious mind. So grab a notebook, sit comfortably, and let us begin.

    YOUR LEARNING JOURNEY IN MODULE 1
    =================================

    [ Start ]
        |
        V
    What is Programming Logic?
        |
        V
    Thinking in Steps
        |
        V
    Algorithms
        |
        V
    Flowcharts
        |
        V
    Pseudocode
        |
        V
    Breaking Problems into Small Steps
        |
        V
    [ You can now think like a programmer! ]
    

Summary of the Introduction

This module introduces programming logic. You will learn how to think in clear steps. You will learn about algorithms, flowcharts, and pseudocode. Everything is explained in simple language with plenty of examples.


2. Learning Objectives

By the end of this module, you will be able to:

  1. Explain what programming logic means in your own words.
  2. Describe why computers need clear, ordered steps.
  3. Explain what an algorithm is and give examples.
  4. Draw a simple flowchart using basic symbols.
  5. Write simple pseudocode for a daily task.
  6. Break a big problem into small, easy steps.
  7. Spot the correct order of steps in a task.
  8. Identify mistakes when steps are out of order.
  9. Give examples of algorithms from real life, school, home, and Nigeria.
  10. Feel confident and curious to continue to Module 2.

Summary of Learning Objectives

You will learn what programming logic is, how to think in steps, how to write algorithms, how to draw flowcharts, and how to write pseudocode.


3. Warm-up Story โ€” Tunde and the Robot Helper

Tunde is a 12-year-old boy who lives in Ibadan. For his birthday, his uncle sent him a small robot. The robot was called RB-1. It could walk, talk, and do simple tasks.

Tunde was very excited. "RB-1, please bring me a cup of water," he said.

The robot stood still. It did not move.

"RB-1, bring me water!" Tunde said again, louder this time.

The robot blinked its lights. "I do not understand. Please give clear steps."

Tunde's mother laughed. "Tunde, the robot cannot guess. You must tell it exactly what to do, step by step."

So Tunde thought carefully. Then he said:

  1. Walk to the kitchen.
  2. Find the cupboard.
  3. Open the cupboard.
  4. Take a clean cup.
  5. Walk to the tap.
  6. Turn on the tap.
  7. Fill the cup with water.
  8. Turn off the tap.
  9. Walk back to me.
  10. Hand me the cup.

The robot followed each step. It walked to the kitchen. It opened the cupboard. It took a cup. It filled it with water. It walked back. It handed Tunde the cup.

"You did it!" Tunde shouted.

"Thank you," said RB-1. "Next time, remember: clear steps make everything possible."

Tunde learned a big lesson that day. Computers and robots are not clever on their own. They need clear, ordered steps. That is what programming logic is all about.

    TUNDE AND THE ROBOT
    ===================

    [ Tunde says: "Bring water" ]
              |
              V
    [ Robot does not understand ]
              |
              V
    [ Tunde gives clear steps ]
              |
              V
    [ Robot follows each step ]
              |
              V
    [ Tunde gets his water! ]
    

Summary of the Warm-up Story

Tunde learned that robots and computers need clear, ordered steps. Without clear steps, they cannot do anything. This story introduces the whole module.


4. Main Lessons

In this section, you will go through 12 short lessons. Each lesson teaches one big idea. Each lesson ends with a mini summary. Read slowly. Think about the examples. Ask questions. That is how you learn.

Lesson 1 โ€” What is Programming Logic?

Definition

Programming logic is the skill of thinking in clear, ordered steps that a computer can follow. It is the way programmers plan what a program should do before they write any code.

Why it is important

Without logic, a program would be a mess. Computers need clear instructions. If the steps are wrong, the program fails.

Simple explanation

Think of giving directions to a stranger. If you say, "Go somewhere near the market," the stranger will get lost. If you say, "Walk straight for 200 metres, turn left at the bank, then walk 50 metres," the stranger will find the place. Programming logic is like that.

Real-life example

When you use an ATM, the machine follows clear steps: insert card, enter PIN, choose amount, take cash. That is programming logic in action.

School example

When your teacher gives you steps to solve a maths problem, that is a kind of logic. You follow each step in order.

Home example

When your mother gives you steps to cook rice, that is logic. Wash the rice. Boil water. Add rice. Cook for 20 minutes.

Nigerian example

When you buy airtime at a kiosk, the seller follows steps: check your network, collect money, dial the code, and confirm. That is logic.

Illustration

    PROGRAMMING LOGIC
    =================

    [ Clear step 1 ]
          |
          V
    [ Clear step 2 ]
          |
          V
    [ Clear step 3 ]
          |
          V
    [ Task complete! ]
        

Mini summary

Programming logic is thinking in clear, ordered steps. It is the way programmers plan before writing code.


Lesson 2 โ€” Why Computers Need Clear Steps

Definition

A computer cannot think or guess. It can only follow instructions. If the instructions are unclear, the computer will fail or do the wrong thing.

Why it is important

Understanding this helps you write better instructions. It also helps you see why clear logic matters.

Simple explanation

Think of a very obedient but very dumb helper. If you say, "Bring me a cup," the helper might bring a broken cup. If you say, "Bring me a clean, empty cup," the helper will bring the right thing. A computer is like that helper.

Real-life example

If you type a wrong password in a web application, it will not open. The computer only checks what you typed. It cannot guess that you meant something else.

School example

If a teacher says, "Write an essay," students might be confused. If she says, "Write an essay of 200 words about your school," students know what to do. A computer is like that.

Home example

If you tell your younger brother, "Go and buy something," he may buy the wrong thing. If you say, "Buy two loaves of bread from Mama Nkechi's shop," he will get it right.

Nigerian example

If you dial the wrong USSD code, you will not buy airtime. The computer checks only what you typed.

Illustration

    CLEAR vs UNCLEAR STEPS
    ======================

    Unclear:  "Bring me a cup"
              |
              V
    Computer: ???? (confused)

    Clear:    "Walk to the kitchen.
               Open the cupboard.
               Take a clean cup."
              |
              V
    Computer: Does it perfectly!
        

Mini summary

Computers cannot guess. They need clear, exact steps. Unclear steps lead to failure.


Lesson 3 โ€” Thinking in Steps

Definition

Thinking in steps means breaking a task into small, simple actions that happen one after another.

Why it is important

Big tasks are hard. Small steps are easy. When you break a task into steps, you can solve it without confusion.

Simple explanation

Think of climbing a staircase. You do not jump to the top. You climb one step at a time. Programming works the same way.

Real-life example

Brushing your teeth has steps: pick up toothbrush, put toothpaste, add water, brush, rinse, spit, clean brush, put it away.

School example

Solving a maths problem has steps: read the question, write what is given, choose the formula, solve, check the answer.

Home example

Washing plates has steps: clear leftover food, add soap, scrub, rinse, dry, put away.

Nigerian example

Preparing garri has steps: boil water, pour garri into a bowl, add water, stir, add sugar and milk, serve.

Illustration

    THINKING IN STEPS
    =================

    Big task: "Make tea"

    Steps:
      1. Boil water
      2. Put tea bag in cup
      3. Pour hot water
      4. Add sugar and milk
      5. Stir
      6. Serve
        

Mini summary

Thinking in steps means breaking a task into small, simple actions. It makes big tasks easy.


Lesson 4 โ€” The Right Order Matters

Definition

Order means the sequence in which steps happen. In programming, the order matters. Wrong order causes wrong results.

Why it is important

If you put on your shoes before your socks, it will look strange. If you put water in a cup before taking it from the cupboard, you cannot. Order matters.

Simple explanation

Think of a phone number. If you change the order of the digits, you call a different person. Order matters in programming too.

Real-life example

You cannot enter your PIN before inserting your ATM card. The order is fixed.

School example

You cannot write the answer before reading the question. You must read first.

Home example

You cannot eat before cooking. The order is: cook, then eat.

Nigerian example

You cannot pour petrol into a car before opening the fuel tank. Order matters.

Illustration

    WRONG ORDER vs RIGHT ORDER
    ==========================

    Wrong order:
      [ Put on shoes ]
              |
              V
      [ Put on socks ]
              |
              V
      Looks strange!

    Right order:
      [ Put on socks ]
              |
              V
      [ Put on shoes ]
              |
              V
      Looks perfect!
        

Mini summary

Order matters. Steps must happen in the right sequence. Wrong order causes wrong results.


Lesson 5 โ€” What is an Algorithm?

Definition

An algorithm is a set of clear, ordered steps to solve a problem or complete a task.

Why it is important

Algorithms are the heart of programming. Every program uses algorithms. Without an algorithm, a program has no plan.

Simple explanation

Think of a recipe. A recipe has steps. It tells you what to do first, second, and third. An algorithm is a recipe for a computer.

Real-life example

A recipe for jollof rice is an algorithm. It has clear steps.

School example

Steps to solve a long division problem form an algorithm.

Home example

Steps to wash your hands form an algorithm: wet, soap, scrub, rinse, dry.

Nigerian example

Steps to buy airtime: dial code, enter amount, enter PIN, receive confirmation. That is an algorithm.

Illustration

    ALGORITHM EXAMPLE
    =================

    Task: Brush your teeth

    Algorithm:
      1. Pick up toothbrush
      2. Put toothpaste on it
      3. Add water
      4. Brush for 2 minutes
      5. Rinse mouth
      6. Clean toothbrush
      7. Put toothbrush away
        

Mini summary

An algorithm is a set of clear, ordered steps to solve a problem. Every program uses algorithms.


Lesson 6 โ€” Algorithms in Everyday Life

Definition

Algorithms are not just for computers. They are everywhere in daily life. Any task with clear steps is an algorithm.

Why it is important

Recognizing algorithms in daily life helps you see the world like a programmer.

Simple explanation

Think of getting ready for school. You follow steps: wake up, brush teeth, take a bath, dress up, eat breakfast, pack your bag, leave. That is an algorithm.

Real-life example

Withdrawing money from an ATM is an algorithm: insert card, enter PIN, choose amount, collect cash, collect card.

School example

Registering for exams is an algorithm: fill form, pay fees, submit, collect receipt, get exam number.

Home example

Washing clothes by hand is an algorithm: sort clothes, add soap, scrub, rinse, wring, hang to dry.

Nigerian example

Making puff-puff is an algorithm: mix flour and sugar, add yeast, add water, stir, let it rise, scoop into oil, fry, remove, drain.

Illustration

    ALGORITHMS EVERYWHERE
    =====================

    [ Making tea ]
    [ Getting ready for school ]
    [ Buying airtime ]
    [ Cooking jollof rice ]
    [ Charging a phone ]
    [ Sending a text message ]

    All of these have clear steps = algorithms!
        

Mini summary

Algorithms are everywhere. Any task with clear steps is an algorithm. You already use them every day.


Lesson 7 โ€” What is a Flowchart?

Definition

A flowchart is a picture that shows the steps of an algorithm. It uses shapes and arrows to show what happens and in what order.

Why it is important

Flowcharts make steps easy to see. They help you find mistakes. They also help you explain your plan to others.

Simple explanation

Think of a treasure map. It shows paths and directions. A flowchart is like a map of steps.

Common Flowchart Symbols

  • Oval โ€” Start or End
  • Rectangle โ€” A step or action
  • Diamond โ€” A question or decision
  • Arrow โ€” Shows the direction

Real-life example

A flowchart for withdrawing money shows: Start, insert card, enter PIN, correct PIN? Yes or No, collect cash, End.

School example

A flowchart for passing an exam shows: Start, study, write exam, score above pass mark? Yes or No, Pass or Fail, End.

Home example

A flowchart for cooking rice shows: Start, wash rice, boil water, add rice, cook, is it soft? Yes or No, serve, End.

Nigerian example

A flowchart for buying fuel shows: Start, drive to station, is there fuel? Yes or No, buy fuel, End.

Illustration

    FLOWCHART SYMBOLS
    =================

    ( Start )         <- Oval

         |
         V
    [ Step 1 ]        <- Rectangle

         |
         V
    < Decision? >     <- Diamond
      /       \
    Yes        No
     |          |
     V          V
    [ Step 2 ] [ Step 3 ]

         |
         V
    ( End )           <- Oval
        

Mini summary

A flowchart is a picture of an algorithm. It uses shapes and arrows to show steps clearly.


Lesson 8 โ€” Drawing Simple Flowcharts

Definition

Drawing a flowchart means using shapes and arrows to show the steps of an algorithm.

Why it is important

Drawing helps you think clearly. It also helps you explain your plan to others.

Simple explanation

Think of drawing a map to your house. You use lines and arrows. A flowchart is the same, but for steps.

Steps to Draw a Flowchart

  1. Start with an oval. Write "Start".
  2. Add a rectangle for the first step.
  3. Draw an arrow to the next step.
  4. If there is a decision, use a diamond.
  5. Draw arrows for Yes and No.
  6. End with an oval. Write "End".

Real-life example

A flowchart for making tea: Start, boil water, put tea bag in cup, pour water, add sugar, stir, serve, End.

School example

A flowchart for submitting homework: Start, open book, do homework, check answers, submit, End.

Home example

A flowchart for charging a phone: Start, find charger, plug charger, connect phone, wait, phone charged? Yes or No, unplug, End.

Nigerian example

A flowchart for sending money: Start, open bank app, enter account number, enter amount, confirm, money sent? Yes or No, End.

Illustration

    FLOWCHART: MAKING TEA
    =====================

    ( Start )
        |
        V
    [ Boil water ]
        |
        V
    [ Put tea bag in cup ]
        |
        V
    [ Pour hot water ]
        |
        V
    [ Add sugar and milk ]
        |
        V
    [ Stir ]
        |
        V
    [ Serve ]
        |
        V
    ( End )
        

Mini summary

Drawing a flowchart means using shapes and arrows to show steps. Start with an oval, add rectangles, and end with an oval.


Lesson 9 โ€” What is Pseudocode?

Definition

Pseudocode means "fake code." It is a way of writing steps in plain English, using simple words. It is not real code, but it looks like it.

Why it is important

Pseudocode helps you plan before writing real code. It is easy to change. It helps you think clearly.

Simple explanation

Think of a script for a play. It tells actors what to say and do. Pseudocode is a script for your program.

Example of Pseudocode

    START
      Boil water
      Put tea bag in cup
      Pour water into cup
      Add sugar
      Add milk
      Stir
      Serve tea
    END
        

Real-life example

Pseudocode for withdrawing money: START, insert card, enter PIN, if PIN is correct, enter amount, if enough money, give cash, END.

School example

Pseudocode for checking exam results: START, enter exam number, if number is valid, show results, else show error, END.

Home example

Pseudocode for charging a phone: START, find charger, plug charger, connect phone, if phone is charged, unplug, END.

Nigerian example

Pseudocode for buying airtime: START, dial code, enter amount, enter PIN, if PIN is correct, buy airtime, END.

Illustration

    PSEUDOCODE EXAMPLE
    ==================

    START
      Wake up
      Brush teeth
      Take a bath
      Dress up
      Eat breakfast
      Pack bag
      If it is raining:
        Take umbrella
      Leave for school
    END
        

Mini summary

Pseudocode is fake code. It uses plain English to plan steps before writing real code.


Lesson 10 โ€” Breaking Big Problems into Small Steps

Definition

Breaking a big problem into small steps means splitting a hard task into smaller, easier tasks.

Why it is important

Big problems are scary. Small steps are easy. When you break a problem down, you can solve it without confusion.

Simple explanation

Think of eating a whole goat. You cannot eat it in one bite. You cut it into pieces. Programming works the same way.

Real-life example

Planning a wedding is a big problem. Breaking it down: choose a date, book a hall, send invitations, order food, arrange music, etc.

School example

Writing a long essay: choose a topic, make an outline, write the introduction, write the body, write the conclusion, edit, submit.

Home example

Cleaning the house: clean the bedroom, clean the living room, clean the kitchen, clean the bathroom, sweep the compound.

Nigerian example

Planning a trip from Lagos to Abuja: choose a date, buy a ticket, pack bags, go to the park, board the bus, travel, arrive.

Illustration

    BREAKING A BIG PROBLEM
    ======================

    Big problem: "Plan a birthday party"

    Break it down:
      -> Choose a date
      -> Choose a place
      -> Make a guest list
      -> Buy food and drinks
      -> Plan games
      -> Send invitations
      -> Set up
      -> Celebrate! ๐ŸŽ‰
        

Mini summary

Breaking a big problem into small steps makes it easier to solve. This is a key skill in programming.


Lesson 11 โ€” Finding Mistakes in Steps

Definition

Finding mistakes in steps means checking the order and content of each step to see if something is wrong.

Why it is important

Mistakes in steps cause programs to fail. Finding mistakes early saves time and prevents bigger problems.

Simple explanation

Think of a road trip. If you take the wrong turn, you will not reach your destination. Checking the map helps you find and fix the mistake. Programming is the same.

Common Mistakes in Steps

  • Missing steps
  • Wrong order
  • Unclear instructions
  • Repeated steps
  • Unnecessary steps

Real-life example

If a recipe says "bake the cake before mixing the flour," that is a mistake in order.

School example

If a maths solution says "write the answer before solving," that is a mistake.

Home example

If instructions say "put the pot on the fire before adding water," you might burn the pot. That is a mistake.

Nigerian example

If the steps for buying airtime say "enter PIN before dialing the code," it will fail. That is a mistake.

Illustration

    FINDING MISTAKES
    ================

    Steps for making tea:
      1. Boil water
      2. Put tea bag in cup
      3. Pour hot water
      4. Add sugar and milk
      5. Drink
      6. Stir  <-- MISTAKE! This should come before drinking.

    Fix: Move "Stir" to step 5.
        

Mini summary

Finding mistakes in steps means checking the order and content. Mistakes cause programs to fail.


Lesson 12 โ€” Thinking Like a Programmer

Definition

Thinking like a programmer means seeing tasks as steps, finding patterns, and planning before doing.

Why it is important

This skill helps you solve problems in school, at home, and in any job. It is useful for life, not just for coding.

Simple explanation

Think of a detective. A detective notices details, asks questions, and follows clues. A programmer does the same with tasks.

How to Think Like a Programmer

  1. Understand the problem.
  2. Break it into small steps.
  3. Put the steps in order.
  4. Check for mistakes.
  5. Test the steps.
  6. Improve the steps.

Real-life example

Planning a trip becomes easy when you think in steps: destination, date, cost, transport, packing, travel.

School example

Solving a hard maths problem becomes easier when you break it down.

Home example

Cooking a big meal becomes easier when you plan the steps in order.

Nigerian example

Starting a small business becomes easier when you plan the steps: idea, money, location, suppliers, customers, marketing.

Illustration

    THINKING LIKE A PROGRAMMER
    ==========================

    [ Understand the problem ]
              |
              V
    [ Break into small steps ]
              |
              V
    [ Put in order ]
              |
              V
    [ Check for mistakes ]
              |
              V
    [ Test the steps ]
              |
              V
    [ Improve ]
              |
              V
    [ Solve the problem! ]
        

Mini summary

Thinking like a programmer means breaking problems into steps, finding patterns, and planning before doing.

Summary of Main Lessons

You have now learned the core ideas of Module 1: what programming logic is, why computers need clear steps, how to think in steps, why order matters, what algorithms are, how to draw flowcharts, how to write pseudocode, how to break big problems into small steps, how to find mistakes, and how to think like a programmer.


5. Key Vocabulary

Word Simple Definition
Programming logic Thinking in clear, ordered steps a computer can follow.
Step One small action in a task.
Order The sequence in which steps happen.
Algorithm A set of clear, ordered steps to solve a problem.
Flowchart A picture showing the steps of an algorithm.
Pseudocode Fake code that uses plain English.
Start Where a program or task begins.
End Where a program or task finishes.
Decision A point where you choose between options.
Step-by-step Doing things one step at a time.
Sequence The order in which things happen.
Instruction A command telling the computer what to do.
Mistake Something wrong in the steps.
Plan Deciding what to do before doing it.
Problem-solving Finding a way to fix or complete something.

Summary of Key Vocabulary

These words will help you understand programming logic. Use them often so they become easy.


6. Important Concepts

Concept 1 โ€” Computers Need Clear Steps

Computers cannot guess. They need clear, ordered steps.

Concept 2 โ€” Order Matters

Steps must happen in the right order. Wrong order causes wrong results.

Concept 3 โ€” Algorithms Are Everywhere

Any task with clear steps is an algorithm. You use them every day.

Concept 4 โ€” Plan Before You Build

Flowcharts and pseudocode help you plan before writing real code.

Concept 5 โ€” Break Big Problems into Small Steps

Big problems are easy to solve when broken into small steps.

Summary of Important Concepts

These five concepts are the heart of Module 1. Read them again before moving on.


7. Step-by-step Explanations

Step-by-step: How to Write an Algorithm

  1. Understand the task. What do you want to do?
  2. List the steps. Write every action.
  3. Put them in order. Make sure the order is correct.
  4. Check for mistakes. Are any steps missing?
  5. Simplify. Remove unnecessary steps.
  6. Test. Follow the steps yourself.
  7. Improve. Fix any problems.
    WRITING AN ALGORITHM
    ====================

    [ Understand task ]
          |
          V
    [ List steps ]
          |
          V
    [ Put in order ]
          |
          V
    [ Check for mistakes ]
          |
          V
    [ Simplify ]
          |
          V
    [ Test ]
          |
          V
    [ Improve ]
    

Step-by-step: How to Draw a Flowchart

  1. Start with an oval. Write "Start".
  2. Add a rectangle for the first step.
  3. Draw an arrow to the next step.
  4. Use a diamond if there is a decision.
  5. Label arrows "Yes" and "No".
  6. Continue with rectangles for more steps.
  7. End with an oval. Write "End".
    DRAWING A FLOWCHART
    ===================

    ( Start )
        |
        V
    [ Step 1 ]
        |
        V
    < Decision? >
      /       \
    Yes        No
     |          |
     V          V
    [ Step 2 ] [ Step 3 ]
        |
        V
    ( End )
    

Summary of Step-by-step Explanations

Writing an algorithm and drawing a flowchart both follow clear steps. Following steps makes it easy.


8. Real-life Examples

Example 1 โ€” Using an ATM

Steps: insert card, enter PIN, choose amount, collect cash, collect card.

Example 2 โ€” Ordering Food Online

Steps: open app, choose restaurant, choose food, add to cart, pay, wait for delivery.

Example 3 โ€” Booking a Flight

Steps: choose destination, choose date, choose airline, enter passenger details, pay, receive ticket.

Example 4 โ€” Registering for School

Steps: fill form, submit documents, pay fees, receive admission letter.

Example 5 โ€” Sending a Package

Steps: pack item, write address, pay postage, send, receive confirmation.

Summary of Real-life Examples

Algorithms are in ATMs, online shopping, flight booking, school registration, and package delivery.


9. Nigerian Examples

Example 1 โ€” Buying Airtime

Steps: dial code, enter amount, enter PIN, receive confirmation.

Example 2 โ€” Sending Money

Steps: open bank app, enter account number, enter amount, confirm, receive receipt.

Example 3 โ€” Cooking Jollof Rice

Steps: blend pepper and tomatoes, fry, add stock, add rice, cook, serve.

Example 4 โ€” Buying Fuel

Steps: drive to station, queue, pay, fill tank, pay again if needed, drive off.

Example 5 โ€” Sending a Parcel

Steps: pack item, write address, go to park, pay driver, hand over parcel, call receiver.

Summary of Nigerian Examples

Nigeria has many examples of algorithms: buying airtime, sending money, cooking, buying fuel, and sending parcels.


10. Fun Examples Children Can Relate To

Example 1 โ€” Playing a Video Game

Steps: start game, choose character, choose level, play, win or lose, restart or exit.

Example 2 โ€” Making a Sandwich

Steps: take bread, add butter, add filling, close, cut, eat.

Example 3 โ€” Flying a Kite

Steps: find open space, hold string, run, release kite, let it fly, pull gently.

Example 4 โ€” Making a Paper Plane

Steps: take paper, fold in half, fold corners, fold again, fold wings, throw.

Example 5 โ€” Building a Sandcastle

Steps: find sand, add water, fill bucket, turn over, pat, decorate.

Summary of Fun Examples

Algorithms are in video games, sandwich making, kite flying, paper planes, and sandcastles.


11. Everyday Examples

Task First Step Last Step
Brushing teeth Pick up toothbrush Put toothbrush away
Charging phone Find charger Unplug when charged
Cooking rice Wash rice Serve
Going to school Wake up Arrive at school
Sending a text Open messaging app Send message

Summary of Everyday Examples

Even simple daily activities are algorithms. Now you can see them everywhere.


12. Parent Tips

  1. Ask your child to explain steps. When they do a task, ask them to describe each step.
  2. Point out algorithms in daily life. Cooking, dressing, and cleaning are all algorithms.
  3. Draw flowcharts together. Use paper and pencil. Draw simple steps.
  4. Practice pseudocode. Ask your child to write steps in plain English.
  5. Play step games. Ask your child to give you steps to follow. Then follow them literally.
  6. Praise clear thinking. When your child breaks a task into steps, praise them.
  7. Encourage curiosity. When they ask how something works, help them break it down.
  8. Be patient. Logical thinking takes practice. Encourage, do not pressure.

Summary of Parent Tips

Parents can help children develop logical thinking through daily activities and simple games.


13. Interesting Facts

  1. The word "algorithm" comes from the name of a Persian mathematician, Al-Khwarizmi.
  2. The first computer programs were written as step-by-step instructions on paper.
  3. Flowcharts were invented in the 1920s, long before computers were common.
  4. Pseudocode is used by professional programmers every day.
  5. Algorithms can be very short or very long. Some have millions of steps.
  6. The same task can have many different algorithms. Some are faster than others.
  7. Many Nigerian tech companies start their projects by planning with flowcharts.
  8. Even simple games like tic-tac-toe use algorithms.

Summary of Interesting Facts

Algorithms and flowcharts are old, powerful, and used everywhere.


14. Did You Know?

  • Did you know that you use algorithms every day without knowing it?
  • Did you know that the same algorithm can be written in many different programming languages?
  • Did you know that programmers often plan on paper before typing any code?
  • Did you know that flowcharts help teams understand a plan quickly?
  • Did you know that pseudocode is not real code, but it looks like code?
  • Did you know that many successful businesses start with a simple algorithm?

Summary of Did You Know?

Algorithms, flowcharts, and pseudocode are used by people all over the world every day.


15. Remember This

  • Programming logic is thinking in clear, ordered steps.
  • Computers cannot guess. They need clear steps.
  • Order matters. Wrong order causes wrong results.
  • An algorithm is a set of clear, ordered steps.
  • Algorithms are everywhere in daily life.
  • A flowchart is a picture of an algorithm.
  • Pseudocode is fake code written in plain English.
  • Break big problems into small steps.
  • Find mistakes in steps before they cause problems.
  • Thinking like a programmer helps in school, home, and life.

Summary of Remember This

These ten points are the heart of Module 1. Read them again before moving on.


16. Common Mistakes

  1. Thinking computers can guess. They cannot. They need clear steps.
  2. Leaving out steps. Missing steps cause confusion.
  3. Putting steps in the wrong order. Wrong order causes wrong results.
  4. Writing unclear instructions. The computer will not understand.
  5. Trying to solve big problems at once. Break them into small steps.
  6. Skipping planning. Planning saves time and mistakes.
  7. Ignoring flowcharts and pseudocode. They help you think clearly.
  8. Giving up too soon. Logical thinking takes practice.

Summary of Common Mistakes

Avoiding these mistakes will make you a better logical thinker than many adults.


17. Best Practices

  1. Always understand the task before starting.
  2. Break tasks into small steps.
  3. Put steps in the correct order.
  4. Write steps clearly and simply.
  5. Draw flowcharts for tasks with decisions.
  6. Write pseudocode before real code.
  7. Check for mistakes.
  8. Test your steps.
  9. Improve your plan after testing.
  10. Practice logical thinking every day.

Summary of Best Practices

These ten practices will help you become a strong logical thinker.


18. ASCII Illustrations, Diagrams, Flowcharts, and Timelines

Diagram 1 โ€” Programming Logic

    PROGRAMMING LOGIC
    =================

    [ Clear step 1 ]
          |
          V
    [ Clear step 2 ]
          |
          V
    [ Clear step 3 ]
          |
          V
    [ Task complete! ]
    

Diagram 2 โ€” Clear vs Unclear Steps

    CLEAR vs UNCLEAR STEPS
    ======================

    Unclear:  "Bring me a cup"
              |
              V
    Computer: ???? (confused)

    Clear:    "Walk to the kitchen.
               Open the cupboard.
               Take a clean cup."
              |
              V
    Computer: Does it perfectly!
    

Diagram 3 โ€” Thinking in Steps

    THINKING IN STEPS
    =================

    Big task: "Make tea"

    Steps:
      1. Boil water
      2. Put tea bag in cup
      3. Pour hot water
      4. Add sugar and milk
      5. Stir
      6. Serve
    

Diagram 4 โ€” Flowchart Symbols

    FLOWCHART SYMBOLS
    =================

    ( Start )         <- Oval

         |
         V
    [ Step 1 ]        <- Rectangle

         |
         V
    < Decision? >     <- Diamond
      /       \
    Yes        No
     |          |
     V          V
    [ Step 2 ] [ Step 3 ]

         |
         V
    ( End )           <- Oval
    

Diagram 5 โ€” Breaking a Big Problem

    BREAKING A BIG PROBLEM
    ======================

    Big problem: "Plan a birthday party"

    Break it down:
      -> Choose a date
      -> Choose a place
      -> Make a guest list
      -> Buy food and drinks
      -> Plan games
      -> Send invitations
      -> Set up
      -> Celebrate! ๐ŸŽ‰
    

Diagram 6 โ€” Thinking Like a Programmer

    THINKING LIKE A PROGRAMMER
    ==========================

    [ Understand the problem ]
              |
              V
    [ Break into small steps ]
              |
              V
    [ Put in order ]
              |
              V
    [ Check for mistakes ]
              |
              V
    [ Test the steps ]
              |
              V
    [ Improve ]
              |
              V
    [ Solve the problem! ]
    

Summary of Illustrations

These diagrams help you see programming logic clearly. Draw them yourself to remember them better.


19. Comparison Tables

Table 1 โ€” Algorithm vs Flowchart vs Pseudocode

Algorithm Flowchart Pseudocode
Steps written in words Steps shown in shapes Steps written as fake code
Easy to write Easy to see Easy to change
Good for planning Good for explaining Good for coding

Table 2 โ€” Clear vs Unclear Steps

Clear Steps Unclear Steps
Exact and simple Vague and confusing
In the correct order Wrong order
Complete Missing steps
Computer understands Computer fails

Table 3 โ€” Real-life Tasks and Their Type

Task Has Decisions? Has Repetitions?
Making tea No No
Brushing teeth No Yes (brush each tooth)
Withdrawing money Yes (correct PIN?) No
Charging phone Yes (charged yet?) Yes (wait)

Summary of Comparison Tables

Comparing ideas side by side helps you remember the differences clearly.


20. Summary After Every Lesson (Consolidated)

Lesson Main Idea
Lesson 1 Programming logic means thinking in clear, ordered steps.
Lesson 2 Computers cannot guess. They need clear steps.
Lesson 3 Thinking in steps means breaking tasks into small actions.
Lesson 4 Order matters. Wrong order causes wrong results.
Lesson 5 An algorithm is a set of clear, ordered steps.
Lesson 6 Algorithms are everywhere in daily life.
Lesson 7 A flowchart is a picture of an algorithm.
Lesson 8 Drawing flowcharts uses shapes and arrows.
Lesson 9 Pseudocode is fake code written in plain English.
Lesson 10 Break big problems into small steps.
Lesson 11 Finding mistakes in steps prevents bigger problems.
Lesson 12 Thinking like a programmer helps in life, not just coding.

21. End-of-Module Summary

Congratulations! You have completed Module 1. Let us review what you have learned.

You began by learning that programming logic is the skill of thinking in clear, ordered steps that a computer can follow.

You learned that computers cannot guess. They need clear steps. If the steps are unclear, the program fails.

You discovered how to think in steps. Big tasks become easy when broken into small actions.

You learned that order matters. Steps must happen in the right sequence.

You explored algorithms โ€” sets of clear, ordered steps to solve a problem. You saw that algorithms are everywhere in daily life.

You discovered flowcharts โ€” pictures that show the steps of an algorithm using shapes and arrows.

You learned about pseudocode โ€” fake code written in plain English to plan steps before writing real code.

You practiced breaking big problems into small steps. This makes hard tasks easy.

You learned how to find mistakes in steps and fix them.

Finally, you learned how to think like a programmer. This skill helps you in school, home, and any job.

    MODULE 1 SUMMARY MAP
    ====================

    [ Programming Logic ]
              |
              V
    [ Thinking in Steps ] --> [ Order Matters ]
              |
              V
    [ Algorithms ] --> [ Flowcharts ] --> [ Pseudocode ]
              |
              V
    [ Breaking Problems ] --> [ Finding Mistakes ]
              |
              V
    [ Thinking Like a Programmer! ]
    

Well done! You now have a strong foundation. In Module 2, you will learn how programs make decisions and repeat tasks.


22. Frequently Asked Questions (10 Questions)

Question 1: What is programming logic in the simplest words?

Programming logic is thinking in clear, ordered steps that a computer can follow.

Question 2: Do I need to know coding to learn programming logic?

No. You can learn programming logic with just pen and paper.

Question 3: Why do computers need clear steps?

Because computers cannot guess. They only follow the instructions you give them.

Question 4: What is an algorithm?

An algorithm is a set of clear, ordered steps to solve a problem or complete a task.

Question 5: What is a flowchart?

A flowchart is a picture that shows the steps of an algorithm using shapes and arrows.

Question 6: What is pseudocode?

Pseudocode is fake code that uses plain English to describe steps.

Question 7: What is the difference between an algorithm and pseudocode?

An algorithm can be written in any form. Pseudocode is one way of writing an algorithm using simple, code-like words.

Question 8: Why does order matter in steps?

Because steps must happen in the right sequence. Wrong order causes wrong results.

Question 9: Can I use programming logic in daily life?

Yes! You already use it for cooking, dressing, doing homework, and many other tasks.

Question 10: What will I learn in Module 2?

You will learn how programs make decisions (if / else) and how they repeat tasks (loops).


23. Matching Exercises

Exercise 1 โ€” Match the Word to the Meaning

Column A (Word) Column B (Meaning)
1. Algorithm A. A picture showing steps
2. Flowchart B. A set of clear, ordered steps
3. Pseudocode C. The order in which steps happen
4. Order D. Fake code in plain English
5. Logic E. Thinking in clear, ordered steps

Answers: 1-B, 2-A, 3-D, 4-C, 5-E

Exercise 2 โ€” Match the Task to Its Type

Column A (Task) Column B (Type)
1. Making tea A. Has a decision
2. Withdrawing money B. Simple sequence
3. Charging a phone C. Has repetition
4. Brushing teeth D. Has both decision and repetition

Answers: 1-B, 2-A, 3-D, 4-C

Summary of Matching Exercises

Matching helps you connect words to meanings quickly.


24. Scenario-based Exercises

Scenario 1 โ€” The Confused Robot

A girl tells her robot, "Bring me a book." The robot does not move.

Questions:

  1. Why did the robot not move?
  2. What should the girl do instead?
  3. Write three clear steps she could give.

Scenario 2 โ€” The Wrong Recipe

A boy wants to make tea. His steps are: pour water into cup, boil water, add tea bag, drink. The tea is cold and tasteless.

Questions:

  1. What mistake did he make?
  2. What is the correct order?
  3. Why does order matter?

Scenario 3 โ€” The Missing Step

A student writes steps for buying airtime: dial code, enter amount, receive confirmation. But the airtime is not added.

Questions:

  1. What step is missing?
  2. Why is this step important?
  3. How can the student fix the algorithm?

Summary of Scenario-based Exercises

These scenarios help you apply what you have learned to real situations.


25. Group Activity

Activity: Write an Algorithm for a Daily Task

Group size: 3โ€“5 students

Time: 30 minutes

Materials: Paper, pencil

Instructions:

  1. Choose a daily task (e.g., making a sandwich, going to school).
  2. Write the steps as an algorithm.
  3. Draw a simple flowchart.
  4. Check the order and fix any mistakes.
  5. Present your algorithm to the class.

Goal: To practise writing algorithms and flowcharts as a team.


26. Individual Activity

Activity: My Morning Algorithm

Time: 20 minutes

Materials: Notebook, pencil

Instructions:

  1. Write the steps you follow every morning.
  2. Number each step in the correct order.
  3. Draw a simple flowchart of your morning routine.
  4. Check for any step you might have missed.

Goal: To connect algorithms to your own daily life.


27. Mini Project

Project: Design a Flowchart for a Simple Game

Time: 1โ€“2 hours

Materials: Paper, pencil, ruler

Instructions:

  1. Choose a simple game (e.g., guessing a number).
  2. Write an algorithm for the game.
  3. Draw a flowchart using shapes and arrows.
  4. Include at least one decision (Yes/No).
  5. Test your flowchart by following the steps.
  6. Present your project to the class.

Goal: To practise designing algorithms and flowcharts.


28. Practical Assignment

Assignment: Interview Someone About Their Daily Routine

Time: 1 week

Materials: Notebook, pencil

Instructions:

  1. Ask a family member or friend about a task they do often.
  2. Write down the steps as an algorithm.
  3. Draw a simple flowchart for the task.
  4. Check if any steps are missing or out of order.
  5. Write a one-page report on what you learned.

Goal: To see how algorithms appear in real life.


29. Key Takeaways

  1. Programming logic is thinking in clear, ordered steps.
  2. Computers cannot guess. They need clear steps.
  3. Order matters. Wrong order causes wrong results.
  4. An algorithm is a set of clear, ordered steps.
  5. Algorithms are everywhere in daily life.
  6. A flowchart is a picture of an algorithm.
  7. Pseudocode is fake code written in plain English.
  8. Break big problems into small steps.
  9. Find mistakes in steps before they cause problems.
  10. Thinking like a programmer helps in school, home, and life.

30. Classroom Discussion Questions

  1. Why do you think computers need clear steps?
  2. Can you give an example of an algorithm you use every day?
  3. Why does order matter in steps?
  4. What is the difference between an algorithm and pseudocode?
  5. Why do you think flowcharts are useful?
  6. What big problem would you like to break into small steps?
  7. What happens if you skip a step in an algorithm?
  8. Why is it important to find mistakes early?
  9. How can programming logic help you in school?
  10. What did you enjoy most in this module?

31. Preparation for the Next Module

You have finished Module 1. Well done! Here is how to prepare for Module 2, which is all about Making Decisions and Repeating Tasks.

  1. Review your key words. Make sure you can explain algorithm, flowchart, pseudocode, and order in your own words.
  2. Practise writing algorithms. Choose a daily task and write the steps.
  3. Draw flowcharts. Practice using ovals, rectangles, diamonds, and arrows.
  4. Look for decisions. Notice tasks where you must choose between options (like "if it rains, take an umbrella").
  5. Look for repetition. Notice tasks where you repeat steps (like brushing each tooth).
  6. Bring your curiosity. Module 2 will teach you about conditions, true and false, and loops.
    TRANSITION TO MODULE 2
    ======================

    [ Module 1: Thinking in Steps ]
              |
              V
    [ Module 2: Making Decisions and Repeating Tasks ]
              |
              V
    [ You will learn: if / else, true and false,
      comparisons, and loops ]
    

See you in Module 2. Keep thinking like a programmer!


๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’