SlideShare a Scribd company logo
Unit No-1
Program Logic Development
Unit 1(1).pptx Program Logic Development
Unit 1(1).pptx Program Logic Development
DIFFERENCE HIGH AND LOW
• A set of rules that must be followed when
solving a particular problem.
• An algorithm is a procedure or formula for
solving a problem, based on conducting a
sequence of specified actions.
• The word Algorithm means “a process or set
of rules to be followed in calculations or other
problem-solving operations”
Algorithm
Characteristics of Algorithm :-
1)Input specified
An algorithm should have 0 or more well-defined inputs.Input precision requires that you know
what kind of data, how much and what form the data should be.
2)Output specified
An algorithm should have 1 or more well-defined outputs, and should match the desired
output.Output precision also requires that you know what kind of data, how much and what form the output
should be.
3)Definiteness
Algorithms must specify every step and the order the steps must be taken in the
process.Definiteness means specifying the sequence of operations for turning input into output. Algorithm
should be clear and unambiguousYou could not expect a computer to understand something if you yourself are
ambiguous about it.
4)Effectiveness
For an algorithm to be effective, it means that all those steps that are required to get to output must
be feasible with the available resources.It should not contain any unnecessary and redundant steps which could
make an algorithm ineffective.
Basic Convenctions for writing Alogorithms
1.Algorithm Name
Each algorith must have name so programer comes to know that what
algorithm is for.
2.Comments.
The Contains folled by is known as comments.
3.Input and Output
Proper input should be given to algorith so expected output is taken.
4.Steps
Numbers should be provided each rule or step.
Algorithm for Making Tea
Algorithm Name-Making Tea
Input- Water,Tea Leaves,Sugar,Gas,Stove,Utensil,Milk,cup.
Output- Tea
Step 1- Start
Step 2- Light Stove.
Step 3- Boil Water in utensil,put tea leaves and sugar in it.
Step 4- After Boiling it properly put milk in it.
Step 5- After boiling it properly serve it in Cup.
Step 6- Stop
Algorithm for Addition.
Algorithm Name-Addition of two Numbers.
Input- Two Numbers
Output- Addition of two Numbers.
Step 1- Start
Step 2- Declare variable NUM1,NUM2,ADD.
Step 3- Read values of NUM1 and NUM 2.
Step 4- Do addition of numbers and store it in third variable i.e.ADD.
ADD=NUM1+NUM2.
Step 5- Display ADD.
Step 6- Stop
Algorithm for Multiplication
Algorithm Name-Multiplication of two Numbers.
Input- Two Numbers
Output- Multiplication of two Numbers.
Step 1- Start
Step 2- Declare variable NUM1,NUM2,MUL.
Step 3- Read values of NUM1 and NUM 2.
Step 4- Do multiplication of numbers and store it in third variable i.e.MUL.
MUL=NUM1 * NUM2.
Step 5- Display MUL.
Step 6- Stop
Algorithm for Arithmetic Operations
Algorithm Name-Arithmetic Operations
Input- Two Numbers
Output- Addition,Substraction,Division,Multiplication of two Numbers.
Step 1- Start
Step 2- Declare variable NUM1,NUM2,ADD,SUB,DIV,MUL.
Step 3- Read values of NUM1 and NUM 2.
Step 4- Do addition of numbers and store it in third variable i.e.ADD.
ADD=NUM1+NUM2.
Step 5- Display ADD.
Step 6-Do Substraction of numbers and store it in third variable i.e.SUB.
SUB=NUM1 - NUM2.
Step 7- Display SUB.
Step 8-Do Division of numbers and store it in third variable i.e.DIV.
ADD=NUM1 / NUM2.
Step 9- Display DIV.
Step 10- Do multiplication of numbers and store it in third variable i.e.MUL.
MUL=NUM1 * NUM2.
Step 11- Display MUL.
Step 12- Stop
Examples for Home Work
• Write a algorithm for Finding Square of given
Number.
• Write a algorithm for Finding Cube of given
Number.
Algorithm for Area of Circle
Algorithm Name-Finding Area of Circle.
Input- Radius,AOC.
Output- Area of Circle.
Step 1- Start
Step 2- Declare variable RADIUS,AOC
Step 3- Read values of RADIUS.
Step 4- Calculate area of circle by using formulae
AOC=3.14 * Radius * Radius
Step 5- Display AOC.
Step 6- Stop
Examples for Home Work
• Write a algorithm for Finding Area of Triangle
• Write a algorithm for Finding Area of
Cylinder.
Algorithm for finding greatest number from given 2
numbers
Algorithm Name-Finding Greatest number.
Input- NUM1 , NUM2.
Output- Display Greatest Number.
Step 1- Start
Step 2- Declare variable NUM1 ,NUM2
Step 3- Read values of NUM1 ,NUM2
Step 4- if NUM1 > NUM2
Display NUM1 is greater.
else,
Display NUM2 is greater.
Step 5- Stop
Examples for Home Work
• Write a algorithm to check whether number is
even or odd.
• Write a algorithm to check whether number is
divisible by 5 or not.
Unit 1(1).pptx Program Logic Development
Flowchart
 A flowchart is simply a graphical representation of
