SlideShare ist ein Scribd-Unternehmen logo
1 von 41
Chapter 6 Programming Languages
Chapter 6: Programming Languages ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Figure 6.1   Generations of programming languages
Second-generation: Assembly language ,[object Object],[object Object],[object Object],[object Object]
Assembly language characteristics ,[object Object],[object Object],[object Object],[object Object]
Assembly language example ,[object Object],[object Object]
Third generation language ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Figure 6.2   The evolution of programming paradigms
Figure 6.3   A function for checkbook balancing constructed from simpler functions
Figure 6.4   The composition of a typical imperative program or program unit
Figure 6.5   Variable declarations in C, C++, C#, and Java
Figure 6.6   A two-dimensional array with two rows and nine columns
Figure 6.7   Declaration of heterogeneous array
Figure 6.8   Control structures  and their representations in C, C++, C#, and Java
Figure 6.9   The for loop structure and its representation in C++, C#, and Java
Figure 6.10   The flow of control involving a procedure
Figure 6.11   The procedure ProjectPopulation written in the programming language C
Figure 6.12   Executing the procedure Demo and passing parameters by value
Figure 6.13   Executing the procedure Demo and passing parameters by reference
Figure 6.14   The function CylinderVolume written in the programming language C
Figure 6.15   The translation process
Figure 6.16   A syntax diagram  of our if-then-else pseudocode statement
Figure 6.17   Syntax diagrams describing the structure of a simple algebraic expression
Figure 6.18   The parse tree for the string x  +  y  x  z based on the syntax diagrams in Figure 6.17
Figure 6.19   Two distinct  parse trees for  the statement  if B1 then if B2 then S1 else S2
Figure 6.20   An object-oriented approach to the translation process
Figure 6.21   The complete program preparation process
Objects and Classes ,[object Object],[object Object],[object Object]
Components of an object ,[object Object],[object Object],[object Object],[object Object]
Encapsulation ,[object Object],[object Object],[object Object]
Additional object-oriented concepts ,[object Object],[object Object]
Figure 6.22   The structure of a class describing a laser weapon in a computer game
Figure 6.23   A class with a constructor
Figure 6.24   Our LaserClass definition using encapsulation as it would appear in a Java or C# program
Programming concurrent activities ,[object Object],[object Object],[object Object]
Interaction between processes ,[object Object],[object Object]
Figure 6.25   Spawning processes
Declarative programming ,[object Object],[object Object],[object Object],[object Object],[object Object]
Figure 6.26   Resolving the statements ( P  OR  Q ) and ( R  OR ¬ Q ) to produce ( P  OR  R )
Figure 6.27   Resolving the statements ( P  OR  Q ), ( R  OR ¬ Q ), ¬R, and ¬ P
Prolog  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt?

Gdb tutorial-handout
Gdb tutorial-handoutGdb tutorial-handout
Gdb tutorial-handout
Suraj Kumar
 
Agile NCR 2013- Anirudh Bhatnagar - Hadoop unit testing agile ncr
Agile NCR 2013- Anirudh Bhatnagar - Hadoop unit testing agile ncr Agile NCR 2013- Anirudh Bhatnagar - Hadoop unit testing agile ncr
Agile NCR 2013- Anirudh Bhatnagar - Hadoop unit testing agile ncr
AgileNCR2013
 

Was ist angesagt? (17)

Type conversion
Type  conversionType  conversion
Type conversion
 
Parallel External Memory Algorithms Applied to Generalized Linear Models
Parallel External Memory Algorithms Applied to Generalized Linear ModelsParallel External Memory Algorithms Applied to Generalized Linear Models
Parallel External Memory Algorithms Applied to Generalized Linear Models
 
Usage of GDB
Usage of GDBUsage of GDB
Usage of GDB
 
Oop lecture1
Oop lecture1Oop lecture1
Oop lecture1
 
Gdb tutorial-handout
Gdb tutorial-handoutGdb tutorial-handout
Gdb tutorial-handout
 
Cc 11
Cc 11Cc 11
Cc 11
 
R Programming: Introduction to Vectors
R Programming: Introduction to VectorsR Programming: Introduction to Vectors
R Programming: Introduction to Vectors
 
Reason and GraphQL
Reason and GraphQLReason and GraphQL
Reason and GraphQL
 
Operator_Overloaing_Type_Conversion_OOPC(C++)
Operator_Overloaing_Type_Conversion_OOPC(C++)Operator_Overloaing_Type_Conversion_OOPC(C++)
Operator_Overloaing_Type_Conversion_OOPC(C++)
 
C# 6.0
C# 6.0C# 6.0
C# 6.0
 
