Programming Models/ Paradigms Chapter 5: Programming Languages.

Slides:



Advertisements
Similar presentations
An Introduction to Programming General Concepts. What is a program? A program is an algorithm expressed in a programming language. programming language.
Advertisements

Structures. Procedural (Imperative) Languages Procedural languages work on the basis of explicitly telling the computer ‘how to do something’; by using.
Senem Kumova Metin Introduction to Programming CS 115 Introduction to Computing PART I : Computer Basics PART II: Introduction to Computing/Programming.
Introduction to Object-Oriented Programming CS 21a: Introduction to Computing I First Semester,
© Janice Regan Problem-Solving Process 1. State the Problem (Problem Specification) 2. Analyze the problem: outline solution requirements and design.
Introduction To System Analysis and Design
Text Chapters 1, 2. Sorting ä Sorting Problem: ä Input: A sequence of n numbers ä Output: A permutation (reordering) of the input sequence such that:
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Computers: Tools for an Information Age
Introduction to Alice Basics : What is Alice? Object Oriented Definitions What Does it Look Like? Where Can I Use it?
Distribution of Marks Internal Sessional Evaluation Assignments – 10 Quizzes – 10 Class Participation Attendence – 5 Mid – Term Test – 25 External Evaluation.
Programming Paradigms Imperative programming Functional programming Logic programming Event-driven programming Object-oriented programming A programming.
CS102 Introduction to Computer Programming
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Introduction To System Analysis and design
Programming Languages – Coding schemes used to write both systems and application software A programming language is an abstraction mechanism. It enables.
Programming Languages
GENERAL CONCEPTS OF OOPS INTRODUCTION With rapidly changing world and highly competitive and versatile nature of industry, the operations are becoming.
DATA STRUCTURE Introduction to Systems Programming - COMP 1005, 1405 Instructor : Behnam Hajian
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Programming Paradigms
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
BIT 1003 – Presentation 7. Contents GENERATIONS OF LANGUAGES COMPILERS AND INTERPRETERS VIRTUAL MACHINES OBJECT-ORIENTED PROGRAMMING SCRIPTING LANGUAGES.
Programming 1 1. Introduction to object oriented programming and problem-solving.
AS Computing Introduction to Programming. What is a Computer Program? A list of instructions that a computer must work through, in a logical sequence,
Computer Concepts 2014 Chapter 12 Computer Programming.
Chapter 8 High-Level Programming Languages. 8-2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
Lecture on Programming Languages
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
Chapter 12 Computer Programming. Chapter Contents Chapter 12: Computer Programming 2  Section A: Programming Basics  Section B: Procedural Programming.
Chapter 6 Programming Languages (1) Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Definition of Object - Oriented Language.. Object-oriented programming (OOP) is a programming language model organized around "objects" rather than "actions"
Frameworks CompSci 230 S Software Construction.
CS 3050 Object-Oriented Analysis and Design. Objectives What is “Object-Oriented?” Object-Oriented Approach Vs. Structured Approach How Has the Object-Oriented.
6. Program Translation CS100: The World of Computing John Dougherty Haverford College.
Program Design. The design process How do you go about writing a program? –It’s like many other things in life Understand the problem to be solved Develop.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
Chapter 12: Computer Programming 1 Computer Programming Chapter 12.
Programming Languages
Copyright © 2006 The McGraw-Hill Companies, Inc. Programming Languages 2nd edition Tucker and Noonan Chapter 1 Overview A good programming language is.
Programming Paradigms Different paradigms Procedural paradigm, e.g. Pascal Basic Functional paradigm, e.g. Lisp Declarative paradigm, e.g. Prolog Object-Oriented.
Chapter 1 Software Engineering Principles. Problem analysis Requirements elicitation Software specification High- and low-level design Implementation.
Chapter 11 An introduction to object-oriented design.
Chapter 1 Software Development Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Skill Area 311 Part B. Lecture Overview Assembly Code Assembler Format of Assembly Code Advantages Assembly Code Disadvantages Assembly Code High-Level.
Chapter 11 An introduction to object-oriented design.
Chapter 1: Introduction to Computers and Programming.
 By the end of this lecture, you should …  Understand the three pillars of Object- Oriented Programming: Inheritance, Encapsulation and Polymorphism.
OCR A Level F453: High level languages Programming techniques a. identify a variety of programming paradigms (low-level, object- oriented,
CPS120 Introduction to Computer Science High Level Language: Paradigms.
Programming Paradigms, Software Architectural Patterns, and MVC CS 378 – Mobile Computing for iOS Dr. William C. Bulko.
Programming Languages 2nd edition Tucker and Noonan
Computer Programming.
An Introduction to Programming
An Introduction to Visual Basic .NET and Program Design
Developing Applications
Computer Programming.
Intro to CSC270 Survey of Programming Languages
VISUAL BASIC – CHAPTER ONE NOTES An Introduction to Visual Basic
Chapter 12: Computer Programming
Programming Languages 2nd edition Tucker and Noonan
Black Boxes and Abstraction or A quick run through how computers work
Tonga Institute of Higher Education IT 141: Information Systems
An Introduction to Programming
Tonga Institute of Higher Education IT 141: Information Systems
Object-Oriented Programming (OOPs)
Presentation transcript:

Programming Models/ Paradigms Chapter 5: Programming Languages

What is a Programming Paradigm A programming paradigm is a model, example or standard approach that has evolved different programming languages over a number of years. A programming paradigm is a model, example or standard approach that has evolved different programming languages over a number of years. We can basically divide all the languages into 4 models: We can basically divide all the languages into 4 models: Imperative Programming Model Imperative Programming Model Declarative Declarative Functional Functional Object-Oriented Object-Oriented

Imperative Programming Paradigm Also known as Procedural paradigm represents the traditional programming process. It is based on Fetch-Decode and Execute cycle. It defines the programming process to be development of a sequence of commands that when followed manipulate data to produce the desired results. Thus it focuses on an approach to solve the problem Also known as Procedural paradigm represents the traditional programming process. It is based on Fetch-Decode and Execute cycle. It defines the programming process to be development of a sequence of commands that when followed manipulate data to produce the desired results. Thus it focuses on an approach to solve the problem

Declarative Programming Approach It emphasizes the question “What is the problem?” rather than “What algorithm is required for solving the problem?” Here a general problem solving approach is developed that can solve a number of problems. These languages are difficult to design and are special purpose by nature It emphasizes the question “What is the problem?” rather than “What algorithm is required for solving the problem?” Here a general problem solving approach is developed that can solve a number of problems. These languages are difficult to design and are special purpose by nature PROLOG (Programming LOGic) is an example PROLOG (Programming LOGic) is an example

Functional Paradigm It views the process of program development as construction of some small boxes called Methods or functions. Each of these box is provided a set of input values and by applying some transformation output is produced. This e.g It views the process of program development as construction of some small boxes called Methods or functions. Each of these box is provided a set of input values and by applying some transformation output is produced. This e.g Here Find_sum and Find_Diff are functions that are performing certain transformations to get New_balance as output

Object Oriented Paradigm In this approach all real world things are considered as an object. Each object has a certain set of qualities/ attributes and each object can perform some job/method. Thus if I have an object CAR then Car has its color, engine#, make, model etc as attributes and its methods can be drive(), stop() etc In this approach all real world things are considered as an object. Each object has a certain set of qualities/ attributes and each object can perform some job/method. Thus if I have an object CAR then Car has its color, engine#, make, model etc as attributes and its methods can be drive(), stop() etc Examples include C++, Java etc Examples include C++, Java etc