2
Most read
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.

More Related Content

PPT
Chapter 1 - An Introduction to Programming
PPT
Programming languages
PPTX
Basic programming concepts
PPTX
Computer Programming
PPT
Computer programming concepts
PPTX
Types of Programming Languages
PPTX
Computer Languages.
PPTX
Programming Languages / Translators
Chapter 1 - An Introduction to Programming
Programming languages
Basic programming concepts
Computer Programming
Computer programming concepts
Types of Programming Languages
Computer Languages.
Programming Languages / Translators

What's hot (20)

PPTX
Software
PPT
Introduction to computer programming
PPTX
Introduction to programming languages
PPT
Programming languages
PPTX
Computer Language Translator
PPTX
Introduction to c programming
PPTX
PPT
Intro To Programming Concepts
PPTX
Programming Fundamentals
PPTX
C programming
PPT
introduction computer programming languages
PPTX
Computer software
PPTX
Programming languages
PPT
Computer languages 11
PPTX
software History
PPTX
Software
PPTX
Language processing activity
PPT
4 evolution-of-programming-languages
PPTX
Programming Language
Software
Introduction to computer programming
Introduction to programming languages
Programming languages
Computer Language Translator
Introduction to c programming
Intro To Programming Concepts
Programming Fundamentals
C programming
introduction computer programming languages
Computer software
Programming languages
Computer languages 11
software History
Software
Language processing activity
4 evolution-of-programming-languages
Programming Language
Ad

Viewers also liked (13)

PPT
Computer Programming - Lecture 1
PPT
Consumer Product Safety Commission3
PPTX
Excel Lesson 1: Excel Basics
PPTX
Consumers' welfare and protection
PPTX
Consumerism
PPTX
Computer programmer
PPTX
Programmer ppt
ODP
Computer programmer job information
PPTX
Microsoft Excel Basics
PPT
Teaching Excel
PPTX
Ppt on consumers rights
PPTX
Introduction to Programming Languages
PPTX
Consumer rights
Computer Programming - Lecture 1
Consumer Product Safety Commission3
Excel Lesson 1: Excel Basics
Consumers' welfare and protection
Consumerism
Computer programmer
Programmer ppt
Computer programmer job information
Microsoft Excel Basics
Teaching Excel
Ppt on consumers rights
Introduction to Programming Languages
Consumer rights
Ad

Similar to Introduction to computer programming (20)

PPTX
Data programming with the minimum hocker
PPTX
Computer Topic (Introduction to Programming).pptx
PPT
Computer languages
PPTX
Computer languages
PPTX
Introduction_to_Programming.pptx
PPTX
Programming Fundamental Slide No.1
PPTX
Intro to programming languages by 4.pptx
PPTX
Computer Languages & its genearations.pptx
PPTX
1. C_Introductionnnnnnnnnnnnnnnnnnnnn.pptx
PPT
Computer languages and generation
PPTX
Computer language
PPTX
Programming fundamentals presentation
PPTX
Lec21&22.pptx programing language and there study
PPTX
Lesson 2.pptx
PPT
C++ Program session new edition 2025.ppt
PPTX
C++ programming languages lectures
PPT
porgrammingymtmutmtmtmtmtmsymxmsrmyytmsts
PPT
Vahida Akhter.ppt regardung computer languages
PPT
Programming language basics.ppt Computer Science
PDF
Chap08 Getting Started with C (ICS12).pdf
Data programming with the minimum hocker
Computer Topic (Introduction to Programming).pptx
Computer languages
Computer languages
Introduction_to_Programming.pptx
Programming Fundamental Slide No.1
Intro to programming languages by 4.pptx
Computer Languages & its genearations.pptx
1. C_Introductionnnnnnnnnnnnnnnnnnnnn.pptx
Computer languages and generation
Computer language
Programming fundamentals presentation
Lec21&22.pptx programing language and there study
Lesson 2.pptx
C++ Program session new edition 2025.ppt
C++ programming languages lectures
porgrammingymtmutmtmtmtmtmsymxmsrmyytmsts
Vahida Akhter.ppt regardung computer languages
Programming language basics.ppt Computer Science
Chap08 Getting Started with C (ICS12).pdf

Recently uploaded (20)

PDF
CCUS-as-the-Missing-Link-to-Net-Zero_AksCurious.pdf
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PDF
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
PDF
ment.tech-Siri Delay Opens AI Startup Opportunity in 2025.pdf
PDF
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
PPTX
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
PPTX
Information-Technology-in-Human-Society.pptx
PDF
Advancing precision in air quality forecasting through machine learning integ...
PPTX
How to Convert Tickets Into Sales Opportunity in Odoo 18
PDF
Identification of potential depression in social media posts
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PDF
CEH Module 2 Footprinting CEH V13, concepts
PDF
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
Introduction to MCP and A2A Protocols: Enabling Agent Communication
PPTX
Build automations faster and more reliably with UiPath ScreenPlay
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
Build Real-Time ML Apps with Python, Feast & NoSQL
PDF
Launch a Bumble-Style App with AI Features in 2025.pdf
CCUS-as-the-Missing-Link-to-Net-Zero_AksCurious.pdf
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
ment.tech-Siri Delay Opens AI Startup Opportunity in 2025.pdf
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
Information-Technology-in-Human-Society.pptx
Advancing precision in air quality forecasting through machine learning integ...
How to Convert Tickets Into Sales Opportunity in Odoo 18
Identification of potential depression in social media posts
Rapid Prototyping: A lecture on prototyping techniques for interface design
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
CEH Module 2 Footprinting CEH V13, concepts
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
Introduction to MCP and A2A Protocols: Enabling Agent Communication
Build automations faster and more reliably with UiPath ScreenPlay
Co-training pseudo-labeling for text classification with support vector machi...
Build Real-Time ML Apps with Python, Feast & NoSQL
Launch a Bumble-Style App with AI Features in 2025.pdf

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.