SlideShare a Scribd company logo
Introduction to Computer
Programming
Chapter One
Created by:
Mr. Hidra
Introduction to Programming language
A programming language is a language designed to communicate
instructions to a computer.
Thus, Programming language is a set of commands, strings or characters
readable by programmers but easily translatable to machine code.
It has the following
❖ Syntax: Is a set of rules that define how the commands have to be
arranged to make sense
❖ Grammar: Is a set of rules of using different punctuation, quotation
marks, semicolons,
❖ Semantics: Is a set of meanings assigned to every command of the
language and is used to properly translate the program to machine
code.
Classification of Programming language
Programming Language can be grouped into
three namely;
1)Machine Languages,
2)Assembly Languages and
3)High level Languages.
1: Machine Language:
Machine language is a collection of binary digits
or bits that the computer reads and interprets.
Machine language is the only language a computer
is capable of understanding.
Machine level language is a language that supports
the machine side of the programming or does not
provide human side of the programming. It consists
of (binary) zeros and ones.
2: Assembly Language:
Assembly language is easier to use than machine
language.
An assembler is useful for detecting programming errors.
Programmers do not have the absolute address of data
items.
Assembly language encourage modular programming.
3: High level language
High level language is a language that supports the human and the
application sides of the programming.
Consequently more programming is now done in high level
languages.
Examples of high-level languages are
✓ BASIC,
✓ FORTRAN etc.
Attribute of good Programming Language
Some of very good characteristics of a good programming language are,
❖ Clarity, Simplicity and Unity:
❖ Orthogonality:
❖ Support for Abstraction:
❖ Programming Environment:
❖ Ease of program verification/Reusability:
❖ Portability of programs:
Program performance and features of programming
languages
Performance of a program, including
❑ Reliability,
❑ Readability,
❑ Writability,
❑ Reusability and
❑ Efficiency.
Programming Development Cycle:
The various stages in the development of a computer
program are:-
▪Problem Definition.
▪Program Design.
▪Coding.
▪Debugging.
▪Testing.
▪Documentation.
▪Maintenance.
Cont..
1) Problem Definition:
In this step the problem has to be defined formally, by being sure
understanding what the program should do, that is, what the
output should be.
2) Program Design:
The next stage is the program design. The software developer
makes use of tools like algorithms and flowcharts to develop the
design of the program.
✓Algorithm.
✓Flowchart.
Cont..
3) Choose the interface: Select the objects.
Determine how the input will be obtained and how the output will be
displayed. Then create appropriate commands to allow the user to control the
program.
4) Coding:
Coding is the technical word for writing the program, by translate the
algorithm into a programming language.
For effective coding some of the guide lines which are applied are :
✓ Use of meaningful names and labels of variables,
✓ Simple and clear expressions,
✓ Making use of comments and indenting the code properly,
✓ Avoiding jumps in the program to transfer control.
Cont..
5) Debugging:
At this stage the errors in the programs are detected and corrected.
Debugging is also known as program validation.
Some common errors which might occur in the programs
include:
✓ UN initialization of variables.
✓ Reversing of order of operands.
✓ Confusion of numbers and characters.
✓ Inverting of conditions. Eg: - Jumping on zero instead of on not
zero.
Cont..
6) Testing:-
The program is tested on a number of suitable test cases.
A test plan of the program has to be done at the stage of
the program design itself.
This ensures a thorough understanding of the
specifications.
The most trivial and the most special cases should be
identified and tested.
It is always useful to include the maximum and minimum
values of all variables as test data.
Cont..
7) Complete the documentation: Organize all the material that
describes the program.
Documentation is intended to allow another person, or the programmer
at a later date, to understand the program.
Internal documentation consists of statements in the program that are
not executed, but point out the purposes of various parts of the
program.
Documentation might also consist of a detailed description of what the
program does and how to use the program (for instance, what type of
input is expected).
For commercial programs, documentation includes an instruction
manual.
Other types of documentation are the
✓Flowchart and
✓Pseudocode
Programming Tools
Tools used to convert algorithms into computer programs:
1: Pseudocode: An informal high-level description of the
operating principle of a computer program.
It uses the structural conventions of a programming language, but
is intended for human reading rather than machine reading.
2: Flowcharts: Graphically depict the logical steps to carry out a
task and show how the steps relate to each other.
Pseudocode vs Flowcharts
Pseudocode
• Artificial and Informal
language
• Helps programmers to
plan an algorithm
• Similar to everyday
English
• Not an actual
programming language
Flowcharts
• A graphical way of writing
pseudocode
• Rounded rectangle –terminal
• Parallelogram –input / output
• Rectangle –actions
• Diamonds –decision /
conditional
• Circles –connector
Flowchart Symbols
Example Flowchart
Programming Language Generations
1GL or first-generation language: This was (and still is) machine
language or the level of instructions and data that the processor is actually
given to work on.
2GL or second-generation language: Is assembler(sometimes called
"assembly") language.
3GL or third-generation language: Is a "high-level" programming
language, such as HTML, C, or Java. A compiler converts the statements of a
specific high-level programming language into machine language. A 3GL
language requires a considerable amount of programming knowledge.
4GL or fourth-generation language: Is designed to be closer to natural
language than a 3GL language. Languages for accessing databases are often
described as 4GLs.
5GL or fifth-generation language: Is programming that uses a visual or
graphical development interface to create source language that is usually
compiled with a 3GL or 4GL language compiler.
This Makes and End of Chapter One
Questions…..?

