Top-Rated Free Essay
Preview

Algorithm

Satisfactory Essays
371 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Algorithm
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.

You May Also Find These Documents Helpful

  • Good Essays

    Week 1 Lab_ CIS_115

    • 439 Words
    • 2 Pages

    Use MS Visio to create a flowchart. Paste the flowchart here, or attach it as a separate document. Use the same valid variable names you used in Step 1.…

    • 439 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    This lab requires you to think about the steps that take place in a program by designing a flowchart. While designing flowcharts can be done with paper and pencil, one mistake often requires a lot of erasing. Therefore, a flowcharting application such as Raptor or Visio should be used. This lab will give you a brief overview of Raptor.…

    • 777 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    CIS115 W2 Exercise

    • 757 Words
    • 10 Pages

    5) Use MS Visio to create a flowchart. Paste the flowchart here or attach it as a separate document. Use the same valid variable names you used in Step 1.…

    • 757 Words
    • 10 Pages
    Good Essays
  • Satisfactory Essays

    Pt1420 Assignment

    • 1058 Words
    • 5 Pages

    1) Initialization: the variable is initialized 2) Test: the loop tests the variable by comparing it to the maximum value 3) Increment: to increase the value during each iteration the loop increments the counter variable by adding 1 to it.…

    • 1058 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Devs010 Unit 3 Assignment

    • 261 Words
    • 2 Pages

    Lab practical will be used to carry out these tasks, students will be prompted to develop programs in JavaScript.…

    • 261 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Theo 104 Quiz

    • 569 Words
    • 3 Pages

    A data flow diagram represents a physical, rather than logical, view of an accounting information system.…

    • 569 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    pt1420 exam review

    • 738 Words
    • 3 Pages

    What is a set of statements that execute in the order that they appear? Sequence Structure…

    • 738 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Is a flowchart more valuable in documenting the logic of a program than just the coded instructions in the programming language? Explain your answer.…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Write the flowchart for a program that displays the numbers 1 through 7 using a condition controlled loop (While and/or Do-While loops).…

    • 651 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    IT 210 appendix d

    • 264 Words
    • 2 Pages

    Match the activity or purpose on the left with the appropriate description on the right by typing in the corresponding letter under the Answer column.…

    • 264 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Week 5 Assignments New

    • 754 Words
    • 6 Pages

    3.) Design an if-then-else statement that assigns 0 to variable b if variable a is less than 10, otherwise it should assign 99 to variable b. (Alternative if statement)…

    • 754 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    Study Guide GB 310

    • 5424 Words
    • 22 Pages

    is a graphic description of a process, showing the sequence of process tasks, which is developed for a specific purpose and from a selected viewpoint…

    • 5424 Words
    • 22 Pages
    Good Essays
  • Powerful Essays

    b) Process a transaction that may affect data stored on both client and server computers…

    • 2231 Words
    • 10 Pages
    Powerful Essays
  • Satisfactory Essays

    7. Using Excel create a histogram and a line graph using the scores in the following table:…

    • 256 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    It210 Syllabus

    • 2333 Words
    • 10 Pages

    Course Description This course provides students with a basic understanding of programming practices. Concepts covered include flowcharting, pseudocode methodologies, and an understanding of programming practices. Students will learn how these concepts, when properly applied, improve program design. Policies Faculty and students/learners will be held responsible for understanding and adhering to all policies contained within the following two documents: • • University policies: You must be logged into the student website to view this document. Instructor policies: This document is posted in the Course Materials forum.…

    • 2333 Words
    • 10 Pages
    Good Essays