Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

# Diagramas de flujo

## by Jeane Marie on Nov 12, 2010

• 2,101 views

### Views

Total Views
2,101
Views on SlideShare
2,057
Embed Views
44

Likes
1
20
0

### 2 Embeds44

 http://informatica202unefa.blogspot.com 25 http://informatica201unefa.blogspot.com 19

### Categories

Uploaded via SlideShare as Microsoft PowerPoint

### Report content

• Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc.
• Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. In Chapter 5, we studied selection control statements. We will study in this chapter the second type of control statement, a repetition statement, that alters the sequential control flow. It controls the number of times a block of code is executed. In other words, a block of code is executed repeatedly until some condition occurs to stop the repetition. There are fundamentally two ways to stop the repetition—count-controlled and sentinel-controlled.
• Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. In Chapter 5, we studied selection control statements. We will study in this chapter the second type of control statement, a repetition statement, that alters the sequential control flow. It controls the number of times a block of code is executed. In other words, a block of code is executed repeatedly until some condition occurs to stop the repetition. There are fundamentally two ways to stop the repetition—count-controlled and sentinel-controlled.
• Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. In Chapter 5, we studied selection control statements. We will study in this chapter the second type of control statement, a repetition statement, that alters the sequential control flow. It controls the number of times a block of code is executed. In other words, a block of code is executed repeatedly until some condition occurs to stop the repetition. There are fundamentally two ways to stop the repetition—count-controlled and sentinel-controlled.
• Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. In Chapter 5, we studied selection control statements. We will study in this chapter the second type of control statement, a repetition statement, that alters the sequential control flow. It controls the number of times a block of code is executed. In other words, a block of code is executed repeatedly until some condition occurs to stop the repetition. There are fundamentally two ways to stop the repetition—count-controlled and sentinel-controlled.
• Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. In Chapter 5, we studied selection control statements. We will study in this chapter the second type of control statement, a repetition statement, that alters the sequential control flow. It controls the number of times a block of code is executed. In other words, a block of code is executed repeatedly until some condition occurs to stop the repetition. There are fundamentally two ways to stop the repetition—count-controlled and sentinel-controlled.
• Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. In Chapter 5, we studied selection control statements. We will study in this chapter the second type of control statement, a repetition statement, that alters the sequential control flow. It controls the number of times a block of code is executed. In other words, a block of code is executed repeatedly until some condition occurs to stop the repetition. There are fundamentally two ways to stop the repetition—count-controlled and sentinel-controlled.
• Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. In Chapter 5, we studied selection control statements. We will study in this chapter the second type of control statement, a repetition statement, that alters the sequential control flow. It controls the number of times a block of code is executed. In other words, a block of code is executed repeatedly until some condition occurs to stop the repetition. There are fundamentally two ways to stop the repetition—count-controlled and sentinel-controlled.
• Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. In Chapter 5, we studied selection control statements. We will study in this chapter the second type of control statement, a repetition statement, that alters the sequential control flow. It controls the number of times a block of code is executed. In other words, a block of code is executed repeatedly until some condition occurs to stop the repetition. There are fundamentally two ways to stop the repetition—count-controlled and sentinel-controlled.
• Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. In Chapter 5, we studied selection control statements. We will study in this chapter the second type of control statement, a repetition statement, that alters the sequential control flow. It controls the number of times a block of code is executed. In other words, a block of code is executed repeatedly until some condition occurs to stop the repetition. There are fundamentally two ways to stop the repetition—count-controlled and sentinel-controlled.
• Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. In Chapter 5, we studied selection control statements. We will study in this chapter the second type of control statement, a repetition statement, that alters the sequential control flow. It controls the number of times a block of code is executed. In other words, a block of code is executed repeatedly until some condition occurs to stop the repetition. There are fundamentally two ways to stop the repetition—count-controlled and sentinel-controlled.
• Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. In Chapter 5, we studied selection control statements. We will study in this chapter the second type of control statement, a repetition statement, that alters the sequential control flow. It controls the number of times a block of code is executed. In other words, a block of code is executed repeatedly until some condition occurs to stop the repetition. There are fundamentally two ways to stop the repetition—count-controlled and sentinel-controlled.
• Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. In Chapter 5, we studied selection control statements. We will study in this chapter the second type of control statement, a repetition statement, that alters the sequential control flow. It controls the number of times a block of code is executed. In other words, a block of code is executed repeatedly until some condition occurs to stop the repetition. There are fundamentally two ways to stop the repetition—count-controlled and sentinel-controlled.
• Intro to OOP with Java, C. Thomas Wu ©The McGraw-Hill Companies, Inc. In Chapter 5, we studied selection control statements. We will study in this chapter the second type of control statement, a repetition statement, that alters the sequential control flow. It controls the number of times a block of code is executed. In other words, a block of code is executed repeatedly until some condition occurs to stop the repetition. There are fundamentally two ways to stop the repetition—count-controlled and sentinel-controlled.

