SlideShare a Scribd company logo
Dr B T Sampath Kumar
Professor
Department of Library and Information Science
Tumkur University, Tumakuru, INDIA
www.sampathkumar.info
Programming
Programing
• Program is a set of instructions.
• Programming is a process of creating a set of
instructions that tell a computer how to
perform a task.
• Programming can be done using a variety of
computer languages, such as C, C++, Java,
HTML etc.
• Collection of program is software.
Steps in programming
• Understanding the problem.
• Design a solution.
• Write algorithm and draw flowchart.
• Coding.
• Programming testing and debugging.
• Documentation.
Understanding the problem
• This is the first step in programming.
• The programmer should understand the
problem thoroughly in terms of requirements
i.e. what is the:
– input and
– output operations to be performed.
• If the problem is not properly interpreted then
it is not possible to obtain the desired results.
Design a solution
• Once the problem is thoroughly understood,
then it is necessary to plan for the method of
solution.
• Depending upon the size of the task, the
program preparation may be shared amongst
many programmers.
Cont..
• Large programs may require each programmer
to write a separate part of the program.
• These separate parts are often called as
modules or segments.
• These modules may be prepared and tested
separately, then linked together and tested as
a whole program.
Write Algorithm and draw Flowchart
• An algorithm is non-computer language.
• It is a problem solving technique.
• It can be defined as a “step by step procedure
to solve a particular problem”.
Algorithm to add two numbers
• Step 1: Read two numbers a, b
• Step 2: Add two numbers (c=a+b)
• Step 3: Print the sum, c
• Step 4: End of algorithm
• Step 5: Stop
Algorithm to calculate the area of a
triangle
• Step 1: Start
• Step 2: Read length and breadth
• Step 3: a=1/2*b*l
• Step 4: Print ‘a’
• Step 5: Stop
Breadth (b)
L
e
n
gt
h
(l)
Flowcharting
• Flowcharting is a method of representing with
symbols, their operation and their sequence
of execution in information processing.
Symbols used in Flowchart
Start/Stop
General processing
ConnectorInput/output
Decision
Flowchart to add three numbers
Read the
numbers
Coding
• The process of writing computer instructions in a
programming language (C or C++) is known as
Coding.
Program written in C is as follows:
int main()
{
int a,b,c,d;
printf(“Enter any three numbers");
scanf("%d%d%d", &a, &b, &c);
d=(a+b+c);
printf("The sum of three number is = %dn",d);
}
Program testing and debugging
• The programmer might have made logical
errors in sequencing or perhaps errors were
made in entering the code.
• The process of correcting such errors is called
debugging.
Documentation
• For a programmer reliable documentation is
always a must.
• The presence of documentation helps keep
track of all aspects of an application and
it improves on the quality of a software
product.
• Its main focuses are development,
maintenance and knowledge transfer to other
developers.

More Related Content

What's hot (20)

PPTX
Introduction to Computers Lecture # 12
Sehrish Rafiq
 
PPTX
Computer-charecteristics,types of languages,translators
VarshaSivashanker
 
PPT
Introductiontocomputerprogramming 140713205433-phpapp02
Lanie Plecerda
 
PPT
Lecture 5 - Structured Programming Language
Md. Imran Hossain Showrov
 
PPT
Lecture 22 - Error Handling
Md. Imran Hossain Showrov
 
PPT
Introduction to computer programming
NSU-Biliran Campus
 
PPTX
Programming for Problem Solving
Sukhendra Singh
 
PPTX
system software and application software, compiler, interpreter & assembler
chetan birla
 
PPT
Lecture 4- Computer Software and Languages
Md. Imran Hossain Showrov
 
PPTX
Types of system software
Inderbir Kaur Sandhu
 
PPTX
Algorithms - Introduction to computer programming
baabtra.com - No. 1 supplier of quality freshers
 
PPT
L2 ch1
Taqsim Rajon
 
PPT
Computer software
Hardik Patel
 
PPTX
Basic terms used in microprocessor
RamaPrabha24
 
PPTX
Introduction to Computer System
Ashmita Tuition Center
 
PDF
Computer Programs & System Softwares
Abijah Naresh Jumani
 
PPT
Software tools
ravindravekariya
 
PPTX
Chapter 1: Intro to Funds of Programming
ricsanmae
 
PPTX
Computer definition
Marivic Miole
 
PDF
Ch0 computer systems overview
AboubakarIbrahima
 
Introduction to Computers Lecture # 12
Sehrish Rafiq
 
Computer-charecteristics,types of languages,translators
VarshaSivashanker
 
Introductiontocomputerprogramming 140713205433-phpapp02
Lanie Plecerda
 
Lecture 5 - Structured Programming Language
Md. Imran Hossain Showrov
 
Lecture 22 - Error Handling
Md. Imran Hossain Showrov
 
Introduction to computer programming
NSU-Biliran Campus
 
Programming for Problem Solving
Sukhendra Singh
 
system software and application software, compiler, interpreter & assembler
chetan birla
 
Lecture 4- Computer Software and Languages
Md. Imran Hossain Showrov
 
Types of system software
Inderbir Kaur Sandhu
 
Algorithms - Introduction to computer programming
baabtra.com - No. 1 supplier of quality freshers
 
L2 ch1
Taqsim Rajon
 
Computer software
Hardik Patel
 
Basic terms used in microprocessor
RamaPrabha24
 
Introduction to Computer System
Ashmita Tuition Center
 
Computer Programs & System Softwares
Abijah Naresh Jumani
 
Software tools
ravindravekariya
 
Chapter 1: Intro to Funds of Programming
ricsanmae
 
Computer definition
Marivic Miole
 
Ch0 computer systems overview
AboubakarIbrahima
 

Similar to Programming (20)

PPTX
MODULE1-INTRODUCTION.pptx-COMPUTER PROGRAMING
MarcMiguel2
 
PDF
Algorithm.pdf
MIT,Imphal
 
PPT
C programming for Computing Techniques
Appili Vamsi Krishna
 
PPTX
Programming logic &practices
HABEEBRAHMANKALATHIL
 
PPTX
3 Program Development Life Cycle.aaaaapptx
EG20910848921ISAACDU
 
PDF
Algorithmic problem sloving
Mani Kandan
 
PPTX
1.0 Introduction to C programming for all first year courses.pptx
Javed Pendhari
 
PPTX
Basic Programming concepts - Programming with C++
Mohamed El Desouki
 
PDF
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
dinesh620610
 
PPTX
asic computer is an electronic device that can receive, store, process, and o...
vaishalisharma125399
 
PPT
Unit 1 python (2021 r)
praveena p
 
PPTX
Programming str_Language of Logic/c.pptx
MsKGowriDhilipkumar
 
PPTX
Pj01 1-computer and programming fundamentals
SasidharaRaoMarrapu
 
PDF
PPS Unit-1.pdf
NenavathSurendhar
 
PPTX
Programming _Language of Logic_ PPT.pptx
MsKGowriDhilipkumar
 
PPTX
Lec01-02 (Topic 1 C++ Fundamentals).pptx
NabilHarith2
 
PPT
Programing Fundamental
Qazi Shahzad Ali
 
DOCX
Lecture1
Andrew Raj
 
PPT
programming language(C++) chapter-one contd.ppt
Fuadsabseb
 
PDF
Problem solving methodology
Prof. Dr. K. Adisesha
 
MODULE1-INTRODUCTION.pptx-COMPUTER PROGRAMING
MarcMiguel2
 
Algorithm.pdf
MIT,Imphal
 
C programming for Computing Techniques
Appili Vamsi Krishna
 
Programming logic &practices
HABEEBRAHMANKALATHIL
 
3 Program Development Life Cycle.aaaaapptx
EG20910848921ISAACDU
 
Algorithmic problem sloving
Mani Kandan
 
1.0 Introduction to C programming for all first year courses.pptx
Javed Pendhari
 
Basic Programming concepts - Programming with C++
Mohamed El Desouki
 
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
dinesh620610
 
asic computer is an electronic device that can receive, store, process, and o...
vaishalisharma125399
 
Unit 1 python (2021 r)
praveena p
 
Programming str_Language of Logic/c.pptx
MsKGowriDhilipkumar
 
Pj01 1-computer and programming fundamentals
SasidharaRaoMarrapu
 
PPS Unit-1.pdf
NenavathSurendhar
 
Programming _Language of Logic_ PPT.pptx
MsKGowriDhilipkumar
 
Lec01-02 (Topic 1 C++ Fundamentals).pptx
NabilHarith2
 
Programing Fundamental
Qazi Shahzad Ali
 
Lecture1
Andrew Raj
 
programming language(C++) chapter-one contd.ppt
Fuadsabseb
 
Problem solving methodology
Prof. Dr. K. Adisesha
 
Ad

More from Dr. B T Sampath Kumar (20)

PPTX
Selection of scholarly journal in Education
Dr. B T Sampath Kumar
 
PPTX
Web decay and Internet Archive
Dr. B T Sampath Kumar
 
PPTX
Selection of scholarly journal
Dr. B T Sampath Kumar
 
PPTX
Web browser
Dr. B T Sampath Kumar
 
PPT
Types of computer
Dr. B T Sampath Kumar
 
PPTX
Secondary storage devices
Dr. B T Sampath Kumar
 
PPTX
Search engine
Dr. B T Sampath Kumar
 
PPTX
Output devices
Dr. B T Sampath Kumar
 
PPTX
Online learning courses
Dr. B T Sampath Kumar
 
PPTX
Networks
Dr. B T Sampath Kumar
 
PPTX
Network topology
Dr. B T Sampath Kumar
 
PPTX
Network protocols
Dr. B T Sampath Kumar
 
PPTX
Library networks
Dr. B T Sampath Kumar
 
PPTX
Internal storage devices
Dr. B T Sampath Kumar
 
PPT
Input devices
Dr. B T Sampath Kumar
 
PPT
Information and communication technology
Dr. B T Sampath Kumar
 
PPT
Generations of computer
Dr. B T Sampath Kumar
 
PPTX
Evaluation of search engine
Dr. B T Sampath Kumar
 
PPTX
Electronic communication
Dr. B T Sampath Kumar
 
PPTX
E commerce
Dr. B T Sampath Kumar
 
Selection of scholarly journal in Education
Dr. B T Sampath Kumar
 
Web decay and Internet Archive
Dr. B T Sampath Kumar
 
Selection of scholarly journal
Dr. B T Sampath Kumar
 
Types of computer
Dr. B T Sampath Kumar
 
Secondary storage devices
Dr. B T Sampath Kumar
 
Search engine
Dr. B T Sampath Kumar
 
Output devices
Dr. B T Sampath Kumar
 
Online learning courses
Dr. B T Sampath Kumar
 
Network topology
Dr. B T Sampath Kumar
 
Network protocols
Dr. B T Sampath Kumar
 
Library networks
Dr. B T Sampath Kumar
 
Internal storage devices
Dr. B T Sampath Kumar
 
Input devices
Dr. B T Sampath Kumar
 
Information and communication technology
Dr. B T Sampath Kumar
 
Generations of computer
Dr. B T Sampath Kumar
 
Evaluation of search engine
Dr. B T Sampath Kumar
 
Electronic communication
Dr. B T Sampath Kumar
 
Ad

Recently uploaded (20)

PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PPTX
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
PDF
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 

Programming

  • 1. Dr B T Sampath Kumar Professor Department of Library and Information Science Tumkur University, Tumakuru, INDIA www.sampathkumar.info Programming
  • 2. Programing • Program is a set of instructions. • Programming is a process of creating a set of instructions that tell a computer how to perform a task. • Programming can be done using a variety of computer languages, such as C, C++, Java, HTML etc. • Collection of program is software.
  • 3. Steps in programming • Understanding the problem. • Design a solution. • Write algorithm and draw flowchart. • Coding. • Programming testing and debugging. • Documentation.
  • 4. Understanding the problem • This is the first step in programming. • The programmer should understand the problem thoroughly in terms of requirements i.e. what is the: – input and – output operations to be performed. • If the problem is not properly interpreted then it is not possible to obtain the desired results.
  • 5. Design a solution • Once the problem is thoroughly understood, then it is necessary to plan for the method of solution. • Depending upon the size of the task, the program preparation may be shared amongst many programmers.
  • 6. Cont.. • Large programs may require each programmer to write a separate part of the program. • These separate parts are often called as modules or segments. • These modules may be prepared and tested separately, then linked together and tested as a whole program.
  • 7. Write Algorithm and draw Flowchart • An algorithm is non-computer language. • It is a problem solving technique. • It can be defined as a “step by step procedure to solve a particular problem”.
  • 8. Algorithm to add two numbers • Step 1: Read two numbers a, b • Step 2: Add two numbers (c=a+b) • Step 3: Print the sum, c • Step 4: End of algorithm • Step 5: Stop
  • 9. Algorithm to calculate the area of a triangle • Step 1: Start • Step 2: Read length and breadth • Step 3: a=1/2*b*l • Step 4: Print ‘a’ • Step 5: Stop Breadth (b) L e n gt h (l)
  • 10. Flowcharting • Flowcharting is a method of representing with symbols, their operation and their sequence of execution in information processing.
  • 11. Symbols used in Flowchart Start/Stop General processing ConnectorInput/output Decision
  • 12. Flowchart to add three numbers Read the numbers
  • 13. Coding • The process of writing computer instructions in a programming language (C or C++) is known as Coding. Program written in C is as follows: int main() { int a,b,c,d; printf(“Enter any three numbers"); scanf("%d%d%d", &a, &b, &c); d=(a+b+c); printf("The sum of three number is = %dn",d); }
  • 14. Program testing and debugging • The programmer might have made logical errors in sequencing or perhaps errors were made in entering the code. • The process of correcting such errors is called debugging.
  • 15. Documentation • For a programmer reliable documentation is always a must. • The presence of documentation helps keep track of all aspects of an application and it improves on the quality of a software product. • Its main focuses are development, maintenance and knowledge transfer to other developers.