Professional Documents
Culture Documents
Session 05
Session 05
Session 05
Programming Fundamentals
College of Education
School of Continuing and Distance Education
2014/2015 – 2016/2017
Session Overview
• INTRODUCTION
In this session we consider the important issue of
program design – the third stage in the Program
Development Framework. The basic knowledge of
program design needed to write programs of
reasonable quality will be discussed.
• Goals
• TOPICS
• The importance of good programming methods
• Program Design
• Program specification and correctness
• Methods for program development
• Program Development Framework/ Stages in
programming
• Program Design Concepts
• Computability
In programming our concern is
- What tasks computers can do and how they do them
- Undesirables : There are problems that computers can
not solve e.g. Tasks that for practical reasons , tasks
that can be proven to be theoretically impossible, ‘the
halting problem’
- Computable : tasks that in principle can be performed
by a machine
Mr. Joseph Ecklu (DCS) Slide 27
PROGRAM DESIGN CONCEPTS
• Complexity
In programming complexity is measured in terms
of the quantity of resources used
- Time : taken to perform the task
- storage : requirements
Algorithm : for many tasks there may exist many
alternative algorithms and for practical reasons a
knowledge of their complexity will help us make
the best choice
Mr. Joseph Ecklu (DCS) Slide 28
PROGRAM DESIGN CONCEPTS
• Correctness
A program is correct if it meets its
specification