SlideShare una empresa de Scribd logo
1 de 6
FACULTAD DE INFORMÁTICA Y ELECTRÓNICA
CARRERA: INGENIERÍAEN ELECTRÓNICA Y AUTOMATIZACIÓN
MATERIA: PROGRAMACIÓN ESTRUCTURADA
NOMBRES Y CÓDIGOS:
Estiven Granizo 698
SEMESTRE Y PARALELO:Primero “B”
FECHA: 07/11/2020
TAREA
Tema: ESCRIBA AL LADO DERECHO LAS SENTENCIAS EN C++,QUE
REPRESENTEN EXACTAMENTE LO QUE INDICA EL DIAGRAMA DE FLUJO.
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;
}
}
DIAGRAMA 3 SENTENCIA 3
If (Edad>=18)
Cout”es mayor de edad”;
DIAGRAMA 4 SENTENCIA 4
Quiero café;
if(¿hay café hecho?)
calentar café;
else
hacer café;
servir en 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”;
}
DIAGRAMA 6 SENTENCIA 6
If (condicion1)
Instrucción 1;
Else
{
If (condicion 2)
Instrucción 2;
else
{
If (condicion 3)
Instrucción 3;
}
}
DIAGRAMA 7 SENTENCIA 7
If(A>B)
{
If(A>C)
{
If(B>C)
Cout<<A<<B<<C;
Else
Cout<<A<<C<<B;
}
Else
Cout<<C<<A<<B;
}
Else
{
If(B<C)
{
If(A>C)
Cout<<B<<A<<C;
Else
Cout<<C<<C<<A;
}
Else
Cout<<C<<B<<A;
}
DIAGRAMA 8 SENTENCIA 8
If (condicion1)
{
If (condicion 2)
{
Sentencias A;
}
Else
{
Sentencias B;
}
}
Else
{
Sentencias C;
}
DIAGRAMA 9 SENTENCIA 9
If(numero>6)
Cout<<”Aprobo la materia”;
Else
Cout<<”No aprobo la materia”;
If (numero>=8)
Cout<<”Puede ganar una beca”;
DIAGRAMA 10 SENTENCIA 10
If(modo por tiempo seleccionado)
{
Dar orden de encender motor;
Encender motor;
Dar orden de apagar motor;
Apagar motor;
}
Else
{
If(funcionamiento inicio)
{
Encender el motor;
Generar retardo con el tiempo
ingresado;
Apagar el motor;
}
}

Más contenido relacionado

Último

4º Clase Laboratorio (2024) Completo Mezclas Asfalticas Caliente (1).pdf
4º Clase Laboratorio (2024) Completo Mezclas Asfalticas Caliente (1).pdf4º Clase Laboratorio (2024) Completo Mezclas Asfalticas Caliente (1).pdf
4º Clase Laboratorio (2024) Completo Mezclas Asfalticas Caliente (1).pdf
nicolascastaneda8
 
LA APLICACIÓN DE LAS PROPIEDADES TEXTUALES A LOS TEXTOS.pdf
LA APLICACIÓN DE LAS PROPIEDADES TEXTUALES A LOS TEXTOS.pdfLA APLICACIÓN DE LAS PROPIEDADES TEXTUALES A LOS TEXTOS.pdf
LA APLICACIÓN DE LAS PROPIEDADES TEXTUALES A LOS TEXTOS.pdf
bcondort
 
analisis tecnologico( diagnostico tecnologico, herramienta de toma de deciones)
analisis tecnologico( diagnostico tecnologico, herramienta de toma de deciones)analisis tecnologico( diagnostico tecnologico, herramienta de toma de deciones)
analisis tecnologico( diagnostico tecnologico, herramienta de toma de deciones)
Ricardo705519
 

Último (20)

ATS-FORMATO cara.pdf PARA TRABAJO SEGURO
ATS-FORMATO cara.pdf  PARA TRABAJO SEGUROATS-FORMATO cara.pdf  PARA TRABAJO SEGURO
ATS-FORMATO cara.pdf PARA TRABAJO SEGURO
 
