SlideShare ist ein Scribd-Unternehmen logo
1 von 23
What is programming ?
 A set of instruction to solve the problem or the
  specification of the sequence of computational
  steps in a particular programming language is
  called program. The task of developing programs is
  called programming .
What is algorithm ?

 A logical and concise list of steps required to
  solve a problem is called algorithm.
 Languagically representation of the various
  steps involved in solving problem is called
  algorithm.
Points for developing algorithm

 Every procedure should carefully specify the
  input & output requirements.
 Meaning of variable should be clearly
  defined.
 Easy to understand and can be implemented
  in any program language.
 It should terminate after a binite number of
  operations.
Flowchart

 A flowchart is pictorial representations of
  step by step solution of a program.
 Symbolically representations various steps
  include in solving problem is called flowchart.
Flowchart symbols
 Terminal box :-
include start/stop box

----------------------------------------------------------------

 Processing box:-
straight forward computation
arraignment operation .
 Input/output box :-
Used for input data &
giving result in output
merrage.

----------------------------------------------------------------------
   -
. Internal sub-routine:-
   represents predefined
   module .
 Decision box :- to chosen between
  two three blanching leading other
  part of flowchart

-------------------------------------------------------------------
   -----
Flow lines:- used to connect different
   boxes & indicates direction of flow.
-------------------------------------------------------------------
   ----
Connectors:- connects different
   parts of flowchart.
Benefits of using
flowcharts.
 Being a pictorial representations they are
  easier to understand .
 We can review our logic & debug the program
  with the help of flowcharts.
 Easy to explain a program or discuss the
  solution .
 It separates the logic development &
  program syntax.
Computer program

 The set of instructions that is provided to the
  computer to solve the problem is called as
  program.
Components of a program
 Comment entry:- An entry following the symbol //
  indicates a comment entry , and used to specify a
  comment it increases readability and clarity of a
    program for documentation purpose .
   Program name:- program are indicates name of the
    program.
   Decimeters:- ‘{‘&’}’ indicates beginning and ending mark
    of the program.
   Sentences:- each line of a program is a sentence.
   Sentence terminator:- each statement is to be
    terminated with a semicolon (;) which is called sentence
    terminator.
   Keywords:- words used for specific purpose in program.
Characteristic variable in a
     program
 The program should be able to provide accurate &
    variable output .
   The program should be variable ie it should continue
    to work accurately over a period of time .
   Program should be able to manage the resources
    efficiently .
   Structure of the program should allow further
    modification it required without changing the
    previous written code.
   Program should be readable .
Programming paradigm

 The systematic and organized principle of
  writing a program is called as programming
  paradigm . There are different types of
  programming paradigms.
Procedural programming

 In this approach , the problem is viewed as a
  sequence of things to be done as reading ,
  calculating & printing . The principle of this
  programming is “ decide which procedure
  you want ; use the best algorithm you can
  find”.
General model of procedure-
oriented programming depicts the
following characteristics .

 Emphases is on doing things .
 Global data is loosely available to all function.
 Data more openly around the system from
  function to function.
Drawbacks of procedure oriented
approach.
 It is unstructured which gives result generally in
  composed code , which is difficult to understand &
  maintain .
 In a large program it is very difficult to identity what
  data is used by which function.
 Due to its open availability , global data are more
  vulnerable .
 It does not encourage reusability of code.
Structured approach

 Structured programming is process in which we
  break the overall program into separate pieces of
  modules . The program will more complex when
  branching and looping are used then this
  procedures is used to make them less error and
  much easier to debug.
  Structuring a program helps to break it down into
  under stable chunks .
Advantage of structured approach

 Modification of enhancement in programs becomes
    much easier due to reduction in the main problem .
   It adds the concept of hierarchies and modules with
    single entry and exit points.
   Decreases debugging time .
   Allows several programmers to code
    simultaneously.
   Sequence , selection , iteration are basic
    construction of structed programming .
Modular approach
 A system or program is considered modular if it
  consists of direct modules so that each modules can
  be separately implemented . And a change in one
  module has minimal impact on other modules .
 { module is a logically separable part of a program or
  a set of related procedures with the data they
  manipulate is called module . It can be a macro , a
  function , a procedure , a process or a package .} .
  This approach is based upon this principle .
 “ Decide which module you want ; partition the
  program so that data is hidden in modules .”
                                               cont.1
Cont.2