Reactive Programming in the Browser feat. Scala.js and PureScript
Reactive Programming in the Browser feat. Scala.js and PureScriptReactive Programming in the Browser feat. Scala.js and PureScript
Reactive Programming in the Browser feat. Scala.js and PureScript
 
Gccgdb
GccgdbGccgdb
Gccgdb
 
Large data with Scikit-learn - Boston Data Mining Meetup - Alex Perrier
Large data with Scikit-learn - Boston Data Mining Meetup  - Alex PerrierLarge data with Scikit-learn - Boston Data Mining Meetup  - Alex Perrier
Large data with Scikit-learn - Boston Data Mining Meetup - Alex Perrier
 
Intake 37 linq3
Intake 37 linq3Intake 37 linq3
Intake 37 linq3
 
Agile NCR 2013- Anirudh Bhatnagar - Hadoop unit testing agile ncr
Agile NCR 2013- Anirudh Bhatnagar - Hadoop unit testing agile ncr Agile NCR 2013- Anirudh Bhatnagar - Hadoop unit testing agile ncr
Agile NCR 2013- Anirudh Bhatnagar - Hadoop unit testing agile ncr
 
operator overloading & type conversion in cpp over view || c++
operator overloading & type conversion in cpp over view || c++operator overloading & type conversion in cpp over view || c++
operator overloading & type conversion in cpp over view || c++
 
Principle source of optimazation
Principle source of optimazationPrinciple source of optimazation
Principle source of optimazation
 

Andere mochten auch

9 leadership development strategies
9 leadership development strategies9 leadership development strategies
9 leadership development strategies
Abhishek Saha
 
Outland res. brochure 6 30-11 brown
Outland res. brochure 6 30-11 brownOutland res. brochure 6 30-11 brown
Outland res. brochure 6 30-11 brown
Jessica Luth
 
KVH Carrier Solutions
KVH Carrier SolutionsKVH Carrier Solutions
KVH Carrier Solutions
KVH Co. Ltd.
 
6 class and methods
6    class and methods6    class and methods
6 class and methods
Tuan Ngo
 
What are the keys to success
What are the keys to successWhat are the keys to success
What are the keys to success
Abhishek Saha
 
Securing access inabyod-world-final-ext
Securing access inabyod-world-final-extSecuring access inabyod-world-final-ext
Securing access inabyod-world-final-ext
OracleIDM
 
Joy Z. Liu Visual Resume
Joy Z. Liu Visual ResumeJoy Z. Liu Visual Resume
Joy Z. Liu Visual Resume
Joy Liu
 
Purchasi
PurchasiPurchasi
Purchasi
jasween
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
hstryk
 

Andere mochten auch (20)

Modena
ModenaModena
Modena
 
Roditelska noemvri 2014
Roditelska noemvri 2014Roditelska noemvri 2014
Roditelska noemvri 2014
 
9 leadership development strategies
9 leadership development strategies9 leadership development strategies
9 leadership development strategies
 
The Film Industry
The Film IndustryThe Film Industry
The Film Industry
 
Track
TrackTrack
Track
 
Outland res. brochure 6 30-11 brown
Outland res. brochure 6 30-11 brownOutland res. brochure 6 30-11 brown
Outland res. brochure 6 30-11 brown
 
KVH Carrier Solutions
KVH Carrier SolutionsKVH Carrier Solutions
KVH Carrier Solutions
 
6 class and methods
6    class and methods6    class and methods
6 class and methods
 
What are the keys to success
What are the keys to successWhat are the keys to success
What are the keys to success
 
Da rtn 11_jan2013
Da rtn 11_jan2013Da rtn 11_jan2013
Da rtn 11_jan2013
 
Comicus-Markedsføring-2015
Comicus-Markedsføring-2015Comicus-Markedsføring-2015
Comicus-Markedsføring-2015
 
Презентация
ПрезентацияПрезентация
Презентация
 
real estate agent in patna 9304611353
real estate agent in patna 9304611353real estate agent in patna 9304611353
real estate agent in patna 9304611353
 
Aw african safari
Aw african safariAw african safari
Aw african safari
 
Careers opportunities in finance
Careers opportunities in financeCareers opportunities in finance
Careers opportunities in finance
 
Securing access inabyod-world-final-ext
Securing access inabyod-world-final-extSecuring access inabyod-world-final-ext
Securing access inabyod-world-final-ext
 
Figure
Figure Figure
Figure
 
Joy Z. Liu Visual Resume
Joy Z. Liu Visual ResumeJoy Z. Liu Visual Resume
Joy Z. Liu Visual Resume
 
Purchasi
PurchasiPurchasi
Purchasi
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
 

Ähnlich wie Brookshear 06

