SlideShare una empresa de Scribd logo
1 de 4
Descargar para leer sin conexión
1. Introduction to Programming
What is Computer Programming?
Is the process of designing, writing, testing, debugging, and maintaining source code of
computer programs.
(OR)
Act of instructing computer to perform the task.
Source code
Is any computer instruction (possibly with comments) written using some human readable computer
language (also known as, High-level Computer Language), usually as text.
This source code is written in one or more programming languages (i.e. High-level language such as C,
C++, C#, Java, Python, and Smalltalk).
Programming Language
Refer to the artificial language designed to communicate instruction to a machines particularly a
computer. Examples of Programming languages are C, C++, JAVA, Python, Machine Language and
Assembly language.
Program
Is the sequence of instructions, written to perform a specific task with Computer.
NOTE:
 The purpose of Computer Programming is to create a set of instructions (i.e. Program) that
computers use to perform specific operations or to exhibit desired behavior.
 Software refers to the collection/set of computer programs and related data to perform a
specified task with a computer.
Programmer
Is the someone who writes the computer program (Software) using any language of hisher choice.
Classification of Computer Language:
 High-Level Language (Machine Independent Languages)
Is the programming language with strong abstraction from the details of the computer. The
programmer can create the program using these languages without asking for design detail
of the particular Machine which will run his/her program.
Prepared By;
NOEL MALLE, B.Eng (Computer Engineering)
Kilimanjaro, Tanzania.
So, there is no need for a Programmer to study the design of the computer (such as,
Processor Instruction Set Architecture, Bus types and width, Processor Registers types and size,
and other Architecture Design).
Hence, programmer focuses only on the Problem to be solved. This is the reason they are also
known as Problem-Oriented Languages
Furthermore, programs created using these languages are Machine Independent, which means,
they can run on Computer with different designs (e.g. Processor type) with little, or no
modifications required in their codes.
Examples of High-Level Language:
 C
 C++
 JAVA
 Low-Level Language (Machine Dependent Languages)
Is the programming language that provides little or no abstraction from details of the computer.
The programmer must have strong knowledge about Computer design in order to write the
program for such Computer.
Hence, there is need for a Programmer to study the design of the computer (such as,
Processor Instruction Set Architecture, Bus types and width, Processor Registers types and size,
and other Architecture Design).
Furthermore, programs created using these languages are Machine Dependent, which means,
the Program created for particular Machine can’t run on different Machine.
Types of Low-Level Languages:
 Assembly Language
 Machine Language.
NOTE:
Other Programmers describe C-language as the Middle-Level Language because of the following
2 reasons:
A relatively good programming efficiency i.e. faster program development (as compared to
low level language)
Relatively good machine efficiency i.e. faster program execution (as compared to high level
language)
Hence, it occupies the space (level) between two, that is, middle level.
Prepared By;
NOEL MALLE, B.Eng (Computer Engineering)
Kilimanjaro, Tanzania.
Language Translators
Is the computer program that translates a program written in a given programming language into
functionally equivalent program in different language.
There are various types of Language Translator but I will describe only two types of Language
Translators, which are:
 Compiler
 Interpreter
Compiler
Translates a high level language (e.g. C, C++) into lower level language (i.e. Machine Language). Compiler
checks the entire user-written program (known as the source program) and, if error free, produces a
complete program in Machine Language. Each Language has its own Compiler.
Examples of Compiled Languages:
C, C++, COBOL, and Haskell.
Examples of Compilers for various languages are as follow:
C Pelles C, Power C, Turbo C.
C++ C++ Builder, Borland C++, GCC, Turbo C++
Interpreter
Translates a High level language into an Intermediate code which will be immediately executed. The
Interpreter translates one statement at a time and, if error-free, executes the instruction. Each
Language has its own Interpreter.
Examples of Interpreted Languages:
BASIC, PHP, Perl, lisp, Smalltalk, and Ruby.
Example of Interpreter is:
BASIC Altair BASIC
Difference between Compiler and Interpreter
Compiler Interpreter
Compiler translates the whole program before
execution begins.
Thus Interpreter translates and executes the first
instruction before it goes to the second.
Prepared By;
NOEL MALLE, B.Eng (Computer Engineering)
Kilimanjaro, Tanzania.
Other types include; Assembler, DeCompiler,
DisAssembler .
NOTE:
 JAVA is not listed as Compiled or Interpreted Language because; JAVA programs are Compiled
(to bytecode) then Interpreted. Hence, it is both Compiled and Interpreted Language.
 Assembler is the computer program which translates Assembly Language to Machine Language.
 All Machines (Computer) understand Machine Code (Language) only. Hence, this leads to the
necessities of System Software such as Compiler, and Interpreter to convert High level language
to Machine code. Also, Assembler to convert Assembly Language to Machine Code.
Generations of Computer Languages:
 1st
Generation (Machine language)
 2nd
Generation (Assembly Language)
 3rd
Generation (Problem Oriented Languages such as C, Paschal, FORTRAN, and COBOL)
 4th
Generation( e.g. dBASE, FoxPro, FOCUS)
These are Low level Language
High Level Language
Prepared By;
NOEL MALLE, B.Eng (Computer Engineering)
Kilimanjaro, Tanzania.

Más contenido relacionado

La actualidad más candente

Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1REHAN IJAZ
 
introduction computer programming languages
introduction computer programming languages introduction computer programming languages
introduction computer programming languages BakhatAli3
 
software development and programming languages
software development and programming languages software development and programming languages
software development and programming languages PraShant Kumar
 
Programming languages
Programming languagesProgramming languages
Programming languagesAkash Varaiya
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming conceptssalmankhan570
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programmingManoj Tyagi
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languageseducationfront
 
Programming language
Programming languageProgramming language
Programming languageShuja Qais
 
Program & language generation
Program & language generationProgram & language generation
Program & language generationBuxoo Abdullah
 
Programming languages
Programming languagesProgramming languages
Programming languagesAsmasum
 
Generation of computer languages
Generation of computer languagesGeneration of computer languages
Generation of computer languageskitturashmikittu
 

La actualidad más candente (20)

Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1
 
introduction computer programming languages
introduction computer programming languages introduction computer programming languages
introduction computer programming languages
 
software development and programming languages
software development and programming languages software development and programming languages
software development and programming languages
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languages
 
Software (4).ppt
Software (4).pptSoftware (4).ppt
Software (4).ppt
 
Introduction to computing
Introduction to computingIntroduction to computing
Introduction to computing
 
Programming
ProgrammingProgramming
Programming
 
Programming language
Programming languageProgramming language
Programming language
 
Program & language generation
Program & language generationProgram & language generation
Program & language generation
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Computer
ComputerComputer
Computer
 
Software
SoftwareSoftware
Software
 
Introduction to qbasic
Introduction to qbasicIntroduction to qbasic
Introduction to qbasic
 
COMPUTER PROGRAMMING
COMPUTER PROGRAMMINGCOMPUTER PROGRAMMING
COMPUTER PROGRAMMING
 
Computer software
Computer softwareComputer software
Computer software
 
Generation of computer languages
Generation of computer languagesGeneration of computer languages
Generation of computer languages
 
System software vs application software
System software vs application softwareSystem software vs application software
System software vs application software
 

Destacado

Destacado (11)

Consumer Product Safety Commission3
Consumer Product Safety Commission3Consumer Product Safety Commission3
Consumer Product Safety Commission3
 
Excel Lesson 1: Excel Basics
Excel Lesson 1: Excel BasicsExcel Lesson 1: Excel Basics
Excel Lesson 1: Excel Basics
 
Consumers' welfare and protection
Consumers' welfare and protectionConsumers' welfare and protection
Consumers' welfare and protection
 
Consumerism
ConsumerismConsumerism
Consumerism
 
Computer programmer
Computer programmerComputer programmer
Computer programmer
 
Programmer ppt
Programmer pptProgrammer ppt
Programmer ppt
 
Computer programmer job information
Computer programmer job informationComputer programmer job information
Computer programmer job information
 
Microsoft Excel Basics
Microsoft Excel BasicsMicrosoft Excel Basics
Microsoft Excel Basics
 
Teaching Excel
Teaching ExcelTeaching Excel
Teaching Excel
 
Ppt on consumers rights
Ppt on consumers rightsPpt on consumers rights
Ppt on consumers rights
 
Consumer rights
Consumer rightsConsumer rights
Consumer rights
 

Similar a Introduction to computer programming

1.Overview of Programming.pptx
1.Overview of Programming.pptx1.Overview of Programming.pptx
1.Overview of Programming.pptxVishwas459764
 
Fundamental of Information Technology - UNIT 7
Fundamental of Information Technology - UNIT 7Fundamental of Information Technology - UNIT 7
Fundamental of Information Technology - UNIT 7Shipra Swati
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computerzaheeriqbal41
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and developmentAli Raza
 
Introduction to Programming By Wathika F. Maina
Introduction to Programming By Wathika F. MainaIntroduction to Programming By Wathika F. Maina
Introduction to Programming By Wathika F. MainaNez Computex
 
Introduction to Programming Concepts By Aamir Saleem Ansari
Introduction to Programming Concepts By Aamir Saleem AnsariIntroduction to Programming Concepts By Aamir Saleem Ansari
Introduction to Programming Concepts By Aamir Saleem AnsariTech
 
Programming languages
Programming languagesProgramming languages
Programming languagesgaurav jain
 
Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)Chao-Lung Yang
 