steps. It shows steps in sequential order and is widely
used in presenting the flow of algorithms, workflow or
processes.
Typically, a flowchart shows the steps as boxes of
various kinds, and their order by connecting them with
arrows.
Notations of Flowchart
Examples of flowchart
Unit 1(1).pptx Program Logic Development
Unit 1(1).pptx Program Logic Development
Unit 1(1).pptx Program Logic Development
Unit 1(1).pptx Program Logic Development
Advantages Of Flowchart
• It is a convenient method of communication.
• It indicates very clearly just what is being done, where a program has
logical complexities.
• A key to correct programming.
• It is an important tool for planning and designing a new system.
• It clearly indicates the role-played at each level.
• It saves the inconveniences in future and serves the purpose of
documentation for a system.
• It provides an overview of the system and also demonstrates the
relationship between various steps.
• Facilitates troubleshooting.
• It promotes logical accuracy.
• It makes sure that no logical path is left incomplete without any action
being taken.
Disadvantages Of Flowchart
• The flowchart is a waste of time and slows down the process of software
development.
• The flowchart is quite costly to produce and difficult to use and manage.
• Flowcharts are not meant for man to computer communication.
• Sometimes the Complex logic of the program logic is quite complicated to
draw out on by using different defined shapes. In that case, flowchart
becomes complex and clumsy. This will become a pain for the user,
resulting in a waste of time and money trying to correct the problem
• If you need to modify or alternate the process then it will be very hard to do
in the flowchart. Because either you will have to erase the end of the
flowchart or start.

More Related Content

PPT
Problem Solving Techniques notes for Unit 1
PDF
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
PPTX
Algorithm week2(technovation)
PPTX
Algorithm for computational problematic sit
PDF
Logic Development and Algorithm.
PDF
Basics of Algorithm Unit 1 part 1 algorithm
PPTX
Problem-solving and design 1.pptx
PDF
Algorithm.pdf
Problem Solving Techniques notes for Unit 1
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
Algorithm week2(technovation)
Algorithm for computational problematic sit
Logic Development and Algorithm.
Basics of Algorithm Unit 1 part 1 algorithm
Problem-solving and design 1.pptx
Algorithm.pdf

Similar to Unit 1(1).pptx Program Logic Development (20)

PPT
UNIT-1-PPT-DESIGN AND ANALYSIS OF ALGORITHMS
PPTX
Chapter #1 (Introduction To Algorithms).pptx
PPTX
Pseudo code.pptx
PPTX
01 Introduction to analysis of Algorithms.pptx
PPTX
Algorithm types performance steps working
PPTX
UNIT 1.pptx
PPTX
Module 1 python.pptx
PPT
Unit 1 python (2021 r)
PDF
Introduction to data structure and algorithm
PPTX
Introduction to python Grade 10 with exercies.pptx
PPTX
Chapter 6 algorithms and flow charts
PPTX
11 Unit 1 Problem Solving Techniques
PPTX
EXPLAINS ABOUT ALGORITHM and FLOWCHART.pptx
PPTX
Data Structures_Introduction to algorithms.pptx
PDF
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
PPTX
Programming in C - Problem Solving using C
PPT
UNIT-2-PPTS-DAA.ppt
PPTX
Chp-1 DAA (2).pptx design analysis and algoritham presentation
PDF
Fundamental of Information Technology - UNIT 6
PPTX
Data structures algorithms basics
UNIT-1-PPT-DESIGN AND ANALYSIS OF ALGORITHMS
Chapter #1 (Introduction To Algorithms).pptx
Pseudo code.pptx
01 Introduction to analysis of Algorithms.pptx
Algorithm types performance steps working
UNIT 1.pptx
Module 1 python.pptx
Unit 1 python (2021 r)
Introduction to data structure and algorithm
Introduction to python Grade 10 with exercies.pptx
Chapter 6 algorithms and flow charts
11 Unit 1 Problem Solving Techniques
EXPLAINS ABOUT ALGORITHM and FLOWCHART.pptx
Data Structures_Introduction to algorithms.pptx
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
Programming in C - Problem Solving using C
UNIT-2-PPTS-DAA.ppt
Chp-1 DAA (2).pptx design analysis and algoritham presentation
Fundamental of Information Technology - UNIT 6
Data structures algorithms basics
Ad

