SlideShare a Scribd company logo
Diploma in Software Engineering
Module II: Programming Concepts
Rasan Samarasinghe
ESOFT Computer Studies (pvt) Ltd.
No 68/1, Main Street, Pallegama, Embilipitiya.
Contents
1. What is computer programming?
2. Programming Styles
3. Unstructured Programming
4. Structured Programming
5. Object Oriented Programming
6. Computer Programs
7. Concept of Algorithm
8. Computer Programs
9. Concept of Algorithm
10. Flow Charts
11. Questions
12. Pseudo Codes
What is computer programming?
Programming is giving instructions to the
computer how to interact with the user or
perform specific task.
Within software engineering, programming is
regarded as one phase in a software
development process.
Programming Styles
There are 3 main programming styles
1. Unstructured Programming
2. Structured Programming
3. Object Oriented Programming
Unstructured Programming
• Unstructured programming is the historically
earliest programming paradigm.
• It is procedural, the statements are executed in
sequence as written.
• This type of programming uses goto statements.
A goto statement allows control to be passed to
any other place in the program.
• Difficult to understand the logic of the program.
Ex: Machine Language, COBOL
Structured Programming
• Structured programming also a subset of
procedural programming that enforces to write
efficient code easier to understand and modify.
• Use of the goto statement is discouraged.
• Structured programming using 3 controls
constructs:
– Sequence
– Selection
– repetition
Ex: Pascal, Ada
Object Oriented Programming
• Object-oriented programming (OOP) is a
programming model organized around objects
rather than actions and data rather than logic.
• It is more popular in present, because it has an
ability to represent complex relationships, data
and data processing with suitable notations.
Ex: Java, C++, C#
Computer Programs
• Sequential Processing
Instructions are performed
one after other in the
computer.
• Concurrent Processing
Instructions are performed
in parallel within the
computer.
Input x
Input y
Total = x+y
Input z
Total = total +z
Input x
Input y
Total = x+y
Input z
Total = total +z
Concept of Algorithm
• An algorithm is a set of steps for solving a
particular problem.
• Algorithm steps are unambiguous and have a
clear stopping point.
• Algorithms can be expressed in any language,
from natural languages or programming
languages.
Flow Charts
A flowchart is a diagrammatic representation
of the process involved to provide a solution
to a problem.
Flow Chart Notations
Start / End of the program
Input / Output
Process
Decision / Repetition
Flow
Connector
Flow Charts
• Question 1:
Draw a flowchart to develop a program to
input the student index number, name and
total marks scored in three modules and
display the students index number, name and
average marks on the screen.
Flow Charts
• Question 2:
Draw a flowchart to develop a program to
input stno, name, module one marks and
module two marks and display stno, name,
avg marks and total marks.
Flow Charts
• Question 3:
A student has sat for an exam and following
details entered through the keyboard;
“student number, name and average marks”. If
he scored more than 50 as average marks he
will be graded as “pass”, otherwise graded as
“fail”. Draw a flowchart to display the student
name, average and grade.
Flow Charts
• Question 4:
Draw a flowchart to input two numbers from
the keyboard and evaluate and display the
maximum value.
Flow Charts
• Question 5:
Draw a flowchart to develop a program to
input student no, name, module one and
module two marks by the keyboard and
display student no, average and the grade. The
grading system is as follows. Average greater
than 75 grade is “distinction”, between 50 and
75 grade is “credit”, between 25 and 50 grade
is “pass” and less than 25 is “fail”.
Flow Charts
• Question 6:
Draw a flowchart to calculate and display the
sum of first five natural numbers.
Flow Charts
• Question 7:
Draw a flowchart to input a number from
keyboard, and there after calculate and
display the factorial number of it.
Flow Charts
• Question 8:
The program has to read a file stored in the
disk in which each record contain customer
number, customer name and amount. Display
only the name of the customers who has
amount greater than 1000. Draw a flowchart
for the above scenario.
Flow Charts
• Question 9:
A program has to be developed to read a file
stored in the disk in which each record contain
employee number, name, basic salary,
allowances and deductions. Calculate and
display all employee names with their net
salary. Draw a flowchart for the above
problem.
Flow Charts
• Question 10:
A program has to be developed to read a file
stored in disk in which each record contain
employee no, name and hours worked.
Calculate and display the percentage of
employees those who has worked more than
40 hours. Draw a flowchart for the above
program.
Flow Charts
• Question 11:
A program has to be developed to read a file
stored in disk in which each record contain
student no, name, subject one marks and
subject two marks. Program is displaying two
student names who has got highest marks and
lowest marks with their total marks. Draw a
flowchart for the above program.
Pseudo Codes
Pseudo code consists of short, English phrases
used to explain specific tasks within a
program's algorithm. Pseudo code should not
include keywords in any specific computer
languages. It should be written as a list of
consecutive phrases.
Pseudo Codes
One of the concepts in programming is…
PROGRAM = DATA + ALGORITHM
Data
 Data types: String, Integer, Real
 Data usage: Variable, Constant
 Data scope: Global data, Local data
