SlideShare a Scribd company logo
1 of 19
THE CONCEPT OF
ALGORITHM
BY: JOEMARIE O.
RENDON
WHAT IS ALGORITHM?
An algorithm is a step by step method of solving a problem. It is commonly used for
data processing, calculation and other related computer and mathematical operations.
WHAT IS PROGRAMMING ALGORITHM?
A recipe that describes the exact steps needed for the computer to solve a problem or
reach a goal
WHAT IS PROGRAMMING ALGORITHM?
Word for a Recipe Procedure
Inputs
The Ingredients
Output
sThe Result
WHAT IS PROGRAMMING ALGORITHM?
Starts
Ends
It has a start , a middle, and an end
PSEUDOCODE
A SEMI-PROGRAMMING LANGUAGE USED
TO DESCRIBE THE STEPS IN AN
ALGORITHM
THE FLOW CHART
A flowchart is a type of diagram that represents an algorithm, workflow or process.
The flowchart shows the steps as boxes of various kinds, and their order by connecting
the boxes with arrows. This diagrammatic representation illustrates a solution model
to a given problem.
SYMBOLS USED IN FLOWCHART
Start / Stop
Input / output
Decision Making
The Oval Shape
Parallelogram
Diamond
Rectangle Process
Predefined Process
Looping
Connector
Flow Direction
ALGORITHM FLOW CHART JAVA PROGRAM
PROBLEM: FIND THE
AVERAGE OF 3 INTEGERS
STEP 1: START
STEP 2: OUTPUT “AVERAGE OF 3 INTEGERS”
STEP 3: OUTPUT “INPUT 3 INTEGERS”
STEP 4: INPUT A , B , C
STEP 5: = (A+B+C) /3AVE
STEP 6: OUTPUT “AVERAGE IS” , AVE
STEP 7: STOP
Start
“Average of 3 integers”
“Input 3 Integers”
“Input A,BC”
Ave = (A + B + C) / 3
Output “Average is ” AVE
End
PROBLEM: FIND
THE AVERAGE
OF 5 INTEGERS?
ALGORITHM FLOW CHART
PROBLEM: MAKE A SIMPLE
PAYROLL PROGRAM
STEP 1: START
STEP 2:
INPUT “ENTER FIRST NAME” , FNAME
OUTPUT “A SIMPLE PAYROLL PROGRAM”
STEP 3:
INPUT “ENTER BASIC PAY” , BASICPAYSTEP 4:
STEP 5:
OUTPUT “NET PAY” , NEYPAY
STEP 6:
INPUT “ENTER TAX DEDUCTION” , TAXDE
STEP 7:
BASICPAY - TAXDENETPAY =
Start
“A Simple Payroll Program”
Input “Enter First name”
,fname
End
Input “Enter Basic
Pay”,basicpay
Input “Enter Tax Deduction”,taxde
Netpay = basicpay-taxde
Output “Net Pay”,netpay
ENDSTEP 8:
Start
“Student Grade”
FLOW CHART
Input “First Grade:”,
FGRADE
Input “Second Grade:”,
SGRADE
Input “Third
Grade:”,TGRADE
Input “Fourth Grade:”,
FTHGRADE
Input “Enter
Name:”,FNAME
ALGORITHM
PROBLEM: STUDENT GRADE
PROGRAM USING IF STATEMENT
STEP 1: START
STEP 2: OUTPUT “STUDENT GRADE”
STEP 3: INPUT “ENTER FIRST NAME”,FNAME
STEP 4: INPUT “FIRST GRADE”,FGRADE
STEP 5: INPUT “SECOND GRADE”,SGRADE
STEP 6: INPUT “THIRD GRADE”,TGRADE
STEP 7: INPUT “FOURTH GRADE”,FTGRADE
STEP 8:
STEP 9:
AVE=(FGRADE+SGRADE+TGRADE+FTHGRADE)/4
OUTPUT “GENERAL AVERAGE”,AVE
STEP 10: IF (AVE >=75)
STEP 11: OUTPUT “PASSED”
STEP 12: ELSE
STEP 13: OUTPUT “FAILED”
STEP 14: STOP
If (Ave>=75)
True False
Output “Passed” Output “Failed”
End
Ave = (FGrade+SGrade+TGrade+FthGrade)/4;
Output “General Average” ,
ave
EXERCISES
1 .
2 .
PROBLEM: A SIMPLE GROCERY
PROGRAM USING SWITCH
STATEMENT
STEP 1: START
STEP 2: OUTPUT “THE SWITCH STATEMENT”
STEP 3: OUTPUT “PRODUCT CODE:5231 TINAPA
… P 70.99”
STEP 4: OUTPUT “PRODUCT CODE: 2241
NESCAFE 3 IN 1 … P 69.19”
OUTPUT “PRODUCT CODE: 3412
COLGATE … P 50.99”
STEP 5:
INPUT “ENTER PRODUCT CODE” , CODESTEP 6:
STEP 7: SWITCH (CODE)
STEP 8: CASE: 5431
STEP 9: PRICE = 70.99;
DESC="TINAPA";
STEP 10: CASE: 2241
STEP 11: PRICE = 69.19;
DESC=“NESCAFE 3 IN 1";
STEP 12:
PRICE = 50.99;
DESC=“COLGATE";
CASE: 3421
STEP 13:
PRICE = 0.0;
DESC=“NO PRODUCT";
STEP 14: DEFAULT:
STEP 15:
STEP 16:
STEP 17:
OUTPUT “DESCRIPTION”,DESC
OUTPUT “PRICE”,PRICE
STEP 18: STOP
ALGORITHM
FLOW CHART
PROBLEM: A SIMPLE GROCERY
PROGRAM USING SWITCH
STATEMENT
Start
output“The Switch statement”
Input “Enter Product Code:”,Code
Case
5231
Price = 90.00
Desc = Tinapa
Case
2241
Price = 69.19
Desc = N 3 in 1
Case
3412
Price = 50.99
Desc = Colgate
default
Price = 0.00
Desc = No Product
Output “Price”, Price
Output “Description”, desc
End
True
False
True
False
True
False
True
False
PROBLEM: A MINI GROCERY
WITH LOOP
MAKE A SIMPLE ALGORITHM AND FLOW CHART
OF THIS PROGRAM

