1. SENTENCIAS DE CONTROL EN C++
GRUPO 4
INTEGRANTES
ITALO PAUL CHILUIZA SAQUINGA
CRISTOPHER NICOLAS COLCHA GUARACA
DANNY ADRIAN CRUZ PEDRERA
JAHIR ADRIAN ELIZALDE ZAMBRANO
2. TALLER INDIVUIDUAL SENTENCAS DE CONTROL (10 PUNTOS)
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
If(Cal>8)
Cout<<”aprobado”;
3. DIAGRAMA 2 SENTENCIA 2
If(Condicion1)
Bloque 1;
Else
{
If(Condicion 2)
Bloque 2;
Else
Bloque 3;
}
DIAGRAMA 3 SENTENCIA 3
If (Edad>= 18 )
Cout<<”Es mayor de edad”;
DIAGRAMA 4 SENTENCIA 4
Cout<<”quiero café”;
If(¿hay café hecho?)
{
calentar cafe;
{
Else
4. {
hacer cafe;
{
servir en una taza y añadir azucar;
}
If(esta dulce)
{
Tomar café;
}
Else
{
añadir azucar;
}
DIAGRAMA 5 SENTENCIA 5
If(A>B)
{
Cout<<”A es mayor que B”;
}
Else
{
If(A=B)
{
Cout<<”A es igual a B”;
}
Else
{
Cout<<”A es menor que B”;
}
8. DIAGRAMA 10 SENTENCIA 10
SENTENCIAS DE CONTROL MULTIPLE
1.-If(modo por tiempo seleccionado)
{
2.-Dar la orden de encender motor;
}
{
3.-Encender el motor
}
Else
{
4.- Dar la orden de apagar el motor
}
{
5.-Apagar el motor
}
6.-Else
7.-If(funcionamiento inicio?)