Algorithm
 Sequence
 Selection
 Repetition
The End
http://twitter.com/rasansmn

More Related Content

PPT
C programming for Computing Techniques
PDF
C aptitude book
PPT
Coding
PPT
9781111530532 ppt ch02
PPT
9781439035665 ppt ch02
PDF
Problem solving methodology
PPTX
Unit 1. Problem Solving with Computer
PPT
Logic Formulation 2
C programming for Computing Techniques
C aptitude book
Coding
9781111530532 ppt ch02
9781439035665 ppt ch02
Problem solving methodology
Unit 1. Problem Solving with Computer
Logic Formulation 2

What's hot (20)

PPT
Program design and problem solving techniques
DOCX
Chapter 9 & chapter 10 solutions
PPTX
Programming Fundamentals
PPT
2.2 Demonstrate the understanding of Programming Life Cycle
PDF
Lecture2 general structure of a compiler
PPT
9781111530532 ppt ch01
PPT
Problem solving using Computer
PPT
Chapter 2 - Basic Elements of Java
PPT
Unit 1 python (2021 r)
PPTX
Procedural programming
PPTX
C programming
PPT
9781111530532 ppt ch04
PDF
The pseudocode
PDF
265 ge8151 problem solving and python programming - 2 marks with answers
PDF
Unit 1-problem solving with algorithm
PPTX
Programming Paradigm & Languages
PDF
Cyclomatic complexity
PPT
9781111530532 ppt ch03
PPTX
C++ ppt
PPT
Intro. to prog. c++
Program design and problem solving techniques
Chapter 9 & chapter 10 solutions
Programming Fundamentals
2.2 Demonstrate the understanding of Programming Life Cycle
Lecture2 general structure of a compiler
9781111530532 ppt ch01
Problem solving using Computer
Chapter 2 - Basic Elements of Java
Unit 1 python (2021 r)
Procedural programming
C programming
9781111530532 ppt ch04
The pseudocode
265 ge8151 problem solving and python programming - 2 marks with answers
Unit 1-problem solving with algorithm
Programming Paradigm & Languages
Cyclomatic complexity
9781111530532 ppt ch03
C++ ppt
Intro. to prog. c++
Ad

Viewers also liked (20)