Under this approach a program can be logically
 separated into following functional module :-
  1). Initialization
  2). Input
  3). Input data validation
  4). Processing
  5). Output
  6). Error handling
  7). Closing procedure
Advantage of modular approach

 Testing of individual modules in isolation makes
  easier to find errors .
 Modules can be kept separately In a library & used
  any where in the program without reverting them .
 A module can use other modules .
 The documentation of a large program is simplified
  by the documentation of individual modules .
 It save development time .
Top down approach

 A top down design approach start by
  identifying the major modules of the program
  i.e. decomposing them into their low level
  modules & repeating until the desired level of
  details is achieved first the main module is
  implemented & then their subroutine and so.
  on .
THANK YOU

Weitere ähnliche Inhalte

Was ist angesagt?

History of C Programming Language
History of C Programming LanguageHistory of C Programming Language
History of C Programming LanguageNiloy Biswas
 
Programming in C Presentation upto FILE
Programming in C Presentation upto FILEProgramming in C Presentation upto FILE
Programming in C Presentation upto FILEDipta Saha
 
Object oriented programming c++
Object oriented programming c++Object oriented programming c++
Object oriented programming c++Ankur Pandey
 
Basic structure of c programming
Basic structure of c programmingBasic structure of c programming
Basic structure of c programmingTejaswiB4
 
Chapter 2 Representation Of Algorithms 2
Chapter 2  Representation Of  Algorithms 2Chapter 2  Representation Of  Algorithms 2
Chapter 2 Representation Of Algorithms 2Li-Anne Serrano
 
Introduction of c programming
Introduction of c programmingIntroduction of c programming
Introduction of c programmingTarun Sharma
 
C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)indrasir
 
Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer   Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer Ashim Lamichhane
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentationfazli khaliq
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programmingNeeru Mittal
 
Introduction to C Language
Introduction to C LanguageIntroduction to C Language
Introduction to C LanguageTarun Sharma
 
Problem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CProblem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CPrabu U
 
Programming Languages / Translators
Programming Languages / TranslatorsProgramming Languages / Translators
Programming Languages / TranslatorsProject Student
 
FUNCTION IN C PROGRAMMING UNIT -6 (BCA I SEM)
 FUNCTION IN C PROGRAMMING UNIT -6 (BCA I SEM) FUNCTION IN C PROGRAMMING UNIT -6 (BCA I SEM)
FUNCTION IN C PROGRAMMING UNIT -6 (BCA I SEM)Mansi Tyagi
 
Operators in C Programming
Operators in C ProgrammingOperators in C Programming
Operators in C Programmingprogramming9
 
Problem solving UNIT - 4 [C PROGRAMMING] (BCA I SEM)
Problem solving UNIT - 4 [C PROGRAMMING] (BCA I SEM)Problem solving UNIT - 4 [C PROGRAMMING] (BCA I SEM)
Problem solving UNIT - 4 [C PROGRAMMING] (BCA I SEM)Mansi Tyagi
 

Was ist angesagt? (20)

History of C Programming Language
History of C Programming LanguageHistory of C Programming Language
History of C Programming Language
 
Programming in C Presentation upto FILE
Programming in C Presentation upto FILEProgramming in C Presentation upto FILE
Programming in C Presentation upto FILE
 
Object oriented programming c++
Object oriented programming c++Object oriented programming c++
Object oriented programming c++
 
Basic structure of c programming
Basic structure of c programmingBasic structure of c programming
Basic structure of c programming
 
Chapter 2 Representation Of Algorithms 2
Chapter 2  Representation Of  Algorithms 2Chapter 2  Representation Of  Algorithms 2
Chapter 2 Representation Of Algorithms 2
 
Introduction of c programming
Introduction of c programmingIntroduction of c programming
Introduction of c programming
 
C presentation
C presentationC presentation
C presentation
 
C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)
 
Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer   Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Introduction to C Language
Introduction to C LanguageIntroduction to C Language
Introduction to C Language
 
Problem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CProblem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to C
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Introduction Of C++
Introduction Of C++Introduction Of C++
Introduction Of C++
 
Programming Languages / Translators
Programming Languages / TranslatorsProgramming Languages / Translators
Programming Languages / Translators
 
FUNCTION IN C PROGRAMMING UNIT -6 (BCA I SEM)
 FUNCTION IN C PROGRAMMING UNIT -6 (BCA I SEM) FUNCTION IN C PROGRAMMING UNIT -6 (BCA I SEM)
