SlideShare una empresa de Scribd logo
1 de 8
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)
TALLER GRUPAL
Integrantes :
-Darwin Chiluisa
DIAGRAMA DE FLUJO DE CONTROL Y SENTENCIAS EN C++
DIAGRAMA 1 SENTENCIA 1
1. If (Cal>8)
2. {
3. cout<< “aprobado”;
4. }
SENTENCIA SIMPLE
DIAGRAMA 2 SENTENCIA 2
1. if (Condición1)
2. {
3. Bloque1;
4. }
5. else
6. {
7. if (Condición2)
8. {
9. Bloque2;
10. }
11. else
12. {
13. Bloque3;
14. }
15. }
SENTENCIA DOBLE
DIAGRAMA 3 SENTENCIA 3
1. If (Edad>=18)
2. {
3. cout <<”Es mayor de edad”;
4. }
SENTENCIA SIMPLE
DIAGRAMA 4 SENTENCIA 4
1. //Quiero café
2. If (¿Hay café hecho?)
3. {
4. {
5. Calentar café
6. Servir en y añadir azucar;
7. }
8. Else
9. {
10. Hacer café
11. Servir en taza y añadir azucar;
12. }
13. If (¿Está dulce?)
14. {
15. Cout<<”Tomar el café”;
16. }
17. Else
18. {
19. Añadir azucar;
20. }
21. }
SENTENCIA DOBLE
DIAGRAMA 5 SENTENCIA 5
1. If (A>B)
2. {
3. cout <<”A es mayor que B”;
4. }
5. Else
6. {
7. If (A=B)
8. {
9. Cout<<”Aes igual a B”;
10. }
11. Else
12. {
13. cout<<”A es menor que B”;
14. }
15. }
SENTENCIA DOBLE
DIAGRAMA 6 SENTENCIA 6
1. If (condición1)
2. {
3. Instruccion 1;
4. }
5. else
6. {
7. If (condición2)
8. {
9. Instruccion 2;
10. }
11. else
12. {
13. If (condición 3)
14. {
15. instruccion3;
16. }
17. }
18. }
SENTENCIA MULTIPLE
DIAGRAMA 7 SENTENCIA 7
1. If (A>B)
2. {
3. If (A>C)
4. {
5. If (B>C) { 5. Cout<<"A,B,C";
6. {
7. Cout<<"A,C,B";
8. }
9. Else
10. {
11. Cout<<"C,A,B";
12. }
13. }
14. }
15. Else
16. {
17. If (B>C)
18. {
19. If (A>C) {
20. Cout<<"B,S,C";
21. }
22. Else {
23. Cout<<"B,C,A";
24. }
22. }
23. Else {
24. Cout<<”C,B,A”;
25. }
25. }
26. }
27. }
SENTENCIA MULTIPLE
DIAGRAMA 8 SENTENCIA 8
1. If (Condicion 1) {
2. If (Condicion 2) {
3. {
4. Sentencia A;
5. }
6. Else{
7. Sentencia B;
8. }
9. }
10. Else {
11. Sentencia C;
12.}
13.}
SENTENCIA DOBLE
DIAGRAMA 9 SENTENCIA 9
1. If (Numero >6) {
2. {
3. Cout<< "Aprueba la materia";
4. }
5. Else {
6. Cout<<"No apriena la materia";
7. }
8. }
9. If (Numero >= 8) {
10. Cout<<"Puede ganar una beca";
11. }
SENTENCIA DOBLE
DIAGRAMA 10 SENTENCIA 10
1. if (Modo por tiempo seleccionado){
2. {
3. If (){
4. Dar la orden de apagar el motor;
5. Apagar el motor;
6. }
7. else{
8. Darla orden de encender el motor;
9. Encender el motor:
10. }
11. }
12. else {
13. if (Funcionamiento inicio){
14. Encender el motor;
15. Generar retardo con el tiempo ingresado;
16. Apagar el motor;
17. }
18. }
19.}
SENTENCIA DOBLE

Más contenido relacionado

Similar a Grupo3PrimeroB.docx

Taller sintaxis IF.docx
Taller sintaxis IF.docxTaller sintaxis IF.docx
Taller sintaxis IF.docxJhonny273231
 
Taller de estructuras secuenciales C++
Taller de estructuras secuenciales C++Taller de estructuras secuenciales C++
Taller de estructuras secuenciales C++HemonayaCevallos
 
Taller 5_Sentencias de Control.docx
Taller 5_Sentencias de Control.docxTaller 5_Sentencias de Control.docx
Taller 5_Sentencias de Control.docxJoelJami
 