More Related Content

What's hot

Computer programming:Know How to Flowchart
Computer  programming:Know How to FlowchartComputer  programming:Know How to Flowchart
Computer programming:Know How to FlowchartAngelo Tomboc
 
Flowchart and algorithem
Flowchart and algorithemFlowchart and algorithem
Flowchart and algorithemehsanullah786
 
Csc 130 class 2 problem analysis and flow charts(2)
Csc 130 class 2   problem analysis and flow charts(2)Csc 130 class 2   problem analysis and flow charts(2)
Csc 130 class 2 problem analysis and flow charts(2)Puneet narula
 
Introduction to Algorithms & flow charts
Introduction to Algorithms & flow chartsIntroduction to Algorithms & flow charts
Introduction to Algorithms & flow chartsYash Gupta
 
College for women department of information science
College for women  department of information science  College for women  department of information science
College for women department of information science AMMY30
 
pseudocode and Flowchart
pseudocode and Flowchartpseudocode and Flowchart
pseudocode and FlowchartALI RAZA
 
Algorithm Designs - Control Structures
Algorithm Designs - Control StructuresAlgorithm Designs - Control Structures
Algorithm Designs - Control Structureshatredai
 
Algorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo codeAlgorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo codehamza javed
 
Flowcharts and algorithms
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithmsStudent
 
Programming flowcharts for C Language
Programming flowcharts for C LanguageProgramming flowcharts for C Language
Programming flowcharts for C LanguageAryan Ajmer
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
FIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programraksharao
 