conceptsinobjectorientedprogramminglanguages-12659959597745-phpapp02.pdf
conceptsinobjectorientedprogramminglanguages-12659959597745-phpapp02.pdfconceptsinobjectorientedprogramminglanguages-12659959597745-phpapp02.pdf
conceptsinobjectorientedprogramminglanguages-12659959597745-phpapp02.pdf
SahajShrimal1
 
DeepAM: Migrate APIs with Multi-modal Sequence to Sequence Learning
DeepAM: Migrate APIs with Multi-modal Sequence to Sequence LearningDeepAM: Migrate APIs with Multi-modal Sequence to Sequence Learning
DeepAM: Migrate APIs with Multi-modal Sequence to Sequence Learning
Sung Kim
 
Java PRESENTATION(PACKAGES,CLASSES,VARIABLES,FLOW CONTROL,EXCEPTION)
Java PRESENTATION(PACKAGES,CLASSES,VARIABLES,FLOW CONTROL,EXCEPTION)Java PRESENTATION(PACKAGES,CLASSES,VARIABLES,FLOW CONTROL,EXCEPTION)
Java PRESENTATION(PACKAGES,CLASSES,VARIABLES,FLOW CONTROL,EXCEPTION)
quantumiq448
 
Smoothing Your Java with DSLs
Smoothing Your Java with DSLsSmoothing Your Java with DSLs
Smoothing Your Java with DSLs
intelliyole
 

Ähnlich wie Brookshear 06 (20)

06 procedures
06 procedures06 procedures
06 procedures
 
Cs ch06
Cs ch06Cs ch06
Cs ch06
 
conceptsinobjectorientedprogramminglanguages-12659959597745-phpapp02.pdf
conceptsinobjectorientedprogramminglanguages-12659959597745-phpapp02.pdfconceptsinobjectorientedprogramminglanguages-12659959597745-phpapp02.pdf
conceptsinobjectorientedprogramminglanguages-12659959597745-phpapp02.pdf
 
Compiler Construction for DLX Processor
Compiler Construction for DLX Processor Compiler Construction for DLX Processor
Compiler Construction for DLX Processor
 
DeepAM: Migrate APIs with Multi-modal Sequence to Sequence Learning
DeepAM: Migrate APIs with Multi-modal Sequence to Sequence LearningDeepAM: Migrate APIs with Multi-modal Sequence to Sequence Learning
DeepAM: Migrate APIs with Multi-modal Sequence to Sequence Learning
 
Java PRESENTATION(PACKAGES,CLASSES,VARIABLES,FLOW CONTROL,EXCEPTION)
Java PRESENTATION(PACKAGES,CLASSES,VARIABLES,FLOW CONTROL,EXCEPTION)Java PRESENTATION(PACKAGES,CLASSES,VARIABLES,FLOW CONTROL,EXCEPTION)
Java PRESENTATION(PACKAGES,CLASSES,VARIABLES,FLOW CONTROL,EXCEPTION)
 
Model Building with RevoScaleR: Using R and Hadoop for Statistical Computation
Model Building with RevoScaleR: Using R and Hadoop for Statistical ComputationModel Building with RevoScaleR: Using R and Hadoop for Statistical Computation
Model Building with RevoScaleR: Using R and Hadoop for Statistical Computation
 
MidSem
MidSemMidSem
MidSem
 
Whats New in Visual Studio 2012 for C++ Developers
Whats New in Visual Studio 2012 for C++ DevelopersWhats New in Visual Studio 2012 for C++ Developers
Whats New in Visual Studio 2012 for C++ Developers
 
APIdays Paris 2018 - Building scalable, type-safe GraphQL servers from scratc...
APIdays Paris 2018 - Building scalable, type-safe GraphQL servers from scratc...APIdays Paris 2018 - Building scalable, type-safe GraphQL servers from scratc...
APIdays Paris 2018 - Building scalable, type-safe GraphQL servers from scratc...
 
MongoDB Aggregation MongoSF May 2011
MongoDB Aggregation MongoSF May 2011MongoDB Aggregation MongoSF May 2011
MongoDB Aggregation MongoSF May 2011
 
Automatic and Interpretable Machine Learning with H2O and LIME
Automatic and Interpretable Machine Learning with H2O and LIMEAutomatic and Interpretable Machine Learning with H2O and LIME
Automatic and Interpretable Machine Learning with H2O and LIME
 
DIWE - Advanced PHP Concepts
DIWE - Advanced PHP ConceptsDIWE - Advanced PHP Concepts
DIWE - Advanced PHP Concepts
 
CoffeeScript By Example
CoffeeScript By ExampleCoffeeScript By Example
CoffeeScript By Example
 
Smoothing Your Java with DSLs
Smoothing Your Java with DSLsSmoothing Your Java with DSLs
Smoothing Your Java with DSLs
 
