SlideShare a Scribd company logo
Program Development Life Cycle,
Algorithm
MARY SANJANA JOSEPH
DEPARTMENT OF COMPUTER SCIENCE
KRISTU JAYANTI COLLEGE
BANGALORE
Program
oA computer program or a program, is a sequence of instructions, written to perform a specified
task on a computer.
oIt is a sequence or set of instructions in a programming language for a computer to execute
oA computer requires programs to function, typically executing the program's instructions in a
central processor.
KRISTU JAYANTI COLLEGE
Program
A computer program, or just a program, is a sequence of instructions, written to perform a specified task on a computer.
 A computer requires programs to function, typically executing the program's instructions in a central processor.
The program has an executable form that the computer can use directly to execute the instructions.
The same program in its human-readable source code form, from which executable programs are derived (e.g., Compiled), enables a programmer
to study and develop its algorithms.
A collection of computer programs and related data is referred to as the software.
Computer source code is typically written by computer programmers.
KRISTU JAYANTI COLLEGE
Program Development
oProgram development is an ongoing systematic process that professionals follow as they plan,
implement and evaluate problem statement.
oThe process is not confined to a planning cycle.
oIt can be applied on a small scale to an individual program; on a larger scale to an entire
enterprise level software.
oThe scope may be different but the principles of program development remain the same.
KRISTU JAYANTI COLLEGE
KRISTU JAYANTI COLLEGE
Program Development Life Cycle
1. Analyze the problem
Precisely define the problem to be solved, and write program specifications – descriptions
of the program’s inputs, processing, outputs, and user interface.
Example:
Problem : To find the sum of natural numbers
Inputs : 2 positive numbers
Processing : Adding first number and second number and storing/Print the result
User Interface : Any Programming Language (C compiler)
KRISTU JAYANTI COLLEGE
PDLC
2. Design the program
Develop a detailed logic plan using a tool such as pseudocode,
flowcharts, object structure diagrams, or event diagrams to group the
program’s activities into modules; devise a method of solution or
algorithm for each module; and test the solution algorithms.
KRISTU JAYANTI COLLEGE
PDLC
3. Code the program
Translate the design into an application using a programming language or
application development tool by creating the user interface and writing
code; include internal documentation – comments and remarks within the
code that explain the purpose of code statements.
KRISTU JAYANTI COLLEGE
#include<stdio.h>
main()
{
int A, B, Sum; // Declaration
printf(“ Enter the first number”);
scanf(%d”, &A); // Get the first input from the user
printf(“ Enter the Second number”);
scanf(%d”, &B); // Get the second input from the user
Sum=A+B; // Add the numbers and store it in a variable
printf(“ The Sum of the numbers is %d”,Sum); // Print the output
getch() ;
} KRISTU JAYANTI COLLEGE
PDLC
4. Test and debug the program
Test the program, finding and correcting errors (debugging) until it is error free and contains
enough safeguards to ensure the desired results.
5. Formalize the solution
Review and, if necessary, revise internal documentation; formalize and complete end-user
(external) documentation
6. Deployment and Maintanace
Provide education and support to end users; correct any unanticipated errors that emerge and
identify user-requested modifications (enhancements). Once errors or enhancements are
identified, the program development life cycle begins again at Step 1.
KRISTU JAYANTI COLLEGE
Algorithm
 An algorithm is a series of specific steps to solve a particular problem.
 It is a sequence of unambiguous instructions for solving a problem in a finite amount of time.
KRISTU JAYANTI COLLEGE
Qualities of Good Algorithm
 Inputs and outputs should be defined precisely.
Each steps in algorithm should be clear and unambiguous.
Algorithm should be most effective among many different ways to solve a problem.
An algorithm shouldn't have computer code.
Instead, the algorithm should be written in such a way that, it can be used in similar programming languages.
KRISTU JAYANTI COLLEGE
Characteristics of an Algorithm.
Finiteness
The algorithm must always terminate after a finite number of steps.
If we trace out the instructions of an algorithm, then for all cases,
the algorithm terminates after a feasible number of finite steps.
Definiteness :
Each and every instruction should be precise and unambiguous i.e.
each and every instruction should be clear and should have only one
meaning
KRISTU JAYANTI COLLEGE
Characteristics/properties of an
Algorithm.
Input:
The algorithm should have zero or more inputs that are given to it initially before the algorithm
begins or dynamically as the algorithm runs.
Output :
An algorithm should have one or more output that have a specified relation to the inputs. An
algorithm should produce at least one or more outputs.
Efficiency :
The algorithm efficiency is measured by calculating the amount of time it takes for execution
and the amount of memory needed for it to execute.
KRISTU JAYANTI COLLEGE
Levels of Description
1. High-level description
It describes an algorithm, ignoring the implementation details.
2. Implementation description
It is used to define the way the implementation is done
3. Formal description
It is the most detailed having the "highest level" of detail.
KRISTU JAYANTI COLLEGE
Steps for Writing an Algorithm
1. Get a clear understanding of the problem statement.
2. Proceed in a step by step fashion.
3. Divide the job into smaller chunks.
4. Include variables and their usage and define expressions.
5. Outline each loop
6. Include action statements.
7. Work outwards from the Action Statements, figuring out how each parameter
will be determined each time the loop goes around
8. Go back to step number if loop or condition fails.
9. Use jump statement to jump from one statement to another.
10. Try to avoid unwanted raw data in algorithm.
11. Break and stop to terminate the process.
KRISTU JAYANTI COLLEGE
Algorithm To Print Sum of Two Numbers
STEP 1: Start
STEP 2 : Read the value of a , b, c
STEP 3 : Calculate c = a + b
STEP 4 : Print c
STEP 5 : STOP
KRISTU JAYANTI COLLEGE
Find the given Number is Positive or Not
Step 1:Start
Step 2:Read num
Step 3 : if num > 0 then goto step 4 else goto step 5
Step 4: print num is positive
Step 5 : print num is negative
Step 6 : stop
KRISTU JAYANTI COLLEGE
Find Circumference of A Circle
Step 1: Start
Step 2 : Read r = 23, pi =3.14, c
Step 3 : Compute c = 2 * pi * r
Step 4 : Print circumference
Step. 5 : Stop
KRISTU JAYANTI COLLEGE

More Related Content

Similar to PDLC.pptx

Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer scienceumardanjumamaiwada
 
Software develop....
Software develop.... Software develop....
Software develop.... GCWUS
 
Ch1 principles of software development
Ch1 principles of software developmentCh1 principles of software development
Ch1 principles of software developmentHattori Sidek
 
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
 
FIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programraksharao
 
INTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGJEENA SARA VIJU
 
Book management system
Book management systemBook management system
Book management systemSHARDA SHARAN
 
265 ge8151 problem solving and python programming - 2 marks with answers
265   ge8151 problem solving and python programming - 2 marks with answers265   ge8151 problem solving and python programming - 2 marks with answers
265 ge8151 problem solving and python programming - 2 marks with answersvithyanila
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5Alok Jain
 
GE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdfGE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdfAsst.prof M.Gokilavani
 
program development and paradigms
program development and paradigmsprogram development and paradigms
program development and paradigmskasenerd
 

Similar to PDLC.pptx (20)

Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
lecture 5
 lecture 5 lecture 5
lecture 5
 
pccf unit 1 _VP.pptx
pccf unit 1 _VP.pptxpccf unit 1 _VP.pptx
pccf unit 1 _VP.pptx
 
Software develop....
Software develop.... Software develop....
Software develop....
 
Beekman5 std ppt_13
Beekman5 std ppt_13Beekman5 std ppt_13
Beekman5 std ppt_13
 
Ch1 principles of software development
Ch1 principles of software developmentCh1 principles of software development
Ch1 principles of software development
 
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
 
C++ good tutorial
C++ good tutorialC++ good tutorial
C++ good tutorial
 
FIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer program
 
Module 1 python.pptx
Module 1 python.pptxModule 1 python.pptx
Module 1 python.pptx
 
INTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMING
 
Book management system
Book management systemBook management system
Book management system
 
Introduction to problem solving in C
Introduction to problem solving in CIntroduction to problem solving in C
Introduction to problem solving in C
 
265 ge8151 problem solving and python programming - 2 marks with answers
265   ge8151 problem solving and python programming - 2 marks with answers265   ge8151 problem solving and python programming - 2 marks with answers
265 ge8151 problem solving and python programming - 2 marks with answers
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5
 
Introduction.pptx
Introduction.pptxIntroduction.pptx
Introduction.pptx
 
Procedural programming
Procedural programmingProcedural programming
Procedural programming
 
GE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdfGE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdf
 
program development and paradigms
program development and paradigmsprogram development and paradigms
program development and paradigms
 
PROBLEM SOLVING
PROBLEM SOLVINGPROBLEM SOLVING
PROBLEM SOLVING
 

Recently uploaded

special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfSpecial education needs
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePedroFerreira53928
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxJisc
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...AzmatAli747758
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345beazzy04
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxJisc
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsCol Mukteshwar Prasad
 
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...SachinKumar945617
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleCeline George
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPCeline George
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsparmarsneha2
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationDelapenabediema
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxssuserbdd3e8
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchVikramjit Singh
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...Jisc
 

Recently uploaded (20)

special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 