Fundamentals of programming)
Fundamentals of programming)Fundamentals of programming)
Fundamentals of programming)jakejakejake2
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Pseudocode-Flowchart
Pseudocode-FlowchartPseudocode-Flowchart
Pseudocode-Flowchartlotlot
 
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
 

What's hot (20)

Computer programming:Know How to Flowchart
Computer  programming:Know How to FlowchartComputer  programming:Know How to Flowchart
Computer programming:Know How to Flowchart
 
Flowchart and algorithem
Flowchart and algorithemFlowchart and algorithem
Flowchart and algorithem
 
Csc 130 class 2 problem analysis and flow charts(2)
Csc 130 class 2   problem analysis and flow charts(2)Csc 130 class 2   problem analysis and flow charts(2)
Csc 130 class 2 problem analysis and flow charts(2)
 
Introduction to Algorithms & flow charts
Introduction to Algorithms & flow chartsIntroduction to Algorithms & flow charts
Introduction to Algorithms & flow charts
 
College for women department of information science
College for women  department of information science  College for women  department of information science
College for women department of information science
 
pseudocode and Flowchart
pseudocode and Flowchartpseudocode and Flowchart
pseudocode and Flowchart
 
Algorithm Designs - Control Structures
Algorithm Designs - Control StructuresAlgorithm Designs - Control Structures
Algorithm Designs - Control Structures
 
Algorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo codeAlgorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo code
 
Problem solving and design
Problem solving and designProblem solving and design
Problem solving and design
 
Flowcharts and algorithms
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithms
 
Algorithm & flow chart
Algorithm & flow chartAlgorithm & flow chart
Algorithm & flow chart
 
Programming flowcharts for C Language
Programming flowcharts for C LanguageProgramming flowcharts for C Language
Programming flowcharts for C Language
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
phases of algorithm
phases of algorithmphases of algorithm
phases of algorithm
 
FIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer program
 
Fundamentals of programming)
Fundamentals of programming)Fundamentals of programming)
Fundamentals of programming)
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Flowcharting and Algorithm
Flowcharting and Algorithm Flowcharting and Algorithm
Flowcharting and Algorithm
 
Pseudocode-Flowchart
Pseudocode-FlowchartPseudocode-Flowchart
Pseudocode-Flowchart
 
Chapter 2 Representation Of Algorithms 2
Chapter 2  Representation Of  Algorithms 2Chapter 2  Representation Of  Algorithms 2
Chapter 2 Representation Of Algorithms 2
 

Similar to The concept of algorithm

AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfSusieMaestre1
 
Psuedocode1, algorithm1, Flowchart1.pptx
Psuedocode1, algorithm1, Flowchart1.pptxPsuedocode1, algorithm1, Flowchart1.pptx
Psuedocode1, algorithm1, Flowchart1.pptxMattFlordeliza1
 
Copy of dti2143/dam31303 chap 1 problem solving and program design
Copy of dti2143/dam31303 chap 1 problem solving and program designCopy of dti2143/dam31303 chap 1 problem solving and program design
Copy of dti2143/dam31303 chap 1 problem solving and program designalish sha
 
Chapter 6 algorithms and flow charts
Chapter 6  algorithms and flow chartsChapter 6  algorithms and flow charts
Chapter 6 algorithms and flow chartsPraveen M Jigajinni
 
11 Unit 1 Problem Solving Techniques
11  Unit 1 Problem Solving Techniques11  Unit 1 Problem Solving Techniques
11 Unit 1 Problem Solving TechniquesPraveen M Jigajinni
 
Flow Chajhbhvhhhhhhhhhhhhhrts FOR BPE.pptx
Flow Chajhbhvhhhhhhhhhhhhhrts  FOR BPE.pptxFlow Chajhbhvhhhhhhhhhhhhhrts  FOR BPE.pptx
Flow Chajhbhvhhhhhhhhhhhhhrts FOR BPE.pptxdevelvin404
 
Logic Development and Algorithm.
Logic Development and Algorithm.Logic Development and Algorithm.
Logic Development and Algorithm.NandiniSidana
 
