WeLearn

Grade 9 Information Technology · Lesson 6.2

Steps in Problem Solving

Unit 6: Fundamentals of Programming

Solving problems with computers follows an organised sequence of steps, often called the problem-solving cycle. Following the steps prevents wasted effort, such as writing a program that answers the wrong question.

Key terms

Algorithm
a step-by-step plan to solve a problem
Implementation
writing the solution as a program
Testing
checking a solution with different inputs
Bug
an error in a program
Debugging
finding and fixing errors
Trace table (dry run)
following an algorithm by hand
Documentation
written explanation of a solution
All Grade 9 Information Technology key terms →

Summary

  • Define, analyse, design, implement, test and document.
  • Algorithms are designed before coding.
  • Testing and debugging make problem solving an iterative cycle.

In everyday life: When a water pump in a rural kebele stops working, technicians follow the same cycle: define the fault, test possible causes, fix and then check that water flows.

Try it in a virtual lab

Check yourself

  • Why is defining the problem the first step?
  • What is debugging?
  • What three kinds of test data should be used?

Practice questions

  1. 1. What is usually the FIRST step in problem solving?

    • A. Testing the program
    • B. Understanding and defining the problem
    • C. Writing code
    • D. Documenting
    Show answer

    Answer: Understanding and defining the problem

    You cannot design a correct solution until you know exactly what is given, what is required and what the constraints are.

  2. 2. A flowchart starts with total = 0 and then adds 5 to total four times. What is the final value of total?

    Show answer

    Answer: 20

    Each pass adds 5: 5, 10, 15, 20. Tracing a flowchart step by step like this is how you check its logic.

On WeLearn

The full lesson: reading notes, worked examples, class activities and the Unit 6 quiz

Study Steps in Problem Solving on WeLearn

Teach Steps in Problem Solving with WeLearn

We will bring a demo to your school: a lesson on your interactive TV, a virtual lab and a classroom game, with your own teachers.