SlideShare a Scribd company logo
1 of 19
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)

lecture 5
 lecture 5 lecture 5
lecture 5
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
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

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 

Recently uploaded (20)

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 

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