## Diagramas de flujoPresentation Transcript

• Unidad I Algoritmos y Diagramas de Flujo
• Introducción
• La principal razón para aprender a programar es utilizar la computadora para resolver problemas
• Algoritmo”: se deriva de la traducción al latín de la palabra árabe “alkhowarizmi”, nombre del matemático árabe que enunció reglas paso a paso para sumar, restar, multiplicar y dividir números decimalse
• ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter 6 - Introducción
• La solución al problema deberá obtenerse en un tiempo finito también utilizando una cantidad finita de datos
• ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter 6 - Introducción
• Un algoritmo es una serie de pasos secuenciales y organizados que describe el proceso a seguir para solucionar un problema específico.
• Por su aplicación, tenemos Dos tipos de algoritmos:
• Cualitativos: Emplean palabras. Ej: Receta de cocina, cambiar una llanta, usar la guía telefónica.
• Cuantitativos: Utilizan cálculos numéricos. Resolver una ecuación de 2º grado.
• ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter 6 - Lenguajes algorítmicos
• Un lenguaje algorítmico es un conjunto de símbolos y reglas que permiten describir de manera explícita un proceso o algoritmo para resolver un problema por medio de una computadora.
• Es independiente de cualquier lenguaje de programación.
• Debe permitir una traducción clara del algoritmo al lenguaje de programación.
• ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter 6 - Lenguajes algorítmicos
• Por la forma de expresarlos, existen dos tipos de lenguajes algorítmicos:
• Gráficos: D iagramas de flujo.
• No gráficos: P seudocódigo.
• ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter 6 - Diagramas de flujo
• Es una forma de representar gráficamente un algoritmo.
• Cada paso se escribe dentro de un símbolo.
• Los pasos se conectan unos con otros mediante líneas de flujo.
• Son fáciles de diseñar, pero difíciles de actualizar.
• ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter 6 - Diagramas de flujo
• Los símbolos que utiliza están normalizados:
• ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter 6 - Diagramas de flujo
• ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter 6 - Ejemplo de diagrama de flujo
• Diseñe un algoritmo que lea 3 números, los sume e imprima el resultado :
• ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter 6 - Reglas para los diagramas de flujo
• Los Diagramas de flujo deben escribirse de arriba hacia abajo, y/o de izquierda a derecha.
• Los símbolos se unen con líneas, las cuales tienen en la punta una flecha que indica la próxima instrucción a ejecutarse o la dirección de la secuencia de ejecución.
• se deben de utilizar solamente líneas de flujo horizontal o verticales (nunca diagonales).
• ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter 6 - Recomendaciones para los diagramas de flujo
• Se debe evitar el cruce de líneas, en caso de ser necesario separar el flujo del diagrama a un sitio distinto, se puede realizar utilizando los conectores. Se debe tener en cuenta que solo se van a utilizar conectores cuando sea estrictamente necesario.
• No deben quedar líneas de flujo sin conectar
• Todo texto escrito dentro de un símbolo debe ser legible, preciso, evitando el uso de muchas palabras.
• 4 th Ed Chapter 6 - Recomendaciones para los diagramas de flujo
• Todos los símbolos pueden tener más de una línea de entrada, a excepción del símbolo final.
• Solo los símbolos de decisión pueden y deben tener mas de una línea de flujo de salida.
• 4 th Ed Chapter 6 - Recomendaciones para los diagramas de flujo
• Ser breves y claros con lo que se escriba dentro de los símbolos.