Flowcharts

An algorithm is a sequence of steps that must be performed to solve a problem.

A flowchart is a way to represent a process or algorithm in a visual, structured and organized way. It is a very useful tool to organize and structure a programming task before jumping directly into the code.

Example of flowchart:

imagen.png

There are various computer programs for creating flowcharts. Most text processors or slideshow software allow it. However, it is advisable to create flowcharts first with paper and pen, and if appropriate in a collaborative way, and use the software to simply edit them finally to include as program documentation.

Elements of a flowchart

A flowchart is fundamentally made up of the following elements:

imagen.pngProcess: Represents a set of operations that changes value, form, or location of data. Represented as a rectangle.

imagen.png

imagen.png

imagen.png

imagen.png

Simple examples of flowcharts

Example 1: Flowchart of a program that takes two numbers, adds them and shows the result on the screen

SOLUTION:

Flowchart

imagen.png

Example 2: Flowchart of a program that compares two numbers which is larger and displays it on the screen.

SOLUTION:

Flowchart:

image-1654536227461.png




Revision #7
Created 15 October 2023 18:22:56 by Ana López Floría
Updated 4 January 2024 19:01:08 by Ana López Floría