PPSX
DISE - OOAD Using UML
PPSX
DISE - Windows Based Application Development in Java
PPT
Lecture#2 Computer languages computer system and Programming EC-105
PPSX
DITEC - Expose yourself to Internet & E-mail (second update)
PPT
Program Logic Formulation - Ohio State University
PPSX
DITEC - Expose yourself to Internet & E-mail (updated)
PPSX
DITEC - Expose yourself to Internet & E-mail
PPSX
DITEC - Programming with C#.NET
PPT
C++ for beginners
PPT
Lecture 19 matlab_script&function_files06
PPTX
Computer programming
PPSX
DITEC - Software Engineering
PPSX
DISE - Windows Based Application Development in C#
PPSX
DISE - Introduction to Software Engineering
PPTX
Apt programming
PPSX
DITEC - E-Commerce & ASP.NET
DOC
Lab 5 array
PDF
Use of computer programming in animal diet formulation
PPSX
DITEC - Programming with Java
PPSX
DISE - Database Concepts
DISE - OOAD Using UML
DISE - Windows Based Application Development in Java
Lecture#2 Computer languages computer system and Programming EC-105
DITEC - Expose yourself to Internet & E-mail (second update)
Program Logic Formulation - Ohio State University
DITEC - Expose yourself to Internet & E-mail (updated)
DITEC - Expose yourself to Internet & E-mail
DITEC - Programming with C#.NET
C++ for beginners
Lecture 19 matlab_script&function_files06
Computer programming
DITEC - Software Engineering
DISE - Windows Based Application Development in C#
DISE - Introduction to Software Engineering
Apt programming
DITEC - E-Commerce & ASP.NET
Lab 5 array
Use of computer programming in animal diet formulation
DITEC - Programming with Java
DISE - Database Concepts
Ad

Similar to DISE - Programming Concepts (20)

PPTX
Algorithm and flowchart.pptx
PPTX
What is algorithm
PPT
Algorithms and Flowchart.ppt
PPT
3 algorithm-and-flowchart
PPSX
Algorithm and flowchart
PPT
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
PPTX
Data Structures_Introduction to algorithms.pptx
PPTX
Algorithm and flowchart
PPTX
Lesson 1 of c programming algorithms and flowcharts.pptx
PPTX
Algorithms and flowcharts
PPT
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
PPTX
Algorithm,Pseudocode,Flowchart.pptx
PPT
Lecture1-Algorithms-and-Flowchart-ppt.ppt
PPT
Lect1-Algorithms-and-Flowchart PPT presentation
PPT
Lect1-Algorithms-and-Flowchart-ppt (1).ppt
PPT
Lecture1-Algorithms-and-Flowchart-ppt.ppt
PPT
Lect1 - Algorithms-and-Flowchart-ppt.ppt
PPT
Basic Slides on Algorithms and Flowcharts
PPTX
Flowcharts and pseudocodes
PPT
Algorithms and Flowchart usages in C laguage
Algorithm and flowchart.pptx
What is algorithm
Algorithms and Flowchart.ppt
3 algorithm-and-flowchart
Algorithm and flowchart
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Data Structures_Introduction to algorithms.pptx
Algorithm and flowchart
Lesson 1 of c programming algorithms and flowcharts.pptx
Algorithms and flowcharts
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Algorithm,Pseudocode,Flowchart.pptx
Lecture1-Algorithms-and-Flowchart-ppt.ppt
Lect1-Algorithms-and-Flowchart PPT presentation
Lect1-Algorithms-and-Flowchart-ppt (1).ppt
Lecture1-Algorithms-and-Flowchart-ppt.ppt
Lect1 - Algorithms-and-Flowchart-ppt.ppt
Basic Slides on Algorithms and Flowcharts
Flowcharts and pseudocodes
Algorithms and Flowchart usages in C laguage

More from Rasan Samarasinghe (20)

