SlideShare a Scribd company logo
Computer Language and
Programming
Unit - 3
What does a Computer Program do?
 A computer program is:
– a set of instructions that tell a computer how to
perform a particular task.
 A programming language is a set of rules
that provides a way of telling a computer
what operations to perform.
 Some programming languages are written
for particular computing problems.
For example,
 FORTRAN for scientific applications
 COBOL for business applications
What is a Programming Language?
 English is a natural language. It has
words, symbols and grammatical rules.
 A programming language also has
words, symbols and rules of grammar.
 The grammatical rules are called syntax.
 Each programming language has a
different set of syntax rules.
Programming Language
Types of Programming Languages
High-Level Language
class Triangle {
...
float surface()
return b*h/2;
}
Middle -Level Language
LOAD r1,b
LOAD r2,h
MUL r1,r2
DIV r1,#2
RET
Low-Level Language / Executable
Machine code
0001001001000101001001
001110110010101101001.
..
 Machine languages (first-generation
languages) are the most basic type of
computer languages, consisting of strings
of numbers the computer's hardware can
use.
 Different types of hardware use different
machine code.
 For example, IBM computers use different
machine language than Apple computers.
Machine Languages
 In machine languages, instructions are
written as sequence of 1s and 0s, called
bits, that a computer can understand
directly.
 It tells the computer,
 Where to find one or two numbers or simple
pieces of data in the main memory
 To perform simple operations like add two
numbers
 Where in the main memory to put the result
 Where to find the next instruction to perform
Machine Languages
 The only language that the computer
understands is called binary or machine
language.
 Programs interact with the computer using
machine language.
 It’s difficult for humans to read or write so an
intermediate language is used to get it translated
into binary for us.
Machine Languages
 Assembly languages (second-generation
languages) are only somewhat easier to
work with than machine languages.
 To create programs in assembly language,
developers use cryptic English-like phrases
to represent strings of numbers.
 The code is then translated into object code,
using a translator called an assembler.
Assembly Languages
Assembler
Assembly
code
Object code
 Closer to English but included simple
mathematical notation.
 Programs written in source code which
must be translated into machine language
programs called object code.
 The programmer generates the source
code.
 The interpreter or compiler generates the