Basic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and FlowchartsBasic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and Flowchartsmoazwinner
 
ALGORITHMS AND FLOWCHARTS
ALGORITHMS AND FLOWCHARTSALGORITHMS AND FLOWCHARTS
ALGORITHMS AND FLOWCHARTSKate Campbell
 
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptLecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptReshuReshma8
 
c_algo_flowchart.pdf
c_algo_flowchart.pdfc_algo_flowchart.pdf
c_algo_flowchart.pdfsimmis5
 
01 Algorithms And Flowcharts.ppt
01 Algorithms And Flowcharts.ppt01 Algorithms And Flowcharts.ppt
01 Algorithms And Flowcharts.pptFerdieBalang
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and FlowchartsDeva Singh
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowchartsSamuel Igbanogu
 

Similar to The concept of algorithm (20)

AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdf
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
Psuedocode1, algorithm1, Flowchart1.pptx
Psuedocode1, algorithm1, Flowchart1.pptxPsuedocode1, algorithm1, Flowchart1.pptx
Psuedocode1, algorithm1, Flowchart1.pptx
 
Algorithms and Flowchart.ppt
Algorithms and Flowchart.pptAlgorithms and Flowchart.ppt
Algorithms and Flowchart.ppt
 
Copy of dti2143/dam31303 chap 1 problem solving and program design
Copy of dti2143/dam31303 chap 1 problem solving and program designCopy of dti2143/dam31303 chap 1 problem solving and program design
Copy of dti2143/dam31303 chap 1 problem solving and program design
 
Chapter 6 algorithms and flow charts
Chapter 6  algorithms and flow chartsChapter 6  algorithms and flow charts
Chapter 6 algorithms and flow charts
 
11 Unit 1 Problem Solving Techniques
11  Unit 1 Problem Solving Techniques11  Unit 1 Problem Solving Techniques
11 Unit 1 Problem Solving Techniques
 
Flow Chajhbhvhhhhhhhhhhhhhrts FOR BPE.pptx
Flow Chajhbhvhhhhhhhhhhhhhrts  FOR BPE.pptxFlow Chajhbhvhhhhhhhhhhhhhrts  FOR BPE.pptx
Flow Chajhbhvhhhhhhhhhhhhhrts FOR BPE.pptx
 
Logic Development and Algorithm.
Logic Development and Algorithm.Logic Development and Algorithm.
Logic Development and Algorithm.
 
Basic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and FlowchartsBasic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and Flowcharts
 
ALGORITHMS AND FLOWCHARTS
ALGORITHMS AND FLOWCHARTSALGORITHMS AND FLOWCHARTS
ALGORITHMS AND FLOWCHARTS
 
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptLecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
 
c_algo_flowchart.pdf
c_algo_flowchart.pdfc_algo_flowchart.pdf
c_algo_flowchart.pdf
 
01 Algorithms And Flowcharts.ppt
01 Algorithms And Flowcharts.ppt01 Algorithms And Flowcharts.ppt
01 Algorithms And Flowcharts.ppt
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowcharts
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
 
Fundamentals of Programming Chapter 3
Fundamentals of Programming Chapter 3Fundamentals of Programming Chapter 3
Fundamentals of Programming Chapter 3
 
Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1
 

More from tcc_joemarie

Financial projections and budgets
Financial projections and budgetsFinancial projections and budgets
Financial projections and budgetstcc_joemarie
 
Convert Hexadecimal to decimal
Convert Hexadecimal to decimalConvert Hexadecimal to decimal
Convert Hexadecimal to decimaltcc_joemarie
 
Convert decimal to binary
Convert decimal to binary Convert decimal to binary
Convert decimal to binary tcc_joemarie
 
Introducing to number system
Introducing to number systemIntroducing to number system
Introducing to number systemtcc_joemarie
 
Theory of programming
Theory of programmingTheory of programming
Theory of programmingtcc_joemarie
 
