1. TALLER INDIVUIDUAL SENTENCAS DECONTROL (10 PUNTOS)
Trabajo Grupal
GRUPO 11
INTEGRANTES:
Santo Santo BryanRene 605.
MorochoSalas Luis Josue 1113.
Narvaez Yaguana Gabriel Alejando1114.
Valverde Campos Isaac Daniel 1115.
Yambay Cando Jenny Lisbeth1118.
PARALELO:1roB
ESCRIBA LAS SENTENCIAS EN C++ NECESARIAS PARA:
1. REPRESENTAR LAS SENTENCIAS EN C++ CORRESPONDIENTES AL DIAGRAMA DE FLUJO
2. ENUMERE Y ESCRIBA LAS SENTENCIAS EN C++, ÚNICAMENTE DESDE DONDE INICIA EL DIAGRAMA DE FLUJO HASTA DONDE TERMINA.
3. AL TERMINAR SUBA SU DOCUMENTO .doc AL LINK Taller 6: Sentencias de Control en C++.
4. POSTERIORMENTE PUEDE SUBIR SU TERCERA ENTRADA AL BLOG COMO UN SLIDE (slideshare.net) CON EL TITULO SENTENCIAS DE CONTROL EN C++ (Escoja el meor Slide de los intengrantes
del grupo)
DIAGRAMA DE FLUJO DE CONTROL Y SENTENCIAS EN C++
DIAGRAMA 1 SENTENCIA 1
Comdicional simple - boolean
(If ….....else)
2. DIAGRAMA 2 SENTENCIA 2
Estructura de control por condicionanidada
If(condicion1)
Else
If(condicion2)
Elese
Bloque tres
Bloque dos
Bloque uno
DIAGRAMA 3 SENTENCIA 3
Sentenciadel tipobooleanvof
If(Edad>=18)
Cout(“esmayor de edad”9
False
fin
DIAGRAMA 4 SENTENCIA 4
Sentenciade control
3. If (hay café hecho)
Calentarcafé
else
Hacer café
Servirenuna taza y añadirazucar
If (estadulce)…
Tomar el café
Else
Añadirazucar
DIAGRAMA 5 SENTENCIA 5
Sentenciade control tipoboolean
IF…. S1= (A>B) true;
Cout (“A es mayorque B”)
False…(A=b)
Cout (“A esigual a B)
False
Cout(“A esmenorque B”)
4. DIAGRAMA 6 SENTENCIA 6
Sentenciade control condicional
If (condicion1)
Instrucción1
Else (condicion2)
Instrucción2
Else (condicion3)
Instrucción3
B
DIAGRAMA 7 SENTENCIA 7
Sentenciade control tipoboolean
If (A>B)
If(A>C)
If (B>C)
CoutABC
Else
Cout ACB
CoutCAB
Else (B>C)
If (A>C)
Cout BAC
Else
CoutBCA
CoutCBA
5. DIAGRAMA 8 SENTENCIA 8
Estructura de control condicional booleana
If (condicion1)
If(condicion2)
SentenciasA
Else
SentenaciasB
Else
SentenaciasC
DIAGRAMA 9 SENTENCIA 9
Estructura de control booleana
If(numero>6)
Cout (“aprobolamateria”)
Else
Cout (“noaprobola materia”)
If (numero>=8)
Cout (“puede ganarunabeca”)
FIN
DIAGRAMA 10 SENTENCIA 10
6. Estructura de control condicional
If (modo por tiempo seleccionado)
Dar la orden de encender el motor
Dar la orden de apagar el motor
Encenderel motor
Apagar el motor
Else (funcionamientode inicio)
Encendermotor
Generar retardocon el tiempoingresado
Apagar el motor
Else
fin