SlideShare a Scribd company logo
1 of 14
Types of Programming
      Language


Software Design and Development



                                  1
Programming Languages

Procedural languages
Object-orientated programming
Event Driven Programming
Mark-up languages
Scripting languages



                                2
Procedural Languages
Early programs used these inc. Windows DOS
The program controls what happens not the
user although they will accept input
Procedural languages work on the basis of
explicitly telling the computer ‘how to do
something’ by using a sequence of commands
called imperatives e.g. do this, then do that etc
  Examples are C, Fortran, Pascal, and Basic



                                                    3
Procedural Languages
  Tasks are broken into a number of stages
  known as procedures or subroutines
  Each procedure carries out a specific task
An example procedure (using Pascal) which calculates the average
  of two numbers inputted by the user and displays the result
  readln(Num1)                  read first number from keyboard
                                and put value in variable Num1
  readln(Num2)                  read second number from
                                keyboard and put value in variable
                                Num2
  Average:=(Num1+Num2)/2        calculate average of Num1 and
                                Num2 and place the result in
                                variable Average
  writln(Average)               Display the value of variable
                                Average on the screen
                                                                     4
Object-orientated programming (OOP)
 Is relatively new and not used until the 1990’s
 when programs got more complex
 The program is broken down into objects, not
 lists of instructions
 Each object can perform tasks and
 communicate with other objects
 An object contains related data and procedures
 (or methods) which together define the
 behaviour of that object (i.e. how it respond to
 events)

                                                    5
Object-orientated programming (OOP)
 The object can be thought of as a small
 machine with a set job
 An objects provides services in response to
 messages (events) triggered by other objects
 or end-users who request these services
                                                        Event
                           Method


                                                  request
                 Method               Method
    Object                     Data                             Client
                                                  service


                      Method     Method

                                                     Messages

             Encapsulation / information hiding
                                                                         6
Object-orientated programming (OOP)

 Unlike procedural programming, the
 programmer does not need to know the code
 which is ‘behind’ each object making it work
 They only need to know the attributes and
 methods of each object and how to make it
 interact with other objects
 They then use the objects as ‘building blocks’
 to make the program do what they want it to
   Example OO languages are Java, C# and VB.NET


                                                  7
Event Driven Programming
These are used to create software which has a
graphical user interface (GUI), such as
Windows programs
ED languages have procedural features but
also have OO capabilities
  Examples of Event Driven languages are
  VB.NET, C# and C++




                                                8
Event Driven Programming
Event driven design has 2
stages
First the programmer designs
the GUI, placing objects such
as textboxes, buttons and
labels onto a form
Then they write the code
which gives the functionality
to the program


                                9
Markup Languages
A markup language is not a true programming
language as they do not contain instructions to
control the flow of the program.
markup languages give instructions to control
the format and layout of a file
This information is in the form of tags for
structure or presentation
The programmer can insert tables for
structure, images, hyperlinks and text using
tags
                                                  10
Markup Languages
The best-known markup example is Hypertext
Markup Language (HTML), used on the World
Wide Web
  Example:
     <title>Home Page</title>
     <style type="text/css" media="screen">
        @import "stylesheets/public.css";
        body { background-color: white };
      </style>
Another example is XML (Extensible Markup
Language) which allows users to write their
own tags
                                              11
Scripting languages
Where web pages need to carry out
programming functions the code for this has
to be included within the HTML using a
scripting language.
  An example of this is JavaScript or vbscript
Scripting languages can be typed in directly
from a keyboard and the language used will
be specific to each application


                                                 12
Scripting languages
Some are used to execute a series of
commands that would otherwise have to be
typed in via a keyboard / mouse
These can be used to control the operating
system and are known as a shell script
language
  e.g. Windows Powershell
Others allow users to write
short, simple, programs or add functionality to
applications
  e.g. macros in Access or Excel
                                                  13
Which language to use depends on:
 Organisational policy – your company may be
 ‘tied’ to Microsoft or Macintosh
 Will it work on the hardware already used?
 Does it do what we need it to?
 Are current staff trained in its use?
 Is it reliable? Important for safety-critical
 systems!
 Costs of developing and maintaining programs
 Will it be expandable in future?
                                                 14

More Related Content

What's hot

C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
C notes by m v b  reddy(gitam)imp  notes  all units notes  5 unit orderC notes by m v b  reddy(gitam)imp  notes  all units notes  5 unit order
C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
Malikireddy Bramhananda Reddy
 
Programming languages
Programming languagesProgramming languages
Programming languages
vito_carleone
 
Handheld operting system
Handheld operting systemHandheld operting system
Handheld operting system
Aj Maurya
 

