Professional Documents
Culture Documents
Solución de Problemas Con
Solución de Problemas Con
Linear Logic: All the conditions are evaluated, one by one, using a multiple decisional structure
Positive Logic: Positive logic always uses IF/THEN/ELSE. Using this logic you are telling the
computer to follow a series of instructions and to continue processing it if the condition is true.
IF it’s FALSE than the computer stops and processes a different decision,
Negative Logic: It is the same process that the Positive Logic does but the opposite. It is used
less than the positive logic, since we are not costumed to think in a negative manner.
Aplicación
1. Reproduce esta gráfica
Estructura condicional simple. Una sola condición
Algoritmo Flujograma
Simple conditional structure. Only One condition
Algorithm
IF HOURS >40
THEN
PAY = RATE * (40 + 2.5 * HOURS – 40)
T
ELSE
IF
Hours >40
B
4. Construye un algoritmo y flujo grama para calcular las notas de los estudiantes, dada la
siguiente escala:
Start
Read G
Print “A”
LetterGrade
Input: One Number
Ventas Comisión
< = 2500 .03
2501—3500 .04
3501—4500 .05
>4500 .15
=IF(H2<=2500,H2*0.3,IF(H2>2501,(0.4*(H2-2500))+3500,IF(H2>3501,(0.5*(H2-3501))+4500)))