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
- 1AnalyzeAnalyze the problem thoroughly.
- 2Break downBreak the solution method down into a sequence of small tasks.
- 3AlgorithmPrepare an algorithm from this analysis and express it in precise notation.
- 4ProgramDesign a computer program from the algorithm in a high-level language.
- 5RunFeed the program into the computer. Its instructions are executed one after another and the expected result is output.
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.
๐
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
- 6.2Basics of AlgorithmPreview
- 6.3Definition of Algorithm๐
- 6.4Characteristics of Algorithm๐
- 6.5Algorithm Representation๐
- 6.6Integrated Development Environment (IDE)๐