What's hot (20)

Evolution of Microsoft windows operating systems
Evolution of Microsoft windows operating systemsEvolution of Microsoft windows operating systems
Evolution of Microsoft windows operating systems
 
Introduction to Ubantu
Introduction to UbantuIntroduction to Ubantu
Introduction to Ubantu
 
introduction computer programming languages
introduction computer programming languages introduction computer programming languages
introduction computer programming languages
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
 
Computer Language
Computer LanguageComputer Language
Computer Language
 
Computer languages
Computer languagesComputer languages
Computer languages
 
System software vs application software
System software vs application softwareSystem software vs application software
System software vs application software
 
Boot process
Boot processBoot process
Boot process
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language
 
software development and programming languages
software development and programming languages software development and programming languages
software development and programming languages
 
Introduction to system programming
Introduction to system programmingIntroduction to system programming
Introduction to system programming
 
Computer Programming
Computer ProgrammingComputer Programming
Computer Programming
 
C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
C notes by m v b  reddy(gitam)imp  notes  all units notes  5 unit orderC notes by m v b  reddy(gitam)imp  notes  all units notes  5 unit order
C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
 
Presentation Introduction to Windows
Presentation  Introduction to  WindowsPresentation  Introduction to  Windows
Presentation Introduction to Windows
 
Programming language
Programming languageProgramming language
Programming language
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Computer Programming Overview
Computer Programming OverviewComputer Programming Overview
Computer Programming Overview
 
Handheld operting system
Handheld operting systemHandheld operting system
Handheld operting system
 

Viewers also liked

Viewers also liked (20)

Writing algorithms
Writing algorithmsWriting algorithms
Writing algorithms
 
Pseudocode flowcharts
Pseudocode flowchartsPseudocode flowcharts
Pseudocode flowcharts
 
Data types vbnet
Data types vbnetData types vbnet
Data types vbnet
 
Simple debugging
Simple debuggingSimple debugging
Simple debugging
 
Decisions
DecisionsDecisions
Decisions
 
Design for edp
Design for edpDesign for edp
Design for edp
 
Software development lifecycle
Software development lifecycleSoftware development lifecycle
Software development lifecycle
 
Ch 3 event driven programming
Ch 3 event driven programmingCh 3 event driven programming
Ch 3 event driven programming
 
Data structures vb
Data structures vbData structures vb
Data structures vb
 
2.3 Apply the different types of algorithm to solve problem
2.3 Apply the different types of algorithm to solve problem2.3 Apply the different types of algorithm to solve problem
2.3 Apply the different types of algorithm to solve problem
 
Decisions
DecisionsDecisions
Decisions
 
Design documentation
Design documentationDesign documentation
Design documentation
 
Iteration
IterationIteration
Iteration
 
Simple debugging
Simple debuggingSimple debugging
Simple debugging
 
Event driven theory
Event driven theoryEvent driven theory
Event driven theory
 
Data types vbnet
Data types vbnetData types vbnet
Data types vbnet
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Event driven programming amazeballs
Event driven programming amazeballsEvent driven programming amazeballs
Event driven programming amazeballs
 
Controls
ControlsControls
Controls
 
Event oriented programming
Event oriented programmingEvent oriented programming
Event oriented programming
 

Similar to Ndu06 typesof language (20)

Ndu06 typesof language
Ndu06 typesof languageNdu06 typesof language
Ndu06 typesof language
 
Introduction to object oriented language
Introduction to object oriented languageIntroduction to object oriented language
Introduction to object oriented language
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Unit 1
Unit 1Unit 1
Unit 1
 
JAVA
JAVAJAVA
JAVA
 
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.docICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
 
Computer Software and It's Development
Computer Software and It's DevelopmentComputer Software and It's Development
Computer Software and It's Development
 
PCCF Unit 2.pptx
PCCF Unit 2.pptxPCCF Unit 2.pptx
PCCF Unit 2.pptx
 
Programming
ProgrammingProgramming
Programming
 
Information systems software
Information systems softwareInformation systems software
Information systems software
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
PCCF UNIT 2.pptx
PCCF UNIT 2.pptxPCCF UNIT 2.pptx
PCCF UNIT 2.pptx
 
PCCF-UNIT 2-1 new.docx
PCCF-UNIT 2-1 new.docxPCCF-UNIT 2-1 new.docx
PCCF-UNIT 2-1 new.docx
 
Richa garg itm
Richa garg itmRicha garg itm
Richa garg itm
 
Programming
ProgrammingProgramming
Programming
 
