presentation-03.pptx - 1 Alexander College Burnaby Campus...

This preview shows page 1 - 12 out of 48 pages.

CPSC 111 Introduction to Computing by Dr. Ahmed Malki Alexander College - Burnaby Campus 1 Algorithms are the heart of all computation Winter 2019
Lecture 3: Unit1: Computing Science Basics (CMPT 120 Study Guide) Software terminology 2
Objectives 3 You should be able to: o To understand the basic notions of: Procedure + Process + Computer program o To understand the important role of Algorithms (Flowcharts) in designing computer programs o To understand how to get a computer to do your bidding The Stages of Software Development Process What is debugging?
Your Task for next lecture 4 You should have started reading Chapter 2- Variables, expressions and statements
What do computers do? 5 You need to tell the computers what to do Writing large programs is a challenge. It would be almost impossible without a systematic approach (more on this later)
Some Terminology 6 A procedure is a sequence of actions or instructions to be followed in solving a problem or accomplishing a task. A process is what happens when a procedure is followed- it’s a procedure in execution. When the instructions are written in a symbolic language that can be executed (carried out) by a computer, the procedure is called a computer program .
Computer Programming 7 Programming teaches you a language to communicate to the computer so that you can give procedures for it to execute A computer program is nothing more than a sequence of instructions to the computer Python is the specific programming language that we will use in this course (more on this later)
Program Power 8 Software (programs) rule the hardware (the physical machine). The process of creating this software is called programming .
Programming & its basic steps 9 This lecture introduces the basic steps involved in programming. We'll introduce a simple programming problem (a task to be performed), and then: work out precisely what the task is; write down a set of steps (in English) that performs the task; write these steps as a Python program; and check that the program works correctly. We'll then study the Python program in detail to introduce the basic elements of the Python language.
What is an Algorithm? 10 Computer people often use the words procedure and algorithm interchangeably. We will use the latter. The concept of an “algorithm” is fundamental to computing science and programming. Stated simply, an algorithm is a set of instructions that can be used to solve a problem . When you start your car, you follow a step-by-step procedure. The algorithm might look something like this:
Sections of Algorithm 11 Algorithms for making things will often be divided into sections; – the parts/components/ingredients ( inputs ) required to accomplish the task – actions/steps/methods ( processing ) to produce the required outcome ( output ).

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture