











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of the programming process, including defining the problem and planning the solution using flowcharts or pseudocode, coding and testing the program, documenting the program, and understanding algorithms with their characteristics. It also covers the first Python program.
Typology: Lecture notes
1 / 19
This page cannot be seen from the preview
Don't miss anything!












Lesson Outline
IPO Model – Defining the Problem Defining the problem consists of:
Planning the Solution Two common ways of planning the solution:
Flowchart & Pseudocode - Example
Coding the Program During this stage you translate the logic expressed in Pseudocode into a Programming Code. Here you need to adhere to the language rules called “Syntax” Syntax – Is like grammar in English, it specify the correct way to write statements in the program. Editor – Programmers usually use a text editor (e.g. Notepad), which is somewhat like a word processing program, to create a file that contains the program.
Desk Checking - Example Following pseudocode is expected to find the sum of numbers from 1 to 5. Desk check this code and comment on its correctness. Count = 1 Sum = 0 While Count <= 5 ◦ Count = Count + 1 ◦ Sum = Sum + Count End While Output Sum Step Count <= 5 Count Sum Output Initial (^) 1 0 Iteration 1
Translating Source module – Original program, is called a source module. Object module – Once translated by a compiler is called object module. Load module – After prewritten programs are linked from a system library results in a load module.
An Algorithm
We've all seen food recipes - they list the ingredients needed and a set of steps for how to make the described meal. Well, an algorithm is just like that. You can think of a programming algorithm as a recipe that describes the exact steps needed for the computer to solve a problem or reach a goal. Algorithm is a step-by-step procedure, which defines a set of instructions to be executed in a certain order to get the desired output. Algorithms are generally created independent of underlying languages, i.e. an algorithm can be implemented in more than one programming language.
Characteristics of Algorithms
First Python Program Running the program interactively using Python interpreter
Running Python as File Saving the Python program as a file and running on the Command Prompt
SUMMARY Today we learnt Programming Process - Steps Defining the Problem & Planning the Solution Coding & Testing the Program Documenting the Program An Algorithm & it’s Characteristics Structured Programming First Python Program