More from Vaibhav Parjane (13)

PPTX
Advantages and disadvantages of algorithm.pptx
PPTX
Examples of Algorithms : Introduction to C.pptx
PPTX
Topic 1.1 Fundamentals of Algorithm.pptx
PPTX
Unit no 1(Fundamentals of Algorithm).pptx
PPTX
Unit No 2.pptx Basic s of C Programming
PPTX
Unit 2 Searching and Sorting Technique.pptx
PPTX
PPT.pptx Searching and Sorting Techniques
PPTX
unit 2 First.pptx Searching - Linear and Binary Search
PPTX
unit 1 SIXTH.pptx Algorithm Complexity Time
PPTX
Operations on Data Structure- Several Operation performed on DS
PPTX
Classification of Data Structure -Linear and Non Linear
PPTX
Need of Data Structure & Abstract Data Type
PPTX
Introduction to data & Data Structure Definition
Advantages and disadvantages of algorithm.pptx
Examples of Algorithms : Introduction to C.pptx
Topic 1.1 Fundamentals of Algorithm.pptx
Unit no 1(Fundamentals of Algorithm).pptx
Unit No 2.pptx Basic s of C Programming
Unit 2 Searching and Sorting Technique.pptx
PPT.pptx Searching and Sorting Techniques
unit 2 First.pptx Searching - Linear and Binary Search
unit 1 SIXTH.pptx Algorithm Complexity Time
Operations on Data Structure- Several Operation performed on DS
Classification of Data Structure -Linear and Non Linear
Need of Data Structure & Abstract Data Type
Introduction to data & Data Structure Definition
Ad

Recently uploaded (20)

PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Artificial Intelligence
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Well-logging-methods_new................
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Safety Seminar civil to be ensured for safe working.
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
PPT on Performance Review to get promotions
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
UNIT 4 Total Quality Management .pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Artificial Intelligence
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Foundation to blockchain - A guide to Blockchain Tech
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
OOP with Java - Java Introduction (Basics)
Well-logging-methods_new................
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
Safety Seminar civil to be ensured for safe working.
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
CH1 Production IntroductoryConcepts.pptx
PPT on Performance Review to get promotions
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Model Code of Practice - Construction Work - 21102022 .pdf
UNIT 4 Total Quality Management .pptx

