program development and paradigms

22
PROGRAM DEVELOPMENT BY: KAYDEAN STERLING THE QUEENS SCHOOL 6BH

description

for students studying information technology

Transcript of program development and paradigms

Page 1: program development and paradigms

PROGRAM DEVELOPMEN

TBY: KAYDEAN STERLING

THE QUEENS SCHOOL

6BH

Page 2: program development and paradigms

PROGRAMINGDEVELOPMENT

CYCLE

Page 3: program development and paradigms

What is the programing development cycle?

This is the steps used in planning a program. It uses a sequence of steps, that will enable efficient use of time and help to minimise programing errors and produce the desired output.

Page 4: program development and paradigms
Page 5: program development and paradigms

ANALYSE

This step entails the definition of the problem. It tells what the program should do and the relation ship between the input and the desired output.

Page 6: program development and paradigms

DESIGN

This is the planning of the solution by developing an algorithm. This will involve graphically or in sequential statements depicting the logical steps (related to each other ) which will be needed to solve the problem.

Page 7: program development and paradigms

CODING

The translation of the algorithm into programming language.It will use basic human language which can be read as programing language by the computer. such as:

Write; for output

Read; for inputNB: Other input/output statements can be used

Page 8: program development and paradigms

TEST AND DEBUGING

Testing is the location of errors by doing manual and computerised run of the program. After locating the error it is then fixed by de bugging the program. A bug is any error in the program that causes it to give undesired output.

Page 9: program development and paradigms

DOCUMENTATION

This is the organisation of the material so that another programmer can understand the program . This is in case they wish to update and maintain the program at a later date. Internal documentation points out the purpose of various parts of the program.

Page 10: program development and paradigms

PROGRAMINGPARADIGMS

Page 11: program development and paradigms

Definition

A programming paradigm is a fundamental style of computer programming. It is a specific way of building the structure and elements of computer programs.

Page 12: program development and paradigms

There are four major types of programing paradigms. These are: Imperative paradigm Functional paradigm Logic paradigm Object-oriented paradigm

Page 13: program development and paradigms

Imperative Paradigm

Referred to as 'first do this, next do that' paradigm.

Computations are performed through a guided sequence of steps.

Variables are referred to or changed. Ordering of steps are crucial as results

depend on the order or sequence of the steps.

Rooted in the key technological ideas of the digital computer.

Page 14: program development and paradigms

Example of such programs

Fortran Pascal Basic C

Page 15: program development and paradigms

Functional Paradigm

Simpler and more clean programming paradigm than the imperative one in that it is less complicated.

Originates from a purely mathematical discipline

All computations are done by applying functionsFunctions are full-fledged data just like

numbers, lists,ect.

Page 16: program development and paradigms

Examples of such programs

Scheme Haskell Miranda ML

Page 17: program development and paradigms

Logic Paradigms

A declarative approach to problem-solving. Programmer specifies a set of facts and rules, and an

engine infers the answers to questions. The role of the computer when reading or debugging

the program is maintaining data and logical deduction. 

A logical program is divided into three sections:

I. A series of definitions/declarations that define the problem domain.

II. Statements of relevant facts.

III. Statement of goals in the form of a query.

Page 18: program development and paradigms

Examples of such programs

Prolog Parlog Vulcan Polka Mercury

Page 19: program development and paradigms

Object-Oriented Paradigm

Based on the sending of messages to objects.

Objects respond to messages by performing operations. They have their own set of operations.

When you send a command you call request subroutines.

Page 20: program development and paradigms

Examples of such programs

Java C++

Page 21: program development and paradigms

Differences

Imperative: direct assignments, common data structures.

Functional: uses strictly mathematical functions.

Object-oriented: uses objects , sends messages to sub routines.

Logic: uses completely logical data and carry out queries.

Page 22: program development and paradigms

Thank you for watching…

THE END