More Related Content

Similar to Introduction to computer programming language (20)

PPTX
Introduction with Programming Language
Saroar Zahan Sojib
 
PPTX
Introduction to computer programming
Sangheethaa Sukumaran
 
PDF
Fundamentals of programming with C++
Seble Nigussie
 
PPTX
introduction to programming
Gaea Bonita
 
PDF
structured programming Introduction to c fundamentals
OMWOMA JACKSON
 
PPTX
Chapter 2.pptx
TamiratDejene1
 
PPT
01CHAP_1.PPT
ManoRanjani30
 
PPT
programming language(C++) chapter-one contd.ppt
Fuadsabseb
 
PDF
LESSON__1-15 C-PROGRAMMING.p algorithm df
AparnaPriyadarsiniMe
 
PPTX
UNIT 2 ECSE-2.pptx
AdharshKokkula
 
PPTX
Computer programming
Mohamed Asarudeen
 
PPTX
INTRODUCTION TO C++, Chapter 1
Mubarek Kurt
 
PPTX
Introduction to Programming kkkkkkkkkkkkk
kimtrm34
 
PPTX
Introduction To Computer Programming
Hussain Buksh
 
PPTX
Computer program, computer languages, computer software
Sweta Kumari Barnwal
 
PPT
Fundamentals of Programming Chapter 2
Mohd Harris Ahmad Jaal
 
PDF
Python Lecture as introduction of the programming
GayanIndunil1
 
PDF
Problem Solving and Programming using C.pdf
PradeepT42
 
PPTX
Mcs lec2
Faiza Gull
 
Introduction with Programming Language
Saroar Zahan Sojib
 
Introduction to computer programming
Sangheethaa Sukumaran
 
Fundamentals of programming with C++
Seble Nigussie
 
introduction to programming
Gaea Bonita
 
structured programming Introduction to c fundamentals
OMWOMA JACKSON
 
Chapter 2.pptx
TamiratDejene1
 
01CHAP_1.PPT
ManoRanjani30
 
programming language(C++) chapter-one contd.ppt
Fuadsabseb
 
LESSON__1-15 C-PROGRAMMING.p algorithm df
AparnaPriyadarsiniMe
 
UNIT 2 ECSE-2.pptx
AdharshKokkula
 
Computer programming
Mohamed Asarudeen
 
INTRODUCTION TO C++, Chapter 1
Mubarek Kurt
 
Introduction to Programming kkkkkkkkkkkkk
kimtrm34
 
Introduction To Computer Programming
Hussain Buksh
 
Computer program, computer languages, computer software
Sweta Kumari Barnwal
 
Fundamentals of Programming Chapter 2
Mohd Harris Ahmad Jaal
 
Python Lecture as introduction of the programming
GayanIndunil1
 
Problem Solving and Programming using C.pdf
PradeepT42
 
Mcs lec2
Faiza Gull
 

More from hidrahrama (6)

PPTX
Microsoft Word basics for students learning notes
hidrahrama
 
PDF
Structured programming language students notes
hidrahrama
 
PDF
Programming language evolution and paradigm
hidrahrama
 
PDF
concepts-in-programming-languages-2kuots4121.pdf
hidrahrama
 
PPTX
Computer Applications Microsoft Office PowerPoint
hidrahrama
 
PPTX
Computer Systems for second school students notes
hidrahrama
 
Microsoft Word basics for students learning notes
hidrahrama
 
Structured programming language students notes
hidrahrama
 
Programming language evolution and paradigm
hidrahrama
 
concepts-in-programming-languages-2kuots4121.pdf
hidrahrama
 
Computer Applications Microsoft Office PowerPoint
hidrahrama
 
Computer Systems for second school students notes
hidrahrama
 
Ad

Recently uploaded (20)

PDF
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPTX
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPTX
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
Controller Request and Response in Odoo18
Celine George
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
Ad