Functional Programming
Functional ProgrammingFunctional Programming
Functional Programming
 
Breaking Dependencies Legacy Code - Cork Software Crafters - September 2019
Breaking Dependencies Legacy Code -  Cork Software Crafters - September 2019Breaking Dependencies Legacy Code -  Cork Software Crafters - September 2019
Breaking Dependencies Legacy Code - Cork Software Crafters - September 2019
 
An Introduction to Property Based Testing
An Introduction to Property Based TestingAn Introduction to Property Based Testing
An Introduction to Property Based Testing
 
Apache Beam: A unified model for batch and stream processing data
Apache Beam: A unified model for batch and stream processing dataApache Beam: A unified model for batch and stream processing data
Apache Beam: A unified model for batch and stream processing data
 
Introduction to LAVA Workload Scheduler
Introduction to LAVA Workload SchedulerIntroduction to LAVA Workload Scheduler
Introduction to LAVA Workload Scheduler
 

Mehr von FALLEE31188 (20)

Lecture4
Lecture4Lecture4
Lecture4
 
Lecture2
Lecture2Lecture2
Lecture2
 
L16
L16L16
L16
 
L2
L2L2
L2
 
Inheritance
InheritanceInheritance
Inheritance
 
Inheritance
InheritanceInheritance
Inheritance
 
Functions
FunctionsFunctions
Functions
 
Field name
Field nameField name
Field name
 
Encapsulation
EncapsulationEncapsulation
Encapsulation
 
Cpp tutorial
Cpp tutorialCpp tutorial
Cpp tutorial
 
Cis068 08
Cis068 08Cis068 08
Cis068 08
 
Chapter14
Chapter14Chapter14
Chapter14
 
Chapt03
Chapt03Chapt03
Chapt03
 
C++lecture9
C++lecture9C++lecture9
C++lecture9
 
C++ polymorphism
C++ polymorphismC++ polymorphism
C++ polymorphism
 
C++ classes tutorials
C++ classes tutorialsC++ classes tutorials
C++ classes tutorials
 
C1320prespost
C1320prespostC1320prespost
C1320prespost
 
Book ppt
Book pptBook ppt
Book ppt
 
Assignment 2
Assignment 2Assignment 2
Assignment 2
 
Assignment
AssignmentAssignment
Assignment
 

Kürzlich hochgeladen

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Kürzlich hochgeladen (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 

Brookshear 06

  • 2.
  • 3. Figure 6.1 Generations of programming languages
  • 4.
  • 5.
  • 6.
  • 7.
  • 8. Figure 6.2 The evolution of programming paradigms
  • 9. Figure 6.3 A function for checkbook balancing constructed from simpler functions
  • 10. Figure 6.4 The composition of a typical imperative program or program unit
  • 11. Figure 6.5 Variable declarations in C, C++, C#, and Java
  • 12. Figure 6.6 A two-dimensional array with two rows and nine columns
  • 13. Figure 6.7 Declaration of heterogeneous array
  • 14. Figure 6.8 Control structures and their representations in C, C++, C#, and Java
  • 15. Figure 6.9 The for loop structure and its representation in C++, C#, and Java
  • 16. Figure 6.10 The flow of control involving a procedure
  • 17. Figure 6.11 The procedure ProjectPopulation written in the programming language C
  • 18. Figure 6.12 Executing the procedure Demo and passing parameters by value
  • 19. Figure 6.13 Executing the procedure Demo and passing parameters by reference
  • 20. Figure 6.14 The function CylinderVolume written in the programming language C
  • 21. Figure 6.15 The translation process
  • 22. Figure 6.16 A syntax diagram of our if-then-else pseudocode statement
  • 23. Figure 6.17 Syntax diagrams describing the structure of a simple algebraic expression
  • 24. Figure 6.18 The parse tree for the string x + y x z based on the syntax diagrams in Figure 6.17
  • 25. Figure 6.19 Two distinct parse trees for the statement if B1 then if B2 then S1 else S2
  • 26. Figure 6.20 An object-oriented approach to the translation process
  • 27. Figure 6.21 The complete program preparation process
  • 28.
  • 29.
  • 30.
  • 31.
  • 32. Figure 6.22 The structure of a class describing a laser weapon in a computer game
  • 33. Figure 6.23 A class with a constructor
  • 34. Figure 6.24 Our LaserClass definition using encapsulation as it would appear in a Java or C# program
  • 35.
  • 36.
  • 37. Figure 6.25 Spawning processes
  • 38.
  • 39. Figure 6.26 Resolving the statements ( P OR Q ) and ( R OR ¬ Q ) to produce ( P OR R )
  • 40. Figure 6.27 Resolving the statements ( P OR Q ), ( R OR ¬ Q ), ¬R, and ¬ P
  • 41.