top-rated free essay

Algorithm

By Espino3 Aug 02, 2013 371 Words
Algorithm
is a list of instructions for carrying out some process step by step

Flowchart
is a diagram representing the logical sequence in which a combination of steps or operations is to be performed

Types of Flowcharts

Program Flowchart – describes graphically in detail the logical operations and steps within a program and sequence in which these steps are to be executed for the transformation of data to produce the needed output

System Flowchart – is a graphic representation of the procedures involved in converting data on input media to data in output form

Flowcharting Symbols
[pic]

Basic Control Structure

SEQUENCE – process is executed from one to another in a straight forward manner SELECTION – a choice is provided between two alternatives based on conditions outcome as either TRUE or FALSE ITERATION – or loop, enables certain operations/tasks/instructions to repeat. These tasks are repeated based on conditions outcome as either TRUE or FALSE

Sequence
[pic]
Examples
The length of a rectangle is equal to 5cm and its width is equals to 3cm. Create a flowchart that will display the area and perimeter of the rectangle.

Given three numbers A=3, B=6, C=9, and D=5. Draw a flowchart to compute and print out the sum, average, and product of the given values.

Selection
[pic]

Examples
Create a flowchart for a program that will accept two inputted values. And based on the inputted values the program will display the highest value.

Create a flowchart that will accept two integers X and Y. If X is greater than Y, it will compute for the difference between X and Y. If X is less than Y, it will compute for the product of X and Y. Otherwise, it will compute for the sum of X and Y. Store the results in Z and display the values of X,Y and Z.

Iteration
[pic]
Examples

Draw a flowchart which will read and print out the names and individual scores of 50 students in examination in computer programming.

Create a flowchart that will accept a students name and grade in his five subjects. It will compute and display the average of the student and ask if the user wants to input another name and grades.

Related Documents

• Algorithm - 1

...Algorithm The term algorithm is often used to refer to the logic of a program It is a step-by step description of how to arrive at the solution of the given problem. It may be formally defined as a sequence of instructions, designed in a manner that, if the instructions are executed in the specified sequence, the desired results will be obtaine...

• Algorithm

...﻿INFORMATION TECHNOLOGY ASSIGNMENT ON ALGORITHM Done by Densil Hamilton INTRODUCTION This Assignment was done to show the methods of algorithm. It outlines the meaning of algorithm and steps to be carried out to complete a give problem. Examples were also shown for the methods of representing algorithm. What is an Algorit...

• Computers Algorithms

...put the program into production, understand the problem d. code the program, translate it into machine language 11. The two most commonly used tools for planning a program’s logic are _____. a. flowcharts and algorithms b. ASCII and EBCDIC c. Java and Visual Basic d. word processors and spreadsheets 12. The most important task a program...

• PRG211 Algorithms Pseudocode Flowcharts

...    Notes on Algorithms, Pseudocode, and Flowcharts Introduction   Do you like hot sauce? Here is an ‘algorithm’ for how to make a good one: Volcanic Hot Sauce 10-12 scotch bonnets or Habanero, serrano, jalapeno 6 cloves Garlic, peeled and chopped 1/3 c Fresh lime juice 1/3 c Distilled white vinegar 2 tbl Dijon style mustard 2 tbl Oli...

• Fundamentals of Programming with Algorithms and Logic.

...Fundamentals of programming with algorithms and logic Benjamin Sigala April 5, 2010 Computer programs are a form of language written out processes that carry out different tasks. Lik...

• Computer Operations, Solving Problem, & Algorithm

...Computer Operations, Solving Problems, and Algorithms As we learn more on how to construct and put together a functional computer program, there are many things that need to be understood for this to occur. This paper will address this by expounding upon three topics that do just that. With use of pseudo code (the use of nouns and verbs)...

• Digital Analysis and Algorithms

...UNIT – I Analysis of Algorithm: INTRODUCTION – ANALYZING CONTROL STRUCTURES-AVERAGE CASE ANALYSIS-SOLVING RECURRENCES. ALGORITHM Informal Definition: An Algorithm is any well-defined computational procedure that takes some value or set of values as Input and produces a set of values or some...

• Algorithm: Flowchart and Trailer Record

... Syed Haseeb Hashmi Registration # FA11-BCS-075 Course Title Design and Analysis of Algorithm Assignment # 1 Submitted To Sir Tanveer Ahmed Siddiqui Due Date 19-03-2013 For Odd Role Number Group Q1. How does a flowchart help a program...