PDLC.pptx

  • 1. Program Development Life Cycle, Algorithm MARY SANJANA JOSEPH DEPARTMENT OF COMPUTER SCIENCE KRISTU JAYANTI COLLEGE BANGALORE
  • 2. Program oA computer program or a program, is a sequence of instructions, written to perform a specified task on a computer. oIt is a sequence or set of instructions in a programming language for a computer to execute oA computer requires programs to function, typically executing the program's instructions in a central processor. KRISTU JAYANTI COLLEGE
  • 3. Program A computer program, or just a program, is a sequence of instructions, written to perform a specified task on a computer.  A computer requires programs to function, typically executing the program's instructions in a central processor. The program has an executable form that the computer can use directly to execute the instructions. The same program in its human-readable source code form, from which executable programs are derived (e.g., Compiled), enables a programmer to study and develop its algorithms. A collection of computer programs and related data is referred to as the software. Computer source code is typically written by computer programmers. KRISTU JAYANTI COLLEGE
  • 4. Program Development oProgram development is an ongoing systematic process that professionals follow as they plan, implement and evaluate problem statement. oThe process is not confined to a planning cycle. oIt can be applied on a small scale to an individual program; on a larger scale to an entire enterprise level software. oThe scope may be different but the principles of program development remain the same. KRISTU JAYANTI COLLEGE
  • 6. Program Development Life Cycle 1. Analyze the problem Precisely define the problem to be solved, and write program specifications – descriptions of the program’s inputs, processing, outputs, and user interface. Example: Problem : To find the sum of natural numbers Inputs : 2 positive numbers Processing : Adding first number and second number and storing/Print the result User Interface : Any Programming Language (C compiler) KRISTU JAYANTI COLLEGE
  • 7. PDLC 2. Design the program Develop a detailed logic plan using a tool such as pseudocode, flowcharts, object structure diagrams, or event diagrams to group the program’s activities into modules; devise a method of solution or algorithm for each module; and test the solution algorithms. KRISTU JAYANTI COLLEGE
  • 8. PDLC 3. Code the program Translate the design into an application using a programming language or application development tool by creating the user interface and writing code; include internal documentation – comments and remarks within the code that explain the purpose of code statements. KRISTU JAYANTI COLLEGE
  • 9. #include<stdio.h> main() { int A, B, Sum; // Declaration printf(“ Enter the first number”); scanf(%d”, &A); // Get the first input from the user printf(“ Enter the Second number”); scanf(%d”, &B); // Get the second input from the user Sum=A+B; // Add the numbers and store it in a variable printf(“ The Sum of the numbers is %d”,Sum); // Print the output getch() ; } KRISTU JAYANTI COLLEGE
  • 10. PDLC 4. Test and debug the program Test the program, finding and correcting errors (debugging) until it is error free and contains enough safeguards to ensure the desired results. 5. Formalize the solution Review and, if necessary, revise internal documentation; formalize and complete end-user (external) documentation 6. Deployment and Maintanace Provide education and support to end users; correct any unanticipated errors that emerge and identify user-requested modifications (enhancements). Once errors or enhancements are identified, the program development life cycle begins again at Step 1. KRISTU JAYANTI COLLEGE
  • 11. Algorithm  An algorithm is a series of specific steps to solve a particular problem.  It is a sequence of unambiguous instructions for solving a problem in a finite amount of time. KRISTU JAYANTI COLLEGE
  • 12. Qualities of Good Algorithm  Inputs and outputs should be defined precisely. Each steps in algorithm should be clear and unambiguous. Algorithm should be most effective among many different ways to solve a problem. An algorithm shouldn't have computer code. Instead, the algorithm should be written in such a way that, it can be used in similar programming languages. KRISTU JAYANTI COLLEGE
  • 13. Characteristics of an Algorithm. Finiteness The algorithm must always terminate after a finite number of steps. If we trace out the instructions of an algorithm, then for all cases, the algorithm terminates after a feasible number of finite steps. Definiteness : Each and every instruction should be precise and unambiguous i.e. each and every instruction should be clear and should have only one meaning KRISTU JAYANTI COLLEGE
  • 14. Characteristics/properties of an Algorithm. Input: The algorithm should have zero or more inputs that are given to it initially before the algorithm begins or dynamically as the algorithm runs. Output : An algorithm should have one or more output that have a specified relation to the inputs. An algorithm should produce at least one or more outputs. Efficiency : The algorithm efficiency is measured by calculating the amount of time it takes for execution and the amount of memory needed for it to execute. KRISTU JAYANTI COLLEGE
  • 15. Levels of Description 1. High-level description It describes an algorithm, ignoring the implementation details. 2. Implementation description It is used to define the way the implementation is done 3. Formal description It is the most detailed having the "highest level" of detail. KRISTU JAYANTI COLLEGE
  • 16. Steps for Writing an Algorithm 1. Get a clear understanding of the problem statement. 2. Proceed in a step by step fashion. 3. Divide the job into smaller chunks. 4. Include variables and their usage and define expressions. 5. Outline each loop 6. Include action statements. 7. Work outwards from the Action Statements, figuring out how each parameter will be determined each time the loop goes around 8. Go back to step number if loop or condition fails. 9. Use jump statement to jump from one statement to another. 10. Try to avoid unwanted raw data in algorithm. 11. Break and stop to terminate the process. KRISTU JAYANTI COLLEGE
  • 17. Algorithm To Print Sum of Two Numbers STEP 1: Start STEP 2 : Read the value of a , b, c STEP 3 : Calculate c = a + b STEP 4 : Print c STEP 5 : STOP KRISTU JAYANTI COLLEGE
  • 18. Find the given Number is Positive or Not Step 1:Start Step 2:Read num Step 3 : if num > 0 then goto step 4 else goto step 5 Step 4: print num is positive Step 5 : print num is negative Step 6 : stop KRISTU JAYANTI COLLEGE
  • 19. Find Circumference of A Circle Step 1: Start Step 2 : Read r = 23, pi =3.14, c Step 3 : Compute c = 2 * pi * r Step 4 : Print circumference Step. 5 : Stop KRISTU JAYANTI COLLEGE