FUNCTION IN C PROGRAMMING UNIT -6 (BCA I SEM)
 
Operators in C Programming
Operators in C ProgrammingOperators in C Programming
Operators in C Programming
 
Data types in c++
Data types in c++Data types in c++
Data types in c++
 
Problem solving UNIT - 4 [C PROGRAMMING] (BCA I SEM)
Problem solving UNIT - 4 [C PROGRAMMING] (BCA I SEM)Problem solving UNIT - 4 [C PROGRAMMING] (BCA I SEM)
Problem solving UNIT - 4 [C PROGRAMMING] (BCA I SEM)
 

Andere mochten auch

Stages of problem solving presentation
Stages of problem solving presentationStages of problem solving presentation
Stages of problem solving presentationbbaugh
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving TechniquesAshesh R
 
2.1 Understand problem solving concept
2.1 Understand problem solving concept2.1 Understand problem solving concept
2.1 Understand problem solving conceptFrankie Jones
 
Introduction to problem solving in c++
Introduction to problem solving in c++Introduction to problem solving in c++
Introduction to problem solving in c++Online
 
1 introduction to problem solving and programming
1 introduction to problem solving and programming1 introduction to problem solving and programming
1 introduction to problem solving and programmingRheigh Henley Calderon
 
11 Tips On Problem Solving Skills – Overcome Difficulties
11 Tips On Problem Solving Skills – Overcome Difficulties11 Tips On Problem Solving Skills – Overcome Difficulties
11 Tips On Problem Solving Skills – Overcome DifficultiesVKool Magazine - VKool.com
 
Problem solving method
Problem solving methodProblem solving method
Problem solving methodBSEPhySci14
 
The statement of the problem
The statement of the problemThe statement of the problem
The statement of the problemedac4co
 
Problem Solving Method
Problem Solving MethodProblem Solving Method
Problem Solving MethodRoxanne Deang
 
Problem solving & decision making at the workplace
Problem solving & decision making at the workplaceProblem solving & decision making at the workplace
Problem solving & decision making at the workplaceFaakor Agyekum
 
Problem solving ppt
Problem solving pptProblem solving ppt
Problem solving pptIka Rose
 
Problem Solving and Decision Making
Problem Solving and Decision MakingProblem Solving and Decision Making
Problem Solving and Decision MakingIbrahim M. Morsy
 
Problem Solving PowerPoint PPT Content Modern Sample
Problem Solving PowerPoint PPT Content Modern SampleProblem Solving PowerPoint PPT Content Modern Sample
Problem Solving PowerPoint PPT Content Modern SampleAndrew Schwartz
 
PROBLEM SOLVING POWERPOINT
PROBLEM SOLVING POWERPOINT PROBLEM SOLVING POWERPOINT
PROBLEM SOLVING POWERPOINT Andrew Schwartz
 

Andere mochten auch (19)

Stages of problem solving presentation
Stages of problem solving presentationStages of problem solving presentation
Stages of problem solving presentation
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving Techniques
 
2.1 Understand problem solving concept
2.1 Understand problem solving concept2.1 Understand problem solving concept
2.1 Understand problem solving concept
 
Problem solving
Problem solvingProblem solving
Problem solving
 
Introduction to problem solving in c++
Introduction to problem solving in c++Introduction to problem solving in c++
Introduction to problem solving in c++
 
Problem Solving
Problem SolvingProblem Solving
Problem Solving
 
1 introduction to problem solving and programming
1 introduction to problem solving and programming1 introduction to problem solving and programming
1 introduction to problem solving and programming
 
11 Tips On Problem Solving Skills – Overcome Difficulties
11 Tips On Problem Solving Skills – Overcome Difficulties11 Tips On Problem Solving Skills – Overcome Difficulties
11 Tips On Problem Solving Skills – Overcome Difficulties
 
Problem solving& Decision Making
Problem solving& Decision MakingProblem solving& Decision Making
Problem solving& Decision Making
 
Problem solving method
Problem solving methodProblem solving method
Problem solving method
 
The statement of the problem
The statement of the problemThe statement of the problem
The statement of the problem
 
Problem Solving Method
Problem Solving MethodProblem Solving Method
Problem Solving Method
 
Problem solving & decision making at the workplace
Problem solving & decision making at the workplaceProblem solving & decision making at the workplace
Problem solving & decision making at the workplace
 
Problem solving ppt
Problem solving pptProblem solving ppt
Problem solving ppt
 
