SlideShare a Scribd company logo
2
Most read
5
Most read
9
Most read
INTRODUCTION TO PROGRAMMING
AlgorithmIt is a list of instructions specifying a precise description of a step by step process that terminates after a finite number of steps for solving an algorithm problem producing the correct answer in the end.It is a recipe for solving problems. A finite set of an instruction that specifies a sequence of operation to be carried out in order to solve a specific problem. An unambiguous procedure specifying a finite number of steps to be taken.
Methods of Specifying AlgorithmPseudocode - specifies the steps of algorithm using essentially natural language of superimposed control structure.Flowchart - a traditional graphical tool with standardized symbols.  Show the sequence of steps in an algorithm.
Properties of AlgorithmFiniteness - there is an exact number of steps to be taken and has an end.Absence of Ambiguity - means that every instruction is precisely described and clearly specified.Sequence of Execution - instructions are performed from top to bottom.Input and Output - defined the unknowns of the problem is specified and with the expected outcome.Effectiveness- the solution prescribed is guaranteed to give a correct answer and that the specified process is faithfully carried out.Scope Definition - applies to a specific problem or class of problem.
Steps in Program DevelopmentState the problem clearly- a problem cannot be solved correctly unless it is being understood.Plan and Write the Logical Order of Instructions - the computer follows the direction exactly at the given sequence.Code the Program - write the programming statements in the desired language.Enter the program into the computer - key in or type the statement into the computer.Run and Debug the program - check if you have the desired output; if not, trace the possible error.
Flowcharting GuidelinesThe flowchart should flow from top to bottomIf the chart becomes complex, utilize connecting blocksAvoid intersecting flow linesUse meaningful description in the symbol
Flowcharting Symbols
Flowcharting Symbols
Sample ExercisesSample 1: Write a program that calculates the sum of two input numbers and display the result. Sample 2: Write a program to calculate the area of a circle and display the result.  Use the formula: A=πr2  where Pi is approximately equal to 3.1416. Sample 3: Write a program that computes the average of three input quizzes, and then display the result. Sample 4: Write a program that converts the input Fahrenheit degree into its Celsius degree equivalent.  Use the formula: C= (5/9)*F-32. Sample 5: Create a program to compute the volume of a sphere.  Use the formula: V= (4/3)* πr3 where is pi equal to 3.1416 approximately.  The r3 is the radius.  Display result. Sample 6:Write a program that converts the input Celsius degree into its equivalent Fahrenheit degree.  Use the formula: F= (9/5) * C+32.

More Related Content

PPTX
Algorithms and flowcharts
PPTX
Flowchart and algorithm
PPT
pseudo code basics
PPSX
Algorithm and flowchart
PPTX
Pseudocode
PPT
3 algorithm-and-flowchart
PPTX
Programming flowcharts for C Language
PPTX
Algorithms, flow charts and pseudocodes
Algorithms and flowcharts
Flowchart and algorithm
pseudo code basics
Algorithm and flowchart
Pseudocode
3 algorithm-and-flowchart
Programming flowcharts for C Language
Algorithms, flow charts and pseudocodes

What's hot (20)

PPTX
pseudocode and Flowchart
PPTX
Programming Fundamentals lecture 1
PPTX
Algorithm and pseudo codes
PDF
Unit 1-problem solving with algorithm
PDF
Algorithm and Programming (Introduction of Algorithms)
PPTX
serializability in dbms
PPTX
Introduction to programming
PPT
PPTX
Introduction to Software Engineering
PPTX
Algorithm Design & Implementation
PPTX
Algorithms and Flowcharts
PDF
String operation
PPTX
Staffing level estimation
PDF
Code optimization in compiler design
PPTX
Programming Paradigm & Languages
PPTX
What is programming what are its benefits
PPT
Agile software development
PDF
Lecture 01 introduction to compiler
PPTX
Unit 1. Problem Solving with Computer
PDF
Algorithms Lecture 1: Introduction to Algorithms
pseudocode and Flowchart
Programming Fundamentals lecture 1
Algorithm and pseudo codes
Unit 1-problem solving with algorithm
Algorithm and Programming (Introduction of Algorithms)
serializability in dbms
Introduction to programming
Introduction to Software Engineering
Algorithm Design & Implementation
Algorithms and Flowcharts
String operation
Staffing level estimation
Code optimization in compiler design
Programming Paradigm & Languages
What is programming what are its benefits
Agile software development
Lecture 01 introduction to compiler
Unit 1. Problem Solving with Computer
Algorithms Lecture 1: Introduction to Algorithms
Ad

Viewers also liked (6)

PPTX
Flowchart and algorithm
PDF
Writing algorithms
PPTX
Introduction to Pseudocode
PPTX
Algorithm and flowchart2010
PPTX
Algorithms
PPT
Algorithmsandflowcharts1
Flowchart and algorithm
Writing algorithms
Introduction to Pseudocode
Algorithm and flowchart2010
Algorithms
Algorithmsandflowcharts1
Ad

