1. TALLER INDIVUIDUAL SENTENCAS DE CONTROL (10 PUNTOS)
ESCRIBA AL LADO DERECHO LAS SENTENCIAS EN C++
DIAGRAMA DE FLUJO DE CONTROL Y SENTENCIAS EN C++
DIAGRAMA 1 SENTENCIA 1
If(cal>8)
Cout<<”aprobado”;
DIAGRAMA 2 SENTENCIA 2
If(condicion 1);
Bloque 1;
Else;
If(condicion 2);
Bloque 2;
Else;
Bloque 3;
6. DIAGRAMA 8 SENTENCIA 8
If(condicion 2);
If(condicion 2);
Sentencias A;
Else;
Sentencia B;
Else;
Sentencias C;
DIAGRAMA 9 SENTENCIA 9
If(numero>6);
Aprueba la materia;
Else;
No aprueba la materia;
If(numero>=8);
Puede ganar una beca;
7. DIAGRAMA 10 SENTENCIA 10
If(modo por tiempo
seleccionado?
Dar la orden de encender el
motor;
Dar la orden de apagar el
motor;
Encender el motor;
Else;
If(funcionamiento);
Encender el motro;
Generar retardo el tiempo de ingresado;
Apagar el motor;
8. If(modo por tiempo seleccionado?)
Dar la orden de encender el motor;
Dar la orden de apagar el motor;
Encender el motor;
Apagar el motor;