Problem Solving and Decision Making
Problem Solving and Decision MakingProblem Solving and Decision Making
Problem Solving and Decision Making
 
Problem solving
Problem solvingProblem solving
Problem solving
 
Problem Solving PowerPoint PPT Content Modern Sample
Problem Solving PowerPoint PPT Content Modern SampleProblem Solving PowerPoint PPT Content Modern Sample
Problem Solving PowerPoint PPT Content Modern Sample
 
PROBLEM SOLVING POWERPOINT
PROBLEM SOLVING POWERPOINT PROBLEM SOLVING POWERPOINT
PROBLEM SOLVING POWERPOINT
 
How to write a statement problem
How to write a statement problemHow to write a statement problem
How to write a statement problem
 

Ähnlich wie Introduction to problem solving in C

SWE-401 - 9. Software Implementation
SWE-401 - 9. Software ImplementationSWE-401 - 9. Software Implementation
SWE-401 - 9. Software Implementationghayour abbas
 
9. Software Implementation
9. Software Implementation9. Software Implementation
9. Software Implementationghayour abbas
 
PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptxDivyaKS12
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5Alok Jain
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxSherinRappai1
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxSherinRappai
 
System analsis and design
System analsis and designSystem analsis and design
System analsis and designRizwan Kabir
 
Software engineering introduction
Software engineering introductionSoftware engineering introduction
Software engineering introductionVishal Singh
 
PCCF UNIT 2 CLASS.pptx
PCCF UNIT 2 CLASS.pptxPCCF UNIT 2 CLASS.pptx
PCCF UNIT 2 CLASS.pptxvishnupriyapm4
 
Overview of c++
Overview of c++Overview of c++
Overview of c++geeeeeet
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithmmshoaib15
 
SWE-401 - 5. Software Design Basics
SWE-401 - 5. Software Design BasicsSWE-401 - 5. Software Design Basics
SWE-401 - 5. Software Design Basicsghayour abbas
 
program development and paradigms
program development and paradigmsprogram development and paradigms
program development and paradigmskasenerd
 

Ähnlich wie Introduction to problem solving in C (20)

SWE-401 - 9. Software Implementation
SWE-401 - 9. Software ImplementationSWE-401 - 9. Software Implementation
SWE-401 - 9. Software Implementation
 
9. Software Implementation
9. Software Implementation9. Software Implementation
9. Software Implementation
 
Software design
Software designSoftware design
Software design
 
PROBLEM SOLVING
PROBLEM SOLVINGPROBLEM SOLVING
PROBLEM SOLVING
 
PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptx
 
Algorithm to programs.pptx
Algorithm to programs.pptxAlgorithm to programs.pptx
Algorithm to programs.pptx
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
 
Procedural programming
Procedural programmingProcedural programming
Procedural programming
 
System analsis and design
System analsis and designSystem analsis and design
System analsis and design
 
Software engineering introduction
Software engineering introductionSoftware engineering introduction
Software engineering introduction
 
Sd Revision
Sd RevisionSd Revision
Sd Revision
 
MPP-UPNVJ
MPP-UPNVJMPP-UPNVJ
MPP-UPNVJ
 
PCCF UNIT 2 CLASS.pptx
PCCF UNIT 2 CLASS.pptxPCCF UNIT 2 CLASS.pptx
PCCF UNIT 2 CLASS.pptx
 
Overview of c++
Overview of c++Overview of c++
Overview of c++
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
 
Lecture1422914635
Lecture1422914635Lecture1422914635
Lecture1422914635
 
SWE-401 - 5. Software Design Basics
SWE-401 - 5. Software Design BasicsSWE-401 - 5. Software Design Basics
SWE-401 - 5. Software Design Basics
 
program development and paradigms
program development and paradigmsprogram development and paradigms
program development and paradigms
 

Kürzlich hochgeladen

ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxruthvilladarez
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxElton John Embodo
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEaurabinda banchhor
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 

Kürzlich hochgeladen (20)

ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
TEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docxTEACHER REFLECTION FORM (NEW SET........).docx
TEACHER REFLECTION FORM (NEW SET........).docx
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSE
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 