Introduction to computer programming language

  • 2. Introduction to Programming language A programming language is a language designed to communicate instructions to a computer. Thus, Programming language is a set of commands, strings or characters readable by programmers but easily translatable to machine code. It has the following ❖ Syntax: Is a set of rules that define how the commands have to be arranged to make sense ❖ Grammar: Is a set of rules of using different punctuation, quotation marks, semicolons, ❖ Semantics: Is a set of meanings assigned to every command of the language and is used to properly translate the program to machine code.
  • 3. Classification of Programming language Programming Language can be grouped into three namely; 1)Machine Languages, 2)Assembly Languages and 3)High level Languages.
  • 4. 1: Machine Language: Machine language is a collection of binary digits or bits that the computer reads and interprets. Machine language is the only language a computer is capable of understanding. Machine level language is a language that supports the machine side of the programming or does not provide human side of the programming. It consists of (binary) zeros and ones.
  • 5. 2: Assembly Language: Assembly language is easier to use than machine language. An assembler is useful for detecting programming errors. Programmers do not have the absolute address of data items. Assembly language encourage modular programming.
  • 6. 3: High level language High level language is a language that supports the human and the application sides of the programming. Consequently more programming is now done in high level languages. Examples of high-level languages are ✓ BASIC, ✓ FORTRAN etc.
  • 7. Attribute of good Programming Language Some of very good characteristics of a good programming language are, ❖ Clarity, Simplicity and Unity: ❖ Orthogonality: ❖ Support for Abstraction: ❖ Programming Environment: ❖ Ease of program verification/Reusability: ❖ Portability of programs:
  • 8. Program performance and features of programming languages Performance of a program, including ❑ Reliability, ❑ Readability, ❑ Writability, ❑ Reusability and ❑ Efficiency.
  • 9. Programming Development Cycle: The various stages in the development of a computer program are:- ▪Problem Definition. ▪Program Design. ▪Coding. ▪Debugging. ▪Testing. ▪Documentation. ▪Maintenance.
  • 10. Cont.. 1) Problem Definition: In this step the problem has to be defined formally, by being sure understanding what the program should do, that is, what the output should be. 2) Program Design: The next stage is the program design. The software developer makes use of tools like algorithms and flowcharts to develop the design of the program. ✓Algorithm. ✓Flowchart.
  • 11. Cont.. 3) Choose the interface: Select the objects. Determine how the input will be obtained and how the output will be displayed. Then create appropriate commands to allow the user to control the program. 4) Coding: Coding is the technical word for writing the program, by translate the algorithm into a programming language. For effective coding some of the guide lines which are applied are : ✓ Use of meaningful names and labels of variables, ✓ Simple and clear expressions, ✓ Making use of comments and indenting the code properly, ✓ Avoiding jumps in the program to transfer control.
  • 12. Cont.. 5) Debugging: At this stage the errors in the programs are detected and corrected. Debugging is also known as program validation. Some common errors which might occur in the programs include: ✓ UN initialization of variables. ✓ Reversing of order of operands. ✓ Confusion of numbers and characters. ✓ Inverting of conditions. Eg: - Jumping on zero instead of on not zero.
  • 13. Cont.. 6) Testing:- The program is tested on a number of suitable test cases. A test plan of the program has to be done at the stage of the program design itself. This ensures a thorough understanding of the specifications. The most trivial and the most special cases should be identified and tested. It is always useful to include the maximum and minimum values of all variables as test data.
  • 14. Cont.. 7) Complete the documentation: Organize all the material that describes the program. Documentation is intended to allow another person, or the programmer at a later date, to understand the program. Internal documentation consists of statements in the program that are not executed, but point out the purposes of various parts of the program. Documentation might also consist of a detailed description of what the program does and how to use the program (for instance, what type of input is expected). For commercial programs, documentation includes an instruction manual. Other types of documentation are the ✓Flowchart and ✓Pseudocode
  • 15. Programming Tools Tools used to convert algorithms into computer programs: 1: Pseudocode: An informal high-level description of the operating principle of a computer program. It uses the structural conventions of a programming language, but is intended for human reading rather than machine reading. 2: Flowcharts: Graphically depict the logical steps to carry out a task and show how the steps relate to each other.
  • 16. Pseudocode vs Flowcharts Pseudocode • Artificial and Informal language • Helps programmers to plan an algorithm • Similar to everyday English • Not an actual programming language Flowcharts • A graphical way of writing pseudocode • Rounded rectangle –terminal • Parallelogram –input / output • Rectangle –actions • Diamonds –decision / conditional • Circles –connector
  • 19. Programming Language Generations 1GL or first-generation language: This was (and still is) machine language or the level of instructions and data that the processor is actually given to work on. 2GL or second-generation language: Is assembler(sometimes called "assembly") language. 3GL or third-generation language: Is a "high-level" programming language, such as HTML, C, or Java. A compiler converts the statements of a specific high-level programming language into machine language. A 3GL language requires a considerable amount of programming knowledge. 4GL or fourth-generation language: Is designed to be closer to natural language than a 3GL language. Languages for accessing databases are often described as 4GLs. 5GL or fifth-generation language: Is programming that uses a visual or graphical development interface to create source language that is usually compiled with a 3GL or 4GL language compiler.
  • 20. This Makes and End of Chapter One Questions…..?