Flexible learning environment
Flexible learning environmentFlexible learning environment
Flexible learning environmenttcc_joemarie
 
Digital literacy skills in the 21st century
Digital literacy skills in the 21st centuryDigital literacy skills in the 21st century
Digital literacy skills in the 21st centurytcc_joemarie
 
Online resources, educational sites and portals
Online resources, educational sites and portalsOnline resources, educational sites and portals
Online resources, educational sites and portalstcc_joemarie
 
The four pillars of education
The four pillars of educationThe four pillars of education
The four pillars of educationtcc_joemarie
 
Professional development
Professional developmentProfessional development
Professional developmenttcc_joemarie
 

More from tcc_joemarie (12)

Mother board
Mother boardMother board
Mother board
 
Financial projections and budgets
Financial projections and budgetsFinancial projections and budgets
Financial projections and budgets
 
Convert Hexadecimal to decimal
Convert Hexadecimal to decimalConvert Hexadecimal to decimal
Convert Hexadecimal to decimal
 
Convert decimal to binary
Convert decimal to binary Convert decimal to binary
Convert decimal to binary
 
Introducing to number system
Introducing to number systemIntroducing to number system
Introducing to number system
 
People media
People media People media
People media
 
Theory of programming
Theory of programmingTheory of programming
Theory of programming
 
Flexible learning environment
Flexible learning environmentFlexible learning environment
Flexible learning environment
 
Digital literacy skills in the 21st century
Digital literacy skills in the 21st centuryDigital literacy skills in the 21st century
Digital literacy skills in the 21st century
 
Online resources, educational sites and portals
Online resources, educational sites and portalsOnline resources, educational sites and portals
Online resources, educational sites and portals
 
The four pillars of education
The four pillars of educationThe four pillars of education
The four pillars of education
 
Professional development
Professional developmentProfessional development
Professional development
 

Recently uploaded

RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 

Recently uploaded (20)

Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
Decoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in ActionDecoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in Action
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 