Unit 1(1).pptx Program Logic Development

  • 5. • A set of rules that must be followed when solving a particular problem. • An algorithm is a procedure or formula for solving a problem, based on conducting a sequence of specified actions. • The word Algorithm means “a process or set of rules to be followed in calculations or other problem-solving operations” Algorithm
  • 6. Characteristics of Algorithm :- 1)Input specified An algorithm should have 0 or more well-defined inputs.Input precision requires that you know what kind of data, how much and what form the data should be. 2)Output specified An algorithm should have 1 or more well-defined outputs, and should match the desired output.Output precision also requires that you know what kind of data, how much and what form the output should be. 3)Definiteness Algorithms must specify every step and the order the steps must be taken in the process.Definiteness means specifying the sequence of operations for turning input into output. Algorithm should be clear and unambiguousYou could not expect a computer to understand something if you yourself are ambiguous about it. 4)Effectiveness For an algorithm to be effective, it means that all those steps that are required to get to output must be feasible with the available resources.It should not contain any unnecessary and redundant steps which could make an algorithm ineffective.
  • 7. Basic Convenctions for writing Alogorithms 1.Algorithm Name Each algorith must have name so programer comes to know that what algorithm is for. 2.Comments. The Contains folled by is known as comments. 3.Input and Output Proper input should be given to algorith so expected output is taken. 4.Steps Numbers should be provided each rule or step.
  • 8. Algorithm for Making Tea Algorithm Name-Making Tea Input- Water,Tea Leaves,Sugar,Gas,Stove,Utensil,Milk,cup. Output- Tea Step 1- Start Step 2- Light Stove. Step 3- Boil Water in utensil,put tea leaves and sugar in it. Step 4- After Boiling it properly put milk in it. Step 5- After boiling it properly serve it in Cup. Step 6- Stop
  • 9. Algorithm for Addition. Algorithm Name-Addition of two Numbers. Input- Two Numbers Output- Addition of two Numbers. Step 1- Start Step 2- Declare variable NUM1,NUM2,ADD. Step 3- Read values of NUM1 and NUM 2. Step 4- Do addition of numbers and store it in third variable i.e.ADD. ADD=NUM1+NUM2. Step 5- Display ADD. Step 6- Stop
  • 10. Algorithm for Multiplication Algorithm Name-Multiplication of two Numbers. Input- Two Numbers Output- Multiplication of two Numbers. Step 1- Start Step 2- Declare variable NUM1,NUM2,MUL. Step 3- Read values of NUM1 and NUM 2. Step 4- Do multiplication of numbers and store it in third variable i.e.MUL. MUL=NUM1 * NUM2. Step 5- Display MUL. Step 6- Stop
  • 11. Algorithm for Arithmetic Operations Algorithm Name-Arithmetic Operations Input- Two Numbers Output- Addition,Substraction,Division,Multiplication of two Numbers. Step 1- Start Step 2- Declare variable NUM1,NUM2,ADD,SUB,DIV,MUL. Step 3- Read values of NUM1 and NUM 2. Step 4- Do addition of numbers and store it in third variable i.e.ADD. ADD=NUM1+NUM2. Step 5- Display ADD. Step 6-Do Substraction of numbers and store it in third variable i.e.SUB. SUB=NUM1 - NUM2. Step 7- Display SUB. Step 8-Do Division of numbers and store it in third variable i.e.DIV. ADD=NUM1 / NUM2. Step 9- Display DIV. Step 10- Do multiplication of numbers and store it in third variable i.e.MUL. MUL=NUM1 * NUM2. Step 11- Display MUL. Step 12- Stop
  • 12. Examples for Home Work • Write a algorithm for Finding Square of given Number. • Write a algorithm for Finding Cube of given Number.
  • 13. Algorithm for Area of Circle Algorithm Name-Finding Area of Circle. Input- Radius,AOC. Output- Area of Circle. Step 1- Start Step 2- Declare variable RADIUS,AOC Step 3- Read values of RADIUS. Step 4- Calculate area of circle by using formulae AOC=3.14 * Radius * Radius Step 5- Display AOC. Step 6- Stop
  • 14. Examples for Home Work • Write a algorithm for Finding Area of Triangle • Write a algorithm for Finding Area of Cylinder.
  • 15. Algorithm for finding greatest number from given 2 numbers Algorithm Name-Finding Greatest number. Input- NUM1 , NUM2. Output- Display Greatest Number. Step 1- Start Step 2- Declare variable NUM1 ,NUM2 Step 3- Read values of NUM1 ,NUM2 Step 4- if NUM1 > NUM2 Display NUM1 is greater. else, Display NUM2 is greater. Step 5- Stop
  • 16. Examples for Home Work • Write a algorithm to check whether number is even or odd. • Write a algorithm to check whether number is divisible by 5 or not.
  • 18. Flowchart  A flowchart is simply a graphical representation of steps. It shows steps in sequential order and is widely used in presenting the flow of algorithms, workflow or processes. Typically, a flowchart shows the steps as boxes of various kinds, and their order by connecting them with arrows.
  • 25. Advantages Of Flowchart • It is a convenient method of communication. • It indicates very clearly just what is being done, where a program has logical complexities. • A key to correct programming. • It is an important tool for planning and designing a new system. • It clearly indicates the role-played at each level. • It saves the inconveniences in future and serves the purpose of documentation for a system. • It provides an overview of the system and also demonstrates the relationship between various steps. • Facilitates troubleshooting. • It promotes logical accuracy. • It makes sure that no logical path is left incomplete without any action being taken.
  • 26. Disadvantages Of Flowchart • The flowchart is a waste of time and slows down the process of software development. • The flowchart is quite costly to produce and difficult to use and manage. • Flowcharts are not meant for man to computer communication. • Sometimes the Complex logic of the program logic is quite complicated to draw out on by using different defined shapes. In that case, flowchart becomes complex and clumsy. This will become a pain for the user, resulting in a waste of time and money trying to correct the problem • If you need to modify or alternate the process then it will be very hard to do in the flowchart. Because either you will have to erase the end of the flowchart or start.