object code (machine code)
Higher-Level Languages
Translating High Level Languages
to Machine Code`
Two ways to generate object code:
• An interpreter translates the high-level
instructions into machine code, line by
line, as the program is running
• A compiler translates the entire program
into machine code before running the
program
• Third-generation languages
• Fourth-generation languages
• Fifth-generation languages
 Higher-level programming languages are
divided into three "generations," each
more powerful than the last:
Higher-Level Languages
FORTAN C
COBOL C++
BASIC Java
Pascal ActiveX
• Third-generation languages (3GLs) are the first to
use true English-like phrasing, making them easier
to use than previous languages.
• 3GLs are portable, meaning the object code created
for one type of system can be translated for use on a
different type of system.
• The following languages are 3GLs:
Higher-Level Languages –
Third-Generation Languages
Visual Basic (VB)
VisualAge
Authoring environments
• Fourth-generation languages (4GLs) are even easier
to use than 3GLs.
• 4GLs may use a text-based environment (like a 3GL)
or may allow the programmer to work in a visual
environment, using graphical tools.
• The following languages are 4GLs:
Higher-Level Languages -
Fourth-Generation Languages
• Fifth-generation languages (5GLs) are an issue of
debate in the programming community – some
programmers cannot agree that they even exist.
• These high-level languages would use artificial
intelligence to create software, making 5GLs extremely
difficult to develop.
• PROLOG – A language used to program Artificial
Intelligence
Higher-Level Languages -
Fifth-Generation Languages
 FORTRAN
 FORmula TRANslation.
 Developed by John Backus
 Developed at IBM in the mid-1950s.
 Designed for scientific and mathematical
applications by scientists and engineers.
Procedural Languages
 COBOL
 COmmon Business Oriented Language.
 Developed in 1959.
 Created by Grace Hopper
 Designed to be common to many different
computers.
 Typically used for business applications.
Procedural Languages
 LISP
 LISt Processing.
 Developed in 1958.
 Created by John McCarthy
 First Functional Language
Functional Language
 BASIC
 Beginner’s All-purpose Symbolic Instruction
Code.
 Developed at Dartmouth College in mid 1960s.
 Developed as a simple language for students
to write programs with which they could
interact through terminals.
Programming Languages
 C
 Developed by Bell Laboratories in the early
1970s.
 Provides control and efficiency of assembly
language while having third generation
language features.
 Often used for system programs.
 UNIX is written in C.
Programming Languages
 SIMULA
 First object-oriented language
 Developed by Ole Johan Dahl in the 1960s.
 SMALLTALK
 First purely object-oriented language.
 Developed by Xerox in mid-1970s.
 Still in use on some computers.
Object-Oriented Programming
Languages
 C++
 It is C language with additional features.
 Widely used for developing system and
application software.
 Graphical user interfaces can be developed
easily with visual programming tools.
Object-Oriented Programming
Languages
 JAVA
 An object-oriented language similar to C++
that eliminates lots of C++’s problematic
features
 Allows a web page developer to create
programs for applications, called applets that
can be used through a browser.
 Objective of JAVA developers is that it be
machine, platform and operating system
independent.
Object-Oriented Programming
Languages
Chapter 3 (Questions)
 What is program?
 What is programming Language?
 What are the different programming
language generations?
 What are the differences between
HLL and LLL?
 Explain computer language types
with example.

More Related Content

PPT
Computer languages 11
Muhammad Ramzan
 
PPT
Cmp104 lec 6 computer lang
kapil078
 
PPT
Cmp104 lec 6 computer lang
kapil078
 
PPT
Generation of computer languages
kitturashmikittu
 
PPT
Computer languages and generation
Munawar Bukhari
 
DOCX
Fundamentals of Programming language.docx
bijayakumarsahoo22
 
PPTX
Basic programming concepts
salmankhan570
 
PPT
English de lenguaje de programacion
Villalba Griselda
 
Computer languages 11
Muhammad Ramzan
 
Cmp104 lec 6 computer lang
kapil078
 
Cmp104 lec 6 computer lang
kapil078
 
Generation of computer languages
kitturashmikittu
 
Computer languages and generation
Munawar Bukhari
 
Fundamentals of Programming language.docx
bijayakumarsahoo22
 
Basic programming concepts
salmankhan570
 
English de lenguaje de programacion
Villalba Griselda
 

Similar to Software Engineering : Computer basics - Introduction to computer (20)

PPTX
Introduction To Computer Programming
Hussain Buksh
 
PPT
Lect 1. introduction to programming languages
Varun Garg
 
PPT
evolution of programming.ppt
DanielPerez457035
 
PPTX
Development of computer languages
luckas chauhan
 
PPTX
Program & language generation
Buxoo Abdullah
 
PDF
Languages in computer
The University of Lahore
 
PPT
Introduction Programming Languages
Manish Kharotia
 
PPT
Languages
ankur bhalla
 
PPTX
d3IGaGIHEVmLlydudufh0dpydupdudu0fupdoC1762.pptx
karthiknarra1906
 
PPTX
Trend of Visual Programming Language
Teddy Marcus
 
PPT
Generations of Programming Languages
Tarun Sharma
 
DOCX
GENERATIONS_OF_PROGRAMMING_LANGUAGES.docx
PastiADDini
 
PDF
POLITEKNIK MALAYSIA
Aiman Hud
 
PPTX
introduction to programming languages
NaqashAhmad14
 
PPS
Programming Languages and the Programming Process
Sajib Barua
 
PPTX
Rajesh ppt
Swarnima Tiwari
 
PPTX
Programming languages of computer
Keval Goyani
 
PPT
Computer Languages....ppt
hashgeneration
 
PDF
Notacd071
cikgushaharizan
 
Introduction To Computer Programming
Hussain Buksh
 
Lect 1. introduction to programming languages
Varun Garg
 
evolution of programming.ppt
DanielPerez457035
 
Development of computer languages
luckas chauhan
 
Program & language generation
Buxoo Abdullah
 
Languages in computer
The University of Lahore
 
Introduction Programming Languages
Manish Kharotia
 
Languages
ankur bhalla
 
d3IGaGIHEVmLlydudufh0dpydupdudu0fupdoC1762.pptx
karthiknarra1906
 
Trend of Visual Programming Language
Teddy Marcus
 
Generations of Programming Languages
Tarun Sharma
 
GENERATIONS_OF_PROGRAMMING_LANGUAGES.docx
PastiADDini
 
POLITEKNIK MALAYSIA
Aiman Hud
 
introduction to programming languages
NaqashAhmad14
 
Programming Languages and the Programming Process
Sajib Barua
 
Rajesh ppt
Swarnima Tiwari
 
Programming languages of computer
Keval Goyani
 
Computer Languages....ppt
hashgeneration
 
Notacd071
cikgushaharizan
 
Ad

Recently uploaded (20)

PPTX
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PPTX
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
PPTX
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
academysrusti114
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
PDF
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PDF
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PDF
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
academysrusti114
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
Sunset Boulevard Student Revision Booklet
jpinnuck
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Ad

Software Engineering : Computer basics - Introduction to computer

  • 2. What does a Computer Program do?  A computer program is: – a set of instructions that tell a computer how to perform a particular task.
  • 3.  A programming language is a set of rules that provides a way of telling a computer what operations to perform.  Some programming languages are written for particular computing problems. For example,  FORTRAN for scientific applications  COBOL for business applications What is a Programming Language?
  • 4.  English is a natural language. It has words, symbols and grammatical rules.  A programming language also has words, symbols and rules of grammar.  The grammatical rules are called syntax.  Each programming language has a different set of syntax rules. Programming Language
  • 5. Types of Programming Languages High-Level Language class Triangle { ... float surface() return b*h/2; } Middle -Level Language LOAD r1,b LOAD r2,h MUL r1,r2 DIV r1,#2 RET Low-Level Language / Executable Machine code 0001001001000101001001 001110110010101101001. ..
  • 6.  Machine languages (first-generation languages) are the most basic type of computer languages, consisting of strings of numbers the computer's hardware can use.  Different types of hardware use different machine code.  For example, IBM computers use different machine language than Apple computers. Machine Languages
  • 7.  In machine languages, instructions are written as sequence of 1s and 0s, called bits, that a computer can understand directly.  It tells the computer,  Where to find one or two numbers or simple pieces of data in the main memory  To perform simple operations like add two numbers  Where in the main memory to put the result  Where to find the next instruction to perform Machine Languages
  • 8.  The only language that the computer understands is called binary or machine language.  Programs interact with the computer using machine language.  It’s difficult for humans to read or write so an intermediate language is used to get it translated into binary for us. Machine Languages
  • 9.  Assembly languages (second-generation languages) are only somewhat easier to work with than machine languages.  To create programs in assembly language, developers use cryptic English-like phrases to represent strings of numbers.  The code is then translated into object code, using a translator called an assembler. Assembly Languages
  • 11.  Closer to English but included simple mathematical notation.  Programs written in source code which must be translated into machine language programs called object code.  The programmer generates the source code.  The interpreter or compiler generates the object code (machine code) Higher-Level Languages
  • 12. Translating High Level Languages to Machine Code` Two ways to generate object code: • An interpreter translates the high-level instructions into machine code, line by line, as the program is running • A compiler translates the entire program into machine code before running the program
  • 13. • Third-generation languages • Fourth-generation languages • Fifth-generation languages  Higher-level programming languages are divided into three "generations," each more powerful than the last: Higher-Level Languages
  • 14. FORTAN C COBOL C++ BASIC Java Pascal ActiveX • Third-generation languages (3GLs) are the first to use true English-like phrasing, making them easier to use than previous languages. • 3GLs are portable, meaning the object code created for one type of system can be translated for use on a different type of system. • The following languages are 3GLs: Higher-Level Languages – Third-Generation Languages
  • 15. Visual Basic (VB) VisualAge Authoring environments • Fourth-generation languages (4GLs) are even easier to use than 3GLs. • 4GLs may use a text-based environment (like a 3GL) or may allow the programmer to work in a visual environment, using graphical tools. • The following languages are 4GLs: Higher-Level Languages - Fourth-Generation Languages
  • 16. • Fifth-generation languages (5GLs) are an issue of debate in the programming community – some programmers cannot agree that they even exist. • These high-level languages would use artificial intelligence to create software, making 5GLs extremely difficult to develop. • PROLOG – A language used to program Artificial Intelligence Higher-Level Languages - Fifth-Generation Languages
  • 17.  FORTRAN  FORmula TRANslation.  Developed by John Backus  Developed at IBM in the mid-1950s.  Designed for scientific and mathematical applications by scientists and engineers. Procedural Languages
  • 18.  COBOL  COmmon Business Oriented Language.  Developed in 1959.  Created by Grace Hopper  Designed to be common to many different computers.  Typically used for business applications. Procedural Languages
  • 19.  LISP  LISt Processing.  Developed in 1958.  Created by John McCarthy  First Functional Language Functional Language
  • 20.  BASIC  Beginner’s All-purpose Symbolic Instruction Code.  Developed at Dartmouth College in mid 1960s.  Developed as a simple language for students to write programs with which they could interact through terminals. Programming Languages
  • 21.  C  Developed by Bell Laboratories in the early 1970s.  Provides control and efficiency of assembly language while having third generation language features.  Often used for system programs.  UNIX is written in C. Programming Languages
  • 22.  SIMULA  First object-oriented language  Developed by Ole Johan Dahl in the 1960s.  SMALLTALK  First purely object-oriented language.  Developed by Xerox in mid-1970s.  Still in use on some computers. Object-Oriented Programming Languages
  • 23.  C++  It is C language with additional features.  Widely used for developing system and application software.  Graphical user interfaces can be developed easily with visual programming tools. Object-Oriented Programming Languages
  • 24.  JAVA  An object-oriented language similar to C++ that eliminates lots of C++’s problematic features  Allows a web page developer to create programs for applications, called applets that can be used through a browser.  Objective of JAVA developers is that it be machine, platform and operating system independent. Object-Oriented Programming Languages
  • 25. Chapter 3 (Questions)  What is program?  What is programming Language?  What are the different programming language generations?  What are the differences between HLL and LLL?  Explain computer language types with example.