Danulearn Open Danulearn
Unit 6

Fundamentals of Programming

6.1Unit Overview
  • Problem-solving steps are used to solve day-to-day problems and to make strategies for handling the situations that keep arising in life.
  • One method of solving problems in computer science is the algorithm.
  • This unit covers the basics, definition and characteristics of algorithms, the two ways of representing an algorithm, flowcharts and pseudocode, and an introduction to the Integrated Development Environment (IDE).
  • An algorithm becomes a program when it is converted into program code.
  • After each algorithm of this unit there is a box that shows the same algorithm written as a Python program, with a Run button, so that you can see the algorithm at work.
  • Python itself is taught in Grade 11; here you only need to follow how each step of the algorithm appears in the program.
๐ŸŽฏ Learning Outcomes
  • Explain the steps of solving a problem with a computer.
  • Define an algorithm and state its characteristics.
  • Write algorithms for simple problems.
  • Represent algorithms with flowcharts and pseudocode.
  • Describe the features, benefits and types of IDE.
6.2  Basics of Algorithm
  • An algorithm is a step-by-step process of solving a well-defined computational problem.
  • To solve a complex real-life problem, we first define the problem and then design an algorithm to solve it.
  • Writing and executing a simple program may be easy, but for a bigger one each part of the program must be well organized.
  • Algorithms are used to simplify the implementation of programs.
  • Computers do only what they are asked to do.
  • Programs are developed to solve problems, and they are written in programming languages such as Basic, C, C++, Java and Python.
๐ŸงญThe stepsSolving a problem using a computer
0 of 5 done

For example, to calculate the sum of two numbers A and B and store it in C: A and B are the inputs, the addition is the process and C is the output.

Figure 6.1 Sum of two numbers: input, process and output
Figure 6.1 Sum of two numbers: input, process and output
๐Ÿ”’
The rest of Unit 6 is in the Danulearn app

Read the full notes for all 5 sections, worked examples and figures, plus 6 exercises with step-by-step solutions, the Short Note and the unit review.

๐Ÿ“‘ Contents

  1. 6.2Basics of AlgorithmPreview
  2. 6.3Definition of Algorithm๐Ÿ”’
  3. 6.4Characteristics of Algorithm๐Ÿ”’
  4. 6.5Algorithm Representation๐Ÿ”’
  5. 6.6Integrated Development Environment (IDE)๐Ÿ”’