Taller sintaxis IF Fiorela Rodríguez.docx
Taller sintaxis IF Fiorela Rodríguez.docxTaller sintaxis IF Fiorela Rodríguez.docx
Taller sintaxis IF Fiorela Rodríguez.docxFiorelaRodrguez2
 
Taller sintaxis IF ... grupo10.pdf
Taller sintaxis IF ... grupo10.pdfTaller sintaxis IF ... grupo10.pdf
Taller sintaxis IF ... grupo10.pdfFiorelaRodrguez2
 
Taller sintaxis IF.docx
Taller sintaxis IF.docxTaller sintaxis IF.docx
Taller sintaxis IF.docxkevinlliquin2
 
Taller 5_Sentencias de Control.pdf
Taller 5_Sentencias de Control.pdfTaller 5_Sentencias de Control.pdf
Taller 5_Sentencias de Control.pdfJoelJami
 
Taller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docxTaller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docxMarlon435020
 
trabajo-grupal_04 b.pdf
trabajo-grupal_04 b.pdftrabajo-grupal_04 b.pdf
trabajo-grupal_04 b.pdfgabrieloate4
 
TALLER INDIVUIDUAL SENTENCAS DE CONTROL
TALLER INDIVUIDUAL SENTENCAS DE CONTROLTALLER INDIVUIDUAL SENTENCAS DE CONTROL
TALLER INDIVUIDUAL SENTENCAS DE CONTROLPadugame
 
Sentencias de Control
Sentencias de ControlSentencias de Control
Sentencias de ControlDiegoGuaman20
 
Sentencias de Control GRUPO 8
Sentencias de Control GRUPO 8Sentencias de Control GRUPO 8
Sentencias de Control GRUPO 8Jordan441744
 
Taller sintaxis .grupo 3.pdf
Taller sintaxis .grupo 3.pdfTaller sintaxis .grupo 3.pdf
Taller sintaxis .grupo 3.pdfandrealara117715
 
Taller sintaxis IF.pdf
Taller sintaxis IF.pdfTaller sintaxis IF.pdf
Taller sintaxis IF.pdfgabrieloate4
 

Similar a Grupo3PrimeroB.docx (17)

Taller sintaxis IF.docx
Taller sintaxis IF.docxTaller sintaxis IF.docx
Taller sintaxis IF.docx
 
Taller de estructuras secuenciales C++
Taller de estructuras secuenciales C++Taller de estructuras secuenciales C++
Taller de estructuras secuenciales C++
 
Taller 5_Sentencias de Control.docx
Taller 5_Sentencias de Control.docxTaller 5_Sentencias de Control.docx
Taller 5_Sentencias de Control.docx
 
Taller sintaxis IF Fiorela Rodríguez.docx
Taller sintaxis IF Fiorela Rodríguez.docxTaller sintaxis IF Fiorela Rodríguez.docx
Taller sintaxis IF Fiorela Rodríguez.docx
 
Taller sintaxis IF ... grupo10.pdf
Taller sintaxis IF ... grupo10.pdfTaller sintaxis IF ... grupo10.pdf
Taller sintaxis IF ... grupo10.pdf
 
Taller sintaxis IF.docx
Taller sintaxis IF.docxTaller sintaxis IF.docx
Taller sintaxis IF.docx
 
Taller 5_Sentencias de Control.pdf
Taller 5_Sentencias de Control.pdfTaller 5_Sentencias de Control.pdf
Taller 5_Sentencias de Control.pdf
 
Taller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docxTaller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docx
 
Taller sintaxis_Grupo 5.doc
Taller sintaxis_Grupo 5.docTaller sintaxis_Grupo 5.doc
Taller sintaxis_Grupo 5.doc
 
trabajo-grupal_04 b.pdf
trabajo-grupal_04 b.pdftrabajo-grupal_04 b.pdf
trabajo-grupal_04 b.pdf
 
TALLER INDIVUIDUAL SENTENCAS DE CONTROL
TALLER INDIVUIDUAL SENTENCAS DE CONTROLTALLER INDIVUIDUAL SENTENCAS DE CONTROL
TALLER INDIVUIDUAL SENTENCAS DE CONTROL
 
Sentencias de Control
Sentencias de ControlSentencias de Control
Sentencias de Control
 
GRUPO 11.docx
GRUPO 11.docxGRUPO 11.docx
GRUPO 11.docx
 
SENTENCIAS DE CONTROL.pdf
SENTENCIAS DE CONTROL.pdfSENTENCIAS DE CONTROL.pdf
SENTENCIAS DE CONTROL.pdf
 
Sentencias de Control GRUPO 8
Sentencias de Control GRUPO 8Sentencias de Control GRUPO 8
Sentencias de Control GRUPO 8
 
Taller sintaxis .grupo 3.pdf
Taller sintaxis .grupo 3.pdfTaller sintaxis .grupo 3.pdf
Taller sintaxis .grupo 3.pdf
 
Taller sintaxis IF.pdf
Taller sintaxis IF.pdfTaller sintaxis IF.pdf
Taller sintaxis IF.pdf
 

Último

CLASE DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE  DE TECNOLOGIA E INFORMATICA PRIMARIACLASE  DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE DE TECNOLOGIA E INFORMATICA PRIMARIAWilbisVega
 
trabajotecologiaisabella-240424003133-8f126965.pdf
trabajotecologiaisabella-240424003133-8f126965.pdftrabajotecologiaisabella-240424003133-8f126965.pdf
trabajotecologiaisabella-240424003133-8f126965.pdfIsabellaMontaomurill
 
EPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveEPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveFagnerLisboa3
 
Plan de aula informatica segundo periodo.docx
Plan de aula informatica segundo periodo.docxPlan de aula informatica segundo periodo.docx
Plan de aula informatica segundo periodo.docxpabonheidy28
 
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...silviayucra2
 
9egb-lengua y Literatura.pdf_texto del estudiante
9egb-lengua y Literatura.pdf_texto del estudiante9egb-lengua y Literatura.pdf_texto del estudiante
9egb-lengua y Literatura.pdf_texto del estudianteAndreaHuertas24
 
La era de la educación digital y sus desafios
La era de la educación digital y sus desafiosLa era de la educación digital y sus desafios
La era de la educación digital y sus desafiosFundación YOD YOD
 
KELA Presentacion Costa Rica 2024 - evento Protégeles
KELA Presentacion Costa Rica 2024 - evento ProtégelesKELA Presentacion Costa Rica 2024 - evento Protégeles
KELA Presentacion Costa Rica 2024 - evento ProtégelesFundación YOD YOD
 
Proyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptxProyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptx241521559
 
Cortes-24-de-abril-Tungurahua-3 año 2024
Cortes-24-de-abril-Tungurahua-3 año 2024Cortes-24-de-abril-Tungurahua-3 año 2024
Cortes-24-de-abril-Tungurahua-3 año 2024GiovanniJavierHidalg
 
guía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Josephguía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan JosephBRAYANJOSEPHPEREZGOM
 
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricGlobal Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricKeyla Dolores Méndez
 
Redes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfRedes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfsoporteupcology
 
International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)GDGSucre
 
Trabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnologíaTrabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnologíassuserf18419
 
Hernandez_Hernandez_Practica web de la sesion 12.pptx
Hernandez_Hernandez_Practica web de la sesion 12.pptxHernandez_Hernandez_Practica web de la sesion 12.pptx
Hernandez_Hernandez_Practica web de la sesion 12.pptxJOSEMANUELHERNANDEZH11
 

Último (16)

CLASE DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE  DE TECNOLOGIA E INFORMATICA PRIMARIACLASE  DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE DE TECNOLOGIA E INFORMATICA PRIMARIA
 
trabajotecologiaisabella-240424003133-8f126965.pdf
trabajotecologiaisabella-240424003133-8f126965.pdftrabajotecologiaisabella-240424003133-8f126965.pdf
trabajotecologiaisabella-240424003133-8f126965.pdf
 
EPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveEPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial Uninove
 
Plan de aula informatica segundo periodo.docx
Plan de aula informatica segundo periodo.docxPlan de aula informatica segundo periodo.docx
Plan de aula informatica segundo periodo.docx
 
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
 
9egb-lengua y Literatura.pdf_texto del estudiante
9egb-lengua y Literatura.pdf_texto del estudiante9egb-lengua y Literatura.pdf_texto del estudiante
9egb-lengua y Literatura.pdf_texto del estudiante
 
La era de la educación digital y sus desafios
La era de la educación digital y sus desafiosLa era de la educación digital y sus desafios
La era de la educación digital y sus desafios
 
KELA Presentacion Costa Rica 2024 - evento Protégeles
KELA Presentacion Costa Rica 2024 - evento ProtégelesKELA Presentacion Costa Rica 2024 - evento Protégeles
KELA Presentacion Costa Rica 2024 - evento Protégeles
 
Proyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptxProyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptx
 
Cortes-24-de-abril-Tungurahua-3 año 2024
Cortes-24-de-abril-Tungurahua-3 año 2024Cortes-24-de-abril-Tungurahua-3 año 2024
Cortes-24-de-abril-Tungurahua-3 año 2024
 
guía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Josephguía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Joseph
 
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricGlobal Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
 
Redes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfRedes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdf
 
International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)
 
Trabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnologíaTrabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnología
 
Hernandez_Hernandez_Practica web de la sesion 12.pptx
Hernandez_Hernandez_Practica web de la sesion 12.pptxHernandez_Hernandez_Practica web de la sesion 12.pptx
Hernandez_Hernandez_Practica web de la sesion 12.pptx
 

Grupo3PrimeroB.docx

  • 1. 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) TALLER GRUPAL Integrantes : -Darwin Chiluisa DIAGRAMA DE FLUJO DE CONTROL Y SENTENCIAS EN C++ DIAGRAMA 1 SENTENCIA 1 1. If (Cal>8) 2. { 3. cout<< “aprobado”; 4. } SENTENCIA SIMPLE DIAGRAMA 2 SENTENCIA 2
  • 2. 1. if (Condición1) 2. { 3. Bloque1; 4. } 5. else 6. { 7. if (Condición2) 8. { 9. Bloque2; 10. } 11. else 12. { 13. Bloque3; 14. } 15. } SENTENCIA DOBLE DIAGRAMA 3 SENTENCIA 3 1. If (Edad>=18) 2. { 3. cout <<”Es mayor de edad”; 4. } SENTENCIA SIMPLE
  • 3. DIAGRAMA 4 SENTENCIA 4 1. //Quiero café 2. If (¿Hay café hecho?) 3. { 4. { 5. Calentar café 6. Servir en y añadir azucar; 7. } 8. Else 9. { 10. Hacer café 11. Servir en taza y añadir azucar; 12. } 13. If (¿Está dulce?) 14. { 15. Cout<<”Tomar el café”; 16. } 17. Else 18. { 19. Añadir azucar; 20. } 21. } SENTENCIA DOBLE DIAGRAMA 5 SENTENCIA 5 1. If (A>B) 2. { 3. cout <<”A es mayor que B”; 4. } 5. Else 6. { 7. If (A=B) 8. { 9. Cout<<”Aes igual a B”; 10. } 11. Else 12. { 13. cout<<”A es menor que B”; 14. } 15. } SENTENCIA DOBLE
  • 4. DIAGRAMA 6 SENTENCIA 6 1. If (condición1) 2. { 3. Instruccion 1; 4. } 5. else 6. { 7. If (condición2) 8. { 9. Instruccion 2; 10. } 11. else 12. { 13. If (condición 3) 14. { 15. instruccion3; 16. } 17. } 18. } SENTENCIA MULTIPLE
  • 5. DIAGRAMA 7 SENTENCIA 7 1. If (A>B) 2. { 3. If (A>C) 4. { 5. If (B>C) { 5. Cout<<"A,B,C"; 6. { 7. Cout<<"A,C,B"; 8. } 9. Else 10. { 11. Cout<<"C,A,B"; 12. } 13. } 14. } 15. Else 16. { 17. If (B>C) 18. { 19. If (A>C) { 20. Cout<<"B,S,C"; 21. } 22. Else { 23. Cout<<"B,C,A"; 24. } 22. } 23. Else { 24. Cout<<”C,B,A”; 25. } 25. } 26. } 27. } SENTENCIA MULTIPLE
  • 6. DIAGRAMA 8 SENTENCIA 8 1. If (Condicion 1) { 2. If (Condicion 2) { 3. { 4. Sentencia A; 5. } 6. Else{ 7. Sentencia B; 8. } 9. } 10. Else { 11. Sentencia C; 12.} 13.} SENTENCIA DOBLE
  • 7. DIAGRAMA 9 SENTENCIA 9 1. If (Numero >6) { 2. { 3. Cout<< "Aprueba la materia"; 4. } 5. Else { 6. Cout<<"No apriena la materia"; 7. } 8. } 9. If (Numero >= 8) { 10. Cout<<"Puede ganar una beca"; 11. } SENTENCIA DOBLE
  • 8. DIAGRAMA 10 SENTENCIA 10 1. if (Modo por tiempo seleccionado){ 2. { 3. If (){ 4. Dar la orden de apagar el motor; 5. Apagar el motor; 6. } 7. else{ 8. Darla orden de encender el motor; 9. Encender el motor: 10. } 11. } 12. else { 13. if (Funcionamiento inicio){ 14. Encender el motor; 15. Generar retardo con el tiempo ingresado; 16. Apagar el motor; 17. } 18. } 19.} SENTENCIA DOBLE