Similar to Algorithm and flowchart (20)

PDF
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
PDF
Fundamental of Information Technology - UNIT 6
PPTX
Data Structures_Introduction to algorithms.pptx
PDF
ALGORITHM PPT GUIDE.pdf
PPTX
Pseudo code.pptx
PDF
Algorithm.pdf
PPT
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
PDF
Algorithm defination, design & Implementation
PPT
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
PPTX
Lesson 1 of c programming algorithms and flowcharts.pptx
PPTX
MODULE1-INTRODUCTION.pptx-COMPUTER PROGRAMING
PPTX
Algorithm and flowchart.pptx
PPTX
INTROTOPROBLEMSOLVING.pptxINTROTOPROBLEMSOLVING.pptx
PPT
UNIT- 3-FOC.ppt
PPT
Proble, Solving & Automation
PDF
Cse115 lecture03problemsolving
PPT
Programming algorithms and flowchart.ppt
PDF
Notes on algorithms
PPT
Fundamentals of Programming Chapter 3
PPT
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
Fundamental of Information Technology - UNIT 6
Data Structures_Introduction to algorithms.pptx
ALGORITHM PPT GUIDE.pdf
Pseudo code.pptx
Algorithm.pdf
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
Algorithm defination, design & Implementation
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lesson 1 of c programming algorithms and flowcharts.pptx
MODULE1-INTRODUCTION.pptx-COMPUTER PROGRAMING
Algorithm and flowchart.pptx
INTROTOPROBLEMSOLVING.pptxINTROTOPROBLEMSOLVING.pptx
UNIT- 3-FOC.ppt
Proble, Solving & Automation
Cse115 lecture03problemsolving
Programming algorithms and flowchart.ppt
Notes on algorithms
Fundamentals of Programming Chapter 3

More from Elizabeth de Leon Aler (9)

Recently uploaded (20)

PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
Cell Types and Its function , kingdom of life
PPTX
master seminar digital applications in india
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Pharma ospi slides which help in ospi learning
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Pre independence Education in Inndia.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
TR - Agricultural Crops Production NC III.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Microbial disease of the cardiovascular and lymphatic systems
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Cell Types and Its function , kingdom of life
master seminar digital applications in india
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Pharma ospi slides which help in ospi learning
O5-L3 Freight Transport Ops (International) V1.pdf
PPH.pptx obstetrics and gynecology in nursing
Pre independence Education in Inndia.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
O7-L3 Supply Chain Operations - ICLT Program

Algorithm and flowchart

  • 2. AlgorithmIt is a list of instructions specifying a precise description of a step by step process that terminates after a finite number of steps for solving an algorithm problem producing the correct answer in the end.It is a recipe for solving problems. A finite set of an instruction that specifies a sequence of operation to be carried out in order to solve a specific problem. An unambiguous procedure specifying a finite number of steps to be taken.
  • 3. Methods of Specifying AlgorithmPseudocode - specifies the steps of algorithm using essentially natural language of superimposed control structure.Flowchart - a traditional graphical tool with standardized symbols. Show the sequence of steps in an algorithm.
  • 4. Properties of AlgorithmFiniteness - there is an exact number of steps to be taken and has an end.Absence of Ambiguity - means that every instruction is precisely described and clearly specified.Sequence of Execution - instructions are performed from top to bottom.Input and Output - defined the unknowns of the problem is specified and with the expected outcome.Effectiveness- the solution prescribed is guaranteed to give a correct answer and that the specified process is faithfully carried out.Scope Definition - applies to a specific problem or class of problem.
  • 5. Steps in Program DevelopmentState the problem clearly- a problem cannot be solved correctly unless it is being understood.Plan and Write the Logical Order of Instructions - the computer follows the direction exactly at the given sequence.Code the Program - write the programming statements in the desired language.Enter the program into the computer - key in or type the statement into the computer.Run and Debug the program - check if you have the desired output; if not, trace the possible error.
  • 6. Flowcharting GuidelinesThe flowchart should flow from top to bottomIf the chart becomes complex, utilize connecting blocksAvoid intersecting flow linesUse meaningful description in the symbol
  • 9. Sample ExercisesSample 1: Write a program that calculates the sum of two input numbers and display the result. Sample 2: Write a program to calculate the area of a circle and display the result. Use the formula: A=πr2 where Pi is approximately equal to 3.1416. Sample 3: Write a program that computes the average of three input quizzes, and then display the result. Sample 4: Write a program that converts the input Fahrenheit degree into its Celsius degree equivalent. Use the formula: C= (5/9)*F-32. Sample 5: Create a program to compute the volume of a sphere. Use the formula: V= (4/3)* πr3 where is pi equal to 3.1416 approximately. The r3 is the radius. Display result. Sample 6:Write a program that converts the input Celsius degree into its equivalent Fahrenheit degree. Use the formula: F= (9/5) * C+32.