Introduction to problem solving in C

  • 1.
  • 2. What is programming ?  A set of instruction to solve the problem or the specification of the sequence of computational steps in a particular programming language is called program. The task of developing programs is called programming .
  • 3. What is algorithm ?  A logical and concise list of steps required to solve a problem is called algorithm.  Languagically representation of the various steps involved in solving problem is called algorithm.
  • 4. Points for developing algorithm  Every procedure should carefully specify the input & output requirements.  Meaning of variable should be clearly defined.  Easy to understand and can be implemented in any program language.  It should terminate after a binite number of operations.
  • 5. Flowchart  A flowchart is pictorial representations of step by step solution of a program.  Symbolically representations various steps include in solving problem is called flowchart.
  • 6. Flowchart symbols  Terminal box :- include start/stop box ----------------------------------------------------------------  Processing box:- straight forward computation arraignment operation .
  • 7.  Input/output box :- Used for input data & giving result in output merrage. ---------------------------------------------------------------------- - . Internal sub-routine:- represents predefined module .
  • 8.  Decision box :- to chosen between two three blanching leading other part of flowchart ------------------------------------------------------------------- ----- Flow lines:- used to connect different boxes & indicates direction of flow. ------------------------------------------------------------------- ---- Connectors:- connects different parts of flowchart.
  • 9. Benefits of using flowcharts.  Being a pictorial representations they are easier to understand .  We can review our logic & debug the program with the help of flowcharts.  Easy to explain a program or discuss the solution .  It separates the logic development & program syntax.
  • 10. Computer program  The set of instructions that is provided to the computer to solve the problem is called as program.
  • 11. Components of a program  Comment entry:- An entry following the symbol // indicates a comment entry , and used to specify a comment it increases readability and clarity of a program for documentation purpose .  Program name:- program are indicates name of the program.  Decimeters:- ‘{‘&’}’ indicates beginning and ending mark of the program.  Sentences:- each line of a program is a sentence.  Sentence terminator:- each statement is to be terminated with a semicolon (;) which is called sentence terminator.  Keywords:- words used for specific purpose in program.
  • 12. Characteristic variable in a program  The program should be able to provide accurate & variable output .  The program should be variable ie it should continue to work accurately over a period of time .  Program should be able to manage the resources efficiently .  Structure of the program should allow further modification it required without changing the previous written code.  Program should be readable .
  • 13. Programming paradigm  The systematic and organized principle of writing a program is called as programming paradigm . There are different types of programming paradigms.
  • 14. Procedural programming  In this approach , the problem is viewed as a sequence of things to be done as reading , calculating & printing . The principle of this programming is “ decide which procedure you want ; use the best algorithm you can find”.
  • 15. General model of procedure- oriented programming depicts the following characteristics .  Emphases is on doing things .  Global data is loosely available to all function.  Data more openly around the system from function to function.
  • 16. Drawbacks of procedure oriented approach.  It is unstructured which gives result generally in composed code , which is difficult to understand & maintain .  In a large program it is very difficult to identity what data is used by which function.  Due to its open availability , global data are more vulnerable .  It does not encourage reusability of code.
  • 17. Structured approach  Structured programming is process in which we break the overall program into separate pieces of modules . The program will more complex when branching and looping are used then this procedures is used to make them less error and much easier to debug. Structuring a program helps to break it down into under stable chunks .
  • 18. Advantage of structured approach  Modification of enhancement in programs becomes much easier due to reduction in the main problem .  It adds the concept of hierarchies and modules with single entry and exit points.  Decreases debugging time .  Allows several programmers to code simultaneously.  Sequence , selection , iteration are basic construction of structed programming .
  • 19. Modular approach  A system or program is considered modular if it consists of direct modules so that each modules can be separately implemented . And a change in one module has minimal impact on other modules . { module is a logically separable part of a program or a set of related procedures with the data they manipulate is called module . It can be a macro , a function , a procedure , a process or a package .} . This approach is based upon this principle . “ Decide which module you want ; partition the program so that data is hidden in modules .” cont.1
  • 20. Cont.2 Under this approach a program can be logically separated into following functional module :- 1). Initialization 2). Input 3). Input data validation 4). Processing 5). Output 6). Error handling 7). Closing procedure
  • 21. Advantage of modular approach  Testing of individual modules in isolation makes easier to find errors .  Modules can be kept separately In a library & used any where in the program without reverting them .  A module can use other modules .  The documentation of a large program is simplified by the documentation of individual modules .  It save development time .
  • 22. Top down approach  A top down design approach start by identifying the major modules of the program i.e. decomposing them into their low level modules & repeating until the desired level of details is achieved first the main module is implemented & then their subroutine and so. on .