Seminar 1 : The bird’s eye viewThe ParadigmsProgramming Paradigms
OutlineProgramming Paradigms4 Main Programming ParadigmsLearning ObjectivePlans2
Solution:Find info from books Paradigm AProblem:AssignmentSolution:Copy from classmatesParadigm BParadigm - Student
Paradigm – The Dancer   664X     5RIGHT BRAIN(clockwise)IntuitiveImagesNon-linearBig pictureabstractLEFT BRAIN(counter –clockwise)AnalyticalNumbersLinearDetailsConcrete
A programming paradigm is a framework that define how the user conceptualized and interpret complex problems. Paradigm ASolution:AProblem:Create a calculator program Solution:BParadigm BProgramming Paradigm
Paradigms VsLanguagesProgramming Paradigm: A programming paradigm is an approach to programming a computer based on a mathematical theory or a coherent set of principles.Programming language:A programming language is a tool for developing executable models for a class of problem domains.6In general, programming paradigms influence language design.
Why Programming Paradigm?7Model 1Model 2ProblemsParadigm AModel 3Model 4
Overview of 4 Programming Paradigms8
View everything as an “object”
Key characteristic of OO
Data Abstraction
Encapsulation
Polymorphism
Inheritance
Best for problems with a large number of related data abstractions organized in a hierarchyObject-Oriented Paradigm9Human“Alice”Name:Gender:Size:Eue _colour:Shopping()AnimalBuilding“Bob”
Object-Oriented ParadigmQuestion:Is Object-Oriented the best paradigm for solving every problems?If so, there wouldn’t be a need for other paradigm…calSal()Find the payroll of the salaries for all the employee in the companyEmployee 1getSal()return amt1Company sumAll()calSal()getSal()Overheads!!return amt1Employee  10000
Imperative Paradigm 11Analogy:Cooking a cup noodlesOrder of Commands is Important!!View everything as 	“a sequence of steps to perform”Characterized By
Procedures

Programming Paradigms Seminar 1