PPTX
Managing the under performance in projects.pptx
PPTX
Agile project management with scrum
PPTX
Introduction to Agile
PPSX
IT Introduction (en)
PPSX
Application of Unified Modelling Language
PPSX
Advanced Web Development in PHP - Understanding REST API
PPSX
Advanced Web Development in PHP - Understanding Project Development Methodolo...
PPSX
Advanced Web Development in PHP - Code Versioning and Branching with Git
PPSX
DIWE - Working with MySQL Databases
PPSX
DIWE - Using Extensions and Image Manipulation
PPSX
DIWE - File handling with PHP
PPSX
DIWE - Advanced PHP Concepts
PPSX
DIWE - Fundamentals of PHP
PPSX
DIWE - Programming with JavaScript
PPSX
DIWE - Coding HTML for Basic Web Designing
PPSX
DIWE - Multimedia Technologies
PPSX
Esoft Metro Campus - Programming with C++
PPSX
Esoft Metro Campus - Certificate in c / c++ programming
PPSX
Esoft Metro Campus - Certificate in java basics
PPSX
DISE - Software Testing and Quality Management
Managing the under performance in projects.pptx
Agile project management with scrum
Introduction to Agile
IT Introduction (en)
Application of Unified Modelling Language
Advanced Web Development in PHP - Understanding REST API
Advanced Web Development in PHP - Understanding Project Development Methodolo...
Advanced Web Development in PHP - Code Versioning and Branching with Git
DIWE - Working with MySQL Databases
DIWE - Using Extensions and Image Manipulation
DIWE - File handling with PHP
DIWE - Advanced PHP Concepts
DIWE - Fundamentals of PHP
DIWE - Programming with JavaScript
DIWE - Coding HTML for Basic Web Designing
DIWE - Multimedia Technologies
Esoft Metro Campus - Programming with C++
Esoft Metro Campus - Certificate in c / c++ programming
Esoft Metro Campus - Certificate in java basics
DISE - Software Testing and Quality Management

Recently uploaded (20)

PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
System and Network Administraation Chapter 3
PDF
AI in Product Development-omnex systems
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
medical staffing services at VALiNTRY
PDF
Digital Strategies for Manufacturing Companies
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
ISO 45001 Occupational Health and Safety Management System
PPT
Introduction Database Management System for Course Database
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
history of c programming in notes for students .pptx
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
System and Network Administraation Chapter 3
AI in Product Development-omnex systems
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Odoo Companies in India – Driving Business Transformation.pdf
Operating system designcfffgfgggggggvggggggggg
2025 Textile ERP Trends: SAP, Odoo & Oracle
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Design an Analysis of Algorithms I-SECS-1021-03
VVF-Customer-Presentation2025-Ver1.9.pptx
medical staffing services at VALiNTRY
Digital Strategies for Manufacturing Companies
Understanding Forklifts - TECH EHS Solution
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
ISO 45001 Occupational Health and Safety Management System
Introduction Database Management System for Course Database
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
history of c programming in notes for students .pptx
Internet Downloader Manager (IDM) Crack 6.42 Build 41
How to Choose the Right IT Partner for Your Business in Malaysia

DISE - Programming Concepts

  • 1. Diploma in Software Engineering Module II: Programming Concepts Rasan Samarasinghe ESOFT Computer Studies (pvt) Ltd. No 68/1, Main Street, Pallegama, Embilipitiya.
  • 2. Contents 1. What is computer programming? 2. Programming Styles 3. Unstructured Programming 4. Structured Programming 5. Object Oriented Programming 6. Computer Programs 7. Concept of Algorithm 8. Computer Programs 9. Concept of Algorithm 10. Flow Charts 11. Questions 12. Pseudo Codes
  • 3. What is computer programming? Programming is giving instructions to the computer how to interact with the user or perform specific task. Within software engineering, programming is regarded as one phase in a software development process.
  • 4. Programming Styles There are 3 main programming styles 1. Unstructured Programming 2. Structured Programming 3. Object Oriented Programming
  • 5. Unstructured Programming • Unstructured programming is the historically earliest programming paradigm. • It is procedural, the statements are executed in sequence as written. • This type of programming uses goto statements. A goto statement allows control to be passed to any other place in the program. • Difficult to understand the logic of the program. Ex: Machine Language, COBOL
  • 6. Structured Programming • Structured programming also a subset of procedural programming that enforces to write efficient code easier to understand and modify. • Use of the goto statement is discouraged. • Structured programming using 3 controls constructs: – Sequence – Selection – repetition Ex: Pascal, Ada
  • 7. Object Oriented Programming • Object-oriented programming (OOP) is a programming model organized around objects rather than actions and data rather than logic. • It is more popular in present, because it has an ability to represent complex relationships, data and data processing with suitable notations. Ex: Java, C++, C#
  • 8. Computer Programs • Sequential Processing Instructions are performed one after other in the computer. • Concurrent Processing Instructions are performed in parallel within the computer. Input x Input y Total = x+y Input z Total = total +z Input x Input y Total = x+y Input z Total = total +z
  • 9. Concept of Algorithm • An algorithm is a set of steps for solving a particular problem. • Algorithm steps are unambiguous and have a clear stopping point. • Algorithms can be expressed in any language, from natural languages or programming languages.
  • 10. Flow Charts A flowchart is a diagrammatic representation of the process involved to provide a solution to a problem.
  • 11. Flow Chart Notations Start / End of the program Input / Output Process Decision / Repetition Flow Connector
  • 12. Flow Charts • Question 1: Draw a flowchart to develop a program to input the student index number, name and total marks scored in three modules and display the students index number, name and average marks on the screen.
  • 13. Flow Charts • Question 2: Draw a flowchart to develop a program to input stno, name, module one marks and module two marks and display stno, name, avg marks and total marks.
  • 14. Flow Charts • Question 3: A student has sat for an exam and following details entered through the keyboard; “student number, name and average marks”. If he scored more than 50 as average marks he will be graded as “pass”, otherwise graded as “fail”. Draw a flowchart to display the student name, average and grade.
  • 15. Flow Charts • Question 4: Draw a flowchart to input two numbers from the keyboard and evaluate and display the maximum value.
  • 16. Flow Charts • Question 5: Draw a flowchart to develop a program to input student no, name, module one and module two marks by the keyboard and display student no, average and the grade. The grading system is as follows. Average greater than 75 grade is “distinction”, between 50 and 75 grade is “credit”, between 25 and 50 grade is “pass” and less than 25 is “fail”.
  • 17. Flow Charts • Question 6: Draw a flowchart to calculate and display the sum of first five natural numbers.
  • 18. Flow Charts • Question 7: Draw a flowchart to input a number from keyboard, and there after calculate and display the factorial number of it.
  • 19. Flow Charts • Question 8: The program has to read a file stored in the disk in which each record contain customer number, customer name and amount. Display only the name of the customers who has amount greater than 1000. Draw a flowchart for the above scenario.
  • 20. Flow Charts • Question 9: A program has to be developed to read a file stored in the disk in which each record contain employee number, name, basic salary, allowances and deductions. Calculate and display all employee names with their net salary. Draw a flowchart for the above problem.
  • 21. Flow Charts • Question 10: A program has to be developed to read a file stored in disk in which each record contain employee no, name and hours worked. Calculate and display the percentage of employees those who has worked more than 40 hours. Draw a flowchart for the above program.
  • 22. Flow Charts • Question 11: A program has to be developed to read a file stored in disk in which each record contain student no, name, subject one marks and subject two marks. Program is displaying two student names who has got highest marks and lowest marks with their total marks. Draw a flowchart for the above program.
  • 23. Pseudo Codes Pseudo code consists of short, English phrases used to explain specific tasks within a program's algorithm. Pseudo code should not include keywords in any specific computer languages. It should be written as a list of consecutive phrases.
  • 24. Pseudo Codes One of the concepts in programming is… PROGRAM = DATA + ALGORITHM Data  Data types: String, Integer, Real  Data usage: Variable, Constant  Data scope: Global data, Local data Algorithm  Sequence  Selection  Repetition

Editor's Notes

  • #12: Oval Parallelogram Rectangle Diamond Arrow Connector