The concept of algorithm

  • 1. THE CONCEPT OF ALGORITHM BY: JOEMARIE O. RENDON
  • 2. WHAT IS ALGORITHM? An algorithm is a step by step method of solving a problem. It is commonly used for data processing, calculation and other related computer and mathematical operations.
  • 3. WHAT IS PROGRAMMING ALGORITHM? A recipe that describes the exact steps needed for the computer to solve a problem or reach a goal
  • 4. WHAT IS PROGRAMMING ALGORITHM? Word for a Recipe Procedure Inputs The Ingredients Output sThe Result
  • 5. WHAT IS PROGRAMMING ALGORITHM? Starts Ends It has a start , a middle, and an end
  • 6. PSEUDOCODE A SEMI-PROGRAMMING LANGUAGE USED TO DESCRIBE THE STEPS IN AN ALGORITHM
  • 7. THE FLOW CHART A flowchart is a type of diagram that represents an algorithm, workflow or process. The flowchart shows the steps as boxes of various kinds, and their order by connecting the boxes with arrows. This diagrammatic representation illustrates a solution model to a given problem. SYMBOLS USED IN FLOWCHART Start / Stop Input / output Decision Making The Oval Shape Parallelogram Diamond Rectangle Process Predefined Process Looping Connector Flow Direction
  • 8. ALGORITHM FLOW CHART JAVA PROGRAM PROBLEM: FIND THE AVERAGE OF 3 INTEGERS STEP 1: START STEP 2: OUTPUT “AVERAGE OF 3 INTEGERS” STEP 3: OUTPUT “INPUT 3 INTEGERS” STEP 4: INPUT A , B , C STEP 5: = (A+B+C) /3AVE STEP 6: OUTPUT “AVERAGE IS” , AVE STEP 7: STOP Start “Average of 3 integers” “Input 3 Integers” “Input A,BC” Ave = (A + B + C) / 3 Output “Average is ” AVE End
  • 10.
  • 11. ALGORITHM FLOW CHART PROBLEM: MAKE A SIMPLE PAYROLL PROGRAM STEP 1: START STEP 2: INPUT “ENTER FIRST NAME” , FNAME OUTPUT “A SIMPLE PAYROLL PROGRAM” STEP 3: INPUT “ENTER BASIC PAY” , BASICPAYSTEP 4: STEP 5: OUTPUT “NET PAY” , NEYPAY STEP 6: INPUT “ENTER TAX DEDUCTION” , TAXDE STEP 7: BASICPAY - TAXDENETPAY = Start “A Simple Payroll Program” Input “Enter First name” ,fname End Input “Enter Basic Pay”,basicpay Input “Enter Tax Deduction”,taxde Netpay = basicpay-taxde Output “Net Pay”,netpay ENDSTEP 8:
  • 12.
  • 13. Start “Student Grade” FLOW CHART Input “First Grade:”, FGRADE Input “Second Grade:”, SGRADE Input “Third Grade:”,TGRADE Input “Fourth Grade:”, FTHGRADE Input “Enter Name:”,FNAME ALGORITHM PROBLEM: STUDENT GRADE PROGRAM USING IF STATEMENT STEP 1: START STEP 2: OUTPUT “STUDENT GRADE” STEP 3: INPUT “ENTER FIRST NAME”,FNAME STEP 4: INPUT “FIRST GRADE”,FGRADE STEP 5: INPUT “SECOND GRADE”,SGRADE STEP 6: INPUT “THIRD GRADE”,TGRADE STEP 7: INPUT “FOURTH GRADE”,FTGRADE STEP 8: STEP 9: AVE=(FGRADE+SGRADE+TGRADE+FTHGRADE)/4 OUTPUT “GENERAL AVERAGE”,AVE STEP 10: IF (AVE >=75) STEP 11: OUTPUT “PASSED” STEP 12: ELSE STEP 13: OUTPUT “FAILED” STEP 14: STOP
  • 14. If (Ave>=75) True False Output “Passed” Output “Failed” End Ave = (FGrade+SGrade+TGrade+FthGrade)/4; Output “General Average” , ave
  • 16.
  • 17. PROBLEM: A SIMPLE GROCERY PROGRAM USING SWITCH STATEMENT STEP 1: START STEP 2: OUTPUT “THE SWITCH STATEMENT” STEP 3: OUTPUT “PRODUCT CODE:5231 TINAPA … P 70.99” STEP 4: OUTPUT “PRODUCT CODE: 2241 NESCAFE 3 IN 1 … P 69.19” OUTPUT “PRODUCT CODE: 3412 COLGATE … P 50.99” STEP 5: INPUT “ENTER PRODUCT CODE” , CODESTEP 6: STEP 7: SWITCH (CODE) STEP 8: CASE: 5431 STEP 9: PRICE = 70.99; DESC="TINAPA"; STEP 10: CASE: 2241 STEP 11: PRICE = 69.19; DESC=“NESCAFE 3 IN 1"; STEP 12: PRICE = 50.99; DESC=“COLGATE"; CASE: 3421 STEP 13: PRICE = 0.0; DESC=“NO PRODUCT"; STEP 14: DEFAULT: STEP 15: STEP 16: STEP 17: OUTPUT “DESCRIPTION”,DESC OUTPUT “PRICE”,PRICE STEP 18: STOP ALGORITHM
  • 18. FLOW CHART PROBLEM: A SIMPLE GROCERY PROGRAM USING SWITCH STATEMENT Start output“The Switch statement” Input “Enter Product Code:”,Code Case 5231 Price = 90.00 Desc = Tinapa Case 2241 Price = 69.19 Desc = N 3 in 1 Case 3412 Price = 50.99 Desc = Colgate default Price = 0.00 Desc = No Product Output “Price”, Price Output “Description”, desc End True False True False True False True False
  • 19. PROBLEM: A MINI GROCERY WITH LOOP MAKE A SIMPLE ALGORITHM AND FLOW CHART OF THIS PROGRAM