2 Programming Language.pdf
2 Programming Language.pdf2 Programming Language.pdf
2 Programming Language.pdfKINGZzofYouTube
 
lce1 مترجمات.pptx
lce1 مترجمات.pptxlce1 مترجمات.pptx
lce1 مترجمات.pptxSamiAAli44
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Compiler design slide share
Compiler design slide shareCompiler design slide share
Compiler design slide shareSudhaa Ravi
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)nharsh2308
 

Similar a Introduction to computer programming (20)

1.Overview of Programming.pptx
1.Overview of Programming.pptx1.Overview of Programming.pptx
1.Overview of Programming.pptx
 
Fundamental of Information Technology - UNIT 7
Fundamental of Information Technology - UNIT 7Fundamental of Information Technology - UNIT 7
Fundamental of Information Technology - UNIT 7
 
Ppt 1
Ppt 1Ppt 1
Ppt 1
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computer
 
C_NOTES.pdf
C_NOTES.pdfC_NOTES.pdf
C_NOTES.pdf
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
 
Chapter1.pdf
Chapter1.pdfChapter1.pdf
Chapter1.pdf
 
Introduction to Programming By Wathika F. Maina
Introduction to Programming By Wathika F. MainaIntroduction to Programming By Wathika F. Maina
Introduction to Programming By Wathika F. Maina
 