Bis Chapter4
Bis Chapter4Bis Chapter4
Bis Chapter4
 
Chapter no 1
Chapter no 1Chapter no 1
Chapter no 1
 
SYSTEM DEVELOPMENT
SYSTEM DEVELOPMENTSYSTEM DEVELOPMENT
SYSTEM DEVELOPMENT
 
Programming in c++
Programming in c++Programming in c++
Programming in c++
 

More from nicky_walters (8)

Data types vbnet
Data types vbnetData types vbnet
Data types vbnet
 
Event driventheory
Event driventheoryEvent driventheory
Event driventheory
 
Debugging
DebuggingDebugging
Debugging
 
Using loops
Using loopsUsing loops
Using loops
 
Input output
Input outputInput output
Input output
 
Decisions
DecisionsDecisions
Decisions
 
Intro to visual studio 2008
Intro to visual studio 2008Intro to visual studio 2008
Intro to visual studio 2008
 
Input output
Input outputInput output
Input output
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 

Ndu06 typesof language

  • 1. Types of Programming Language Software Design and Development 1
  • 2. Programming Languages Procedural languages Object-orientated programming Event Driven Programming Mark-up languages Scripting languages 2
  • 3. Procedural Languages Early programs used these inc. Windows DOS The program controls what happens not the user although they will accept input Procedural languages work on the basis of explicitly telling the computer ‘how to do something’ by using a sequence of commands called imperatives e.g. do this, then do that etc Examples are C, Fortran, Pascal, and Basic 3
  • 4. Procedural Languages Tasks are broken into a number of stages known as procedures or subroutines Each procedure carries out a specific task An example procedure (using Pascal) which calculates the average of two numbers inputted by the user and displays the result readln(Num1) read first number from keyboard and put value in variable Num1 readln(Num2) read second number from keyboard and put value in variable Num2 Average:=(Num1+Num2)/2 calculate average of Num1 and Num2 and place the result in variable Average writln(Average) Display the value of variable Average on the screen 4
  • 5. Object-orientated programming (OOP) Is relatively new and not used until the 1990’s when programs got more complex The program is broken down into objects, not lists of instructions Each object can perform tasks and communicate with other objects An object contains related data and procedures (or methods) which together define the behaviour of that object (i.e. how it respond to events) 5
  • 6. Object-orientated programming (OOP) The object can be thought of as a small machine with a set job An objects provides services in response to messages (events) triggered by other objects or end-users who request these services Event Method request Method Method Object Data Client service Method Method Messages Encapsulation / information hiding 6
  • 7. Object-orientated programming (OOP) Unlike procedural programming, the programmer does not need to know the code which is ‘behind’ each object making it work They only need to know the attributes and methods of each object and how to make it interact with other objects They then use the objects as ‘building blocks’ to make the program do what they want it to Example OO languages are Java, C# and VB.NET 7
  • 8. Event Driven Programming These are used to create software which has a graphical user interface (GUI), such as Windows programs ED languages have procedural features but also have OO capabilities Examples of Event Driven languages are VB.NET, C# and C++ 8
  • 9. Event Driven Programming Event driven design has 2 stages First the programmer designs the GUI, placing objects such as textboxes, buttons and labels onto a form Then they write the code which gives the functionality to the program 9
  • 10. Markup Languages A markup language is not a true programming language as they do not contain instructions to control the flow of the program. markup languages give instructions to control the format and layout of a file This information is in the form of tags for structure or presentation The programmer can insert tables for structure, images, hyperlinks and text using tags 10
  • 11. Markup Languages The best-known markup example is Hypertext Markup Language (HTML), used on the World Wide Web Example: <title>Home Page</title> <style type="text/css" media="screen"> @import "stylesheets/public.css"; body { background-color: white }; </style> Another example is XML (Extensible Markup Language) which allows users to write their own tags 11
  • 12. Scripting languages Where web pages need to carry out programming functions the code for this has to be included within the HTML using a scripting language. An example of this is JavaScript or vbscript Scripting languages can be typed in directly from a keyboard and the language used will be specific to each application 12
  • 13. Scripting languages Some are used to execute a series of commands that would otherwise have to be typed in via a keyboard / mouse These can be used to control the operating system and are known as a shell script language e.g. Windows Powershell Others allow users to write short, simple, programs or add functionality to applications e.g. macros in Access or Excel 13
  • 14. Which language to use depends on: Organisational policy – your company may be ‘tied’ to Microsoft or Macintosh Will it work on the hardware already used? Does it do what we need it to? Are current staff trained in its use? Is it reliable? Important for safety-critical systems! Costs of developing and maintaining programs Will it be expandable in future? 14