nomenclatura de equipo electrico en subestaciones
nomenclatura de equipo electrico en subestacionesnomenclatura de equipo electrico en subestaciones
nomenclatura de equipo electrico en subestaciones
 
Lineamientos del Plan Oferta y Demanda sesión 5
Lineamientos del Plan Oferta y Demanda sesión 5Lineamientos del Plan Oferta y Demanda sesión 5
Lineamientos del Plan Oferta y Demanda sesión 5
 
CALCULO DE ENGRANAJES RECTOS SB-2024.pptx
CALCULO DE ENGRANAJES RECTOS SB-2024.pptxCALCULO DE ENGRANAJES RECTOS SB-2024.pptx
CALCULO DE ENGRANAJES RECTOS SB-2024.pptx
 
UNIDAD II 2.pdf ingenieria civil lima upn
UNIDAD  II 2.pdf ingenieria civil lima upnUNIDAD  II 2.pdf ingenieria civil lima upn
UNIDAD II 2.pdf ingenieria civil lima upn
 
libro de ingeniería de petróleos y operaciones
libro de ingeniería de petróleos y operacioneslibro de ingeniería de petróleos y operaciones
libro de ingeniería de petróleos y operaciones
 
COMPEDIOS ESTADISTICOS DE PERU EN EL 2023
COMPEDIOS ESTADISTICOS DE PERU EN EL 2023COMPEDIOS ESTADISTICOS DE PERU EN EL 2023
COMPEDIOS ESTADISTICOS DE PERU EN EL 2023
 
Presentacion de la ganaderia en la región
Presentacion de la ganaderia en la regiónPresentacion de la ganaderia en la región
Presentacion de la ganaderia en la región
 
Ejemplos aplicados de flip flops para la ingenieria
Ejemplos aplicados de flip flops para la ingenieriaEjemplos aplicados de flip flops para la ingenieria
Ejemplos aplicados de flip flops para la ingenieria
 
Desigualdades e inecuaciones-convertido.pdf
Desigualdades e inecuaciones-convertido.pdfDesigualdades e inecuaciones-convertido.pdf
Desigualdades e inecuaciones-convertido.pdf
 
TIPOS DE SOPORTES - CLASIFICACION IG.pdf
TIPOS DE SOPORTES - CLASIFICACION IG.pdfTIPOS DE SOPORTES - CLASIFICACION IG.pdf
TIPOS DE SOPORTES - CLASIFICACION IG.pdf
 
Maquinaria Agricola utilizada en la produccion de Piña.pdf
Maquinaria Agricola utilizada en la produccion de Piña.pdfMaquinaria Agricola utilizada en la produccion de Piña.pdf
Maquinaria Agricola utilizada en la produccion de Piña.pdf
 
4º Clase Laboratorio (2024) Completo Mezclas Asfalticas Caliente (1).pdf
4º Clase Laboratorio (2024) Completo Mezclas Asfalticas Caliente (1).pdf4º Clase Laboratorio (2024) Completo Mezclas Asfalticas Caliente (1).pdf
4º Clase Laboratorio (2024) Completo Mezclas Asfalticas Caliente (1).pdf
 
Sistema de lubricación para motores de combustión interna
Sistema de lubricación para motores de combustión internaSistema de lubricación para motores de combustión interna
Sistema de lubricación para motores de combustión interna
 
Clasificación de Equipos e Instrumentos en Electricidad.docx
Clasificación de Equipos e Instrumentos en Electricidad.docxClasificación de Equipos e Instrumentos en Electricidad.docx
Clasificación de Equipos e Instrumentos en Electricidad.docx
 
JM HIDROGENO VERDE- OXI-HIDROGENO en calderas - julio 17 del 2023.pdf
JM HIDROGENO VERDE- OXI-HIDROGENO en calderas - julio 17 del 2023.pdfJM HIDROGENO VERDE- OXI-HIDROGENO en calderas - julio 17 del 2023.pdf
JM HIDROGENO VERDE- OXI-HIDROGENO en calderas - julio 17 del 2023.pdf
 
LA APLICACIÓN DE LAS PROPIEDADES TEXTUALES A LOS TEXTOS.pdf
LA APLICACIÓN DE LAS PROPIEDADES TEXTUALES A LOS TEXTOS.pdfLA APLICACIÓN DE LAS PROPIEDADES TEXTUALES A LOS TEXTOS.pdf
LA APLICACIÓN DE LAS PROPIEDADES TEXTUALES A LOS TEXTOS.pdf
 
analisis tecnologico( diagnostico tecnologico, herramienta de toma de deciones)
analisis tecnologico( diagnostico tecnologico, herramienta de toma de deciones)analisis tecnologico( diagnostico tecnologico, herramienta de toma de deciones)
analisis tecnologico( diagnostico tecnologico, herramienta de toma de deciones)
 
Ficha Tecnica de Ladrillos de Tabique de diferentes modelos
Ficha Tecnica de Ladrillos de Tabique de diferentes modelosFicha Tecnica de Ladrillos de Tabique de diferentes modelos
Ficha Tecnica de Ladrillos de Tabique de diferentes modelos
 
Controladores Lógicos Programables Usos y Ventajas
Controladores Lógicos Programables Usos y VentajasControladores Lógicos Programables Usos y Ventajas
Controladores Lógicos Programables Usos y Ventajas
 

Destacado

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destacado (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Taller 6-estiven-granizo

  • 1. FACULTAD DE INFORMÁTICA Y ELECTRÓNICA CARRERA: INGENIERÍAEN ELECTRÓNICA Y AUTOMATIZACIÓN MATERIA: PROGRAMACIÓN ESTRUCTURADA NOMBRES Y CÓDIGOS: Estiven Granizo 698 SEMESTRE Y PARALELO:Primero “B” FECHA: 07/11/2020 TAREA Tema: ESCRIBA AL LADO DERECHO LAS SENTENCIAS EN C++,QUE REPRESENTEN EXACTAMENTE LO QUE INDICA EL DIAGRAMA DE FLUJO. DIAGRAMA DE FLUJO DE CONTROL Y SENTENCIAS EN C++ DIAGRAMA 1 SENTENCIA 1 If (Cal>8 ) Cout<<”Aprobado”; DIAGRAMA 2 SENTENCIA 2
  • 2. If (condicion 1) { 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 Quiero café; if(¿hay café hecho?) calentar café; else hacer café; servir en taza y añadir azucar; if (¿esta dulce?) tomar café; else añadir azucar;
  • 3. 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”; }
  • 4. DIAGRAMA 6 SENTENCIA 6 If (condicion1) Instrucción 1; Else { If (condicion 2) Instrucción 2; else { If (condicion 3) Instrucción 3; } } DIAGRAMA 7 SENTENCIA 7 If(A>B) { If(A>C) { If(B>C) Cout<<A<<B<<C; Else Cout<<A<<C<<B; } Else Cout<<C<<A<<B; } Else { If(B<C) { If(A>C) Cout<<B<<A<<C;
  • 5. Else Cout<<C<<C<<A; } Else Cout<<C<<B<<A; } DIAGRAMA 8 SENTENCIA 8 If (condicion1) { If (condicion 2) { Sentencias A; } Else { Sentencias B; } } Else { Sentencias C; } DIAGRAMA 9 SENTENCIA 9 If(numero>6) Cout<<”Aprobo la materia”; Else Cout<<”No aprobo la materia”; If (numero>=8) Cout<<”Puede ganar una beca”; DIAGRAMA 10 SENTENCIA 10
  • 6. If(modo por tiempo seleccionado) { Dar orden de encender motor; Encender motor; Dar orden de apagar motor; Apagar motor; } Else { If(funcionamiento inicio) { Encender el motor; Generar retardo con el tiempo ingresado; Apagar el motor; } }