Unit 1
Unit 1Unit 1
Unit 1
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Introduction to Programming Concepts By Aamir Saleem Ansari
Introduction to Programming Concepts By Aamir Saleem AnsariIntroduction to Programming Concepts By Aamir Saleem Ansari
Introduction to Programming Concepts By Aamir Saleem Ansari
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)Introduction to Computer Programming (general background)
Introduction to Computer Programming (general background)
 
2 Programming Language.pdf
2 Programming Language.pdf2 Programming Language.pdf
2 Programming Language.pdf
 
Assembler
AssemblerAssembler
Assembler
 
C lecture notes new
C lecture notes newC lecture notes new
C lecture notes new
 
lce1 مترجمات.pptx
lce1 مترجمات.pptxlce1 مترجمات.pptx
lce1 مترجمات.pptx
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Compiler design slide share
Compiler design slide shareCompiler design slide share
Compiler design slide share
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
 

Último

Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
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 FresherRemote DBA Services
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 

Último (20)

Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
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
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 

Introduction to computer programming

  • 1. 1. Introduction to Programming What is Computer Programming? Is the process of designing, writing, testing, debugging, and maintaining source code of computer programs. (OR) Act of instructing computer to perform the task. Source code Is any computer instruction (possibly with comments) written using some human readable computer language (also known as, High-level Computer Language), usually as text. This source code is written in one or more programming languages (i.e. High-level language such as C, C++, C#, Java, Python, and Smalltalk). Programming Language Refer to the artificial language designed to communicate instruction to a machines particularly a computer. Examples of Programming languages are C, C++, JAVA, Python, Machine Language and Assembly language. Program Is the sequence of instructions, written to perform a specific task with Computer. NOTE:  The purpose of Computer Programming is to create a set of instructions (i.e. Program) that computers use to perform specific operations or to exhibit desired behavior.  Software refers to the collection/set of computer programs and related data to perform a specified task with a computer. Programmer Is the someone who writes the computer program (Software) using any language of hisher choice. Classification of Computer Language:  High-Level Language (Machine Independent Languages) Is the programming language with strong abstraction from the details of the computer. The programmer can create the program using these languages without asking for design detail of the particular Machine which will run his/her program. Prepared By; NOEL MALLE, B.Eng (Computer Engineering) Kilimanjaro, Tanzania.
  • 2. So, there is no need for a Programmer to study the design of the computer (such as, Processor Instruction Set Architecture, Bus types and width, Processor Registers types and size, and other Architecture Design). Hence, programmer focuses only on the Problem to be solved. This is the reason they are also known as Problem-Oriented Languages Furthermore, programs created using these languages are Machine Independent, which means, they can run on Computer with different designs (e.g. Processor type) with little, or no modifications required in their codes. Examples of High-Level Language:  C  C++  JAVA  Low-Level Language (Machine Dependent Languages) Is the programming language that provides little or no abstraction from details of the computer. The programmer must have strong knowledge about Computer design in order to write the program for such Computer. Hence, there is need for a Programmer to study the design of the computer (such as, Processor Instruction Set Architecture, Bus types and width, Processor Registers types and size, and other Architecture Design). Furthermore, programs created using these languages are Machine Dependent, which means, the Program created for particular Machine can’t run on different Machine. Types of Low-Level Languages:  Assembly Language  Machine Language. NOTE: Other Programmers describe C-language as the Middle-Level Language because of the following 2 reasons: A relatively good programming efficiency i.e. faster program development (as compared to low level language) Relatively good machine efficiency i.e. faster program execution (as compared to high level language) Hence, it occupies the space (level) between two, that is, middle level. Prepared By; NOEL MALLE, B.Eng (Computer Engineering) Kilimanjaro, Tanzania.
  • 3. Language Translators Is the computer program that translates a program written in a given programming language into functionally equivalent program in different language. There are various types of Language Translator but I will describe only two types of Language Translators, which are:  Compiler  Interpreter Compiler Translates a high level language (e.g. C, C++) into lower level language (i.e. Machine Language). Compiler checks the entire user-written program (known as the source program) and, if error free, produces a complete program in Machine Language. Each Language has its own Compiler. Examples of Compiled Languages: C, C++, COBOL, and Haskell. Examples of Compilers for various languages are as follow: C Pelles C, Power C, Turbo C. C++ C++ Builder, Borland C++, GCC, Turbo C++ Interpreter Translates a High level language into an Intermediate code which will be immediately executed. The Interpreter translates one statement at a time and, if error-free, executes the instruction. Each Language has its own Interpreter. Examples of Interpreted Languages: BASIC, PHP, Perl, lisp, Smalltalk, and Ruby. Example of Interpreter is: BASIC Altair BASIC Difference between Compiler and Interpreter Compiler Interpreter Compiler translates the whole program before execution begins. Thus Interpreter translates and executes the first instruction before it goes to the second. Prepared By; NOEL MALLE, B.Eng (Computer Engineering) Kilimanjaro, Tanzania. Other types include; Assembler, DeCompiler, DisAssembler .
  • 4. NOTE:  JAVA is not listed as Compiled or Interpreted Language because; JAVA programs are Compiled (to bytecode) then Interpreted. Hence, it is both Compiled and Interpreted Language.  Assembler is the computer program which translates Assembly Language to Machine Language.  All Machines (Computer) understand Machine Code (Language) only. Hence, this leads to the necessities of System Software such as Compiler, and Interpreter to convert High level language to Machine code. Also, Assembler to convert Assembly Language to Machine Code. Generations of Computer Languages:  1st Generation (Machine language)  2nd Generation (Assembly Language)  3rd Generation (Problem Oriented Languages such as C, Paschal, FORTRAN, and COBOL)  4th Generation( e.g. dBASE, FoxPro, FOCUS) These are Low level Language High Level Language Prepared By; NOEL MALLE, B.Eng (Computer Engineering) Kilimanjaro, Tanzania.