SlideShare una empresa de Scribd logo
1 de 6
• Realizar un algoritmo que permita leer dos valores, determinar cuál de
los dos valores es el menor y escríbalo
Escribir “INGRESE PRIMER VALOR“
Leer “x“
Escribir “INGRESE SEGUNDO VALOR“
Leer “z“
Si x = z Entonces
Escribir “ERROR“
FinSi
Si x < z Entonces
Escribir “PRIMER VALOR MENOR QUE EL SEGUNDO“
FinSi
Si z < x Entonces
Escribir “SEGUNDO VALOR MENOR QUE EL PRIMERO“
FinSi
FinProceso
• Desarrolle un algoritmo que lea cuatro números diferentes y a continuación imprima el
mayor de los cuatro números introducidos y también el menor de ellos.
Escribir “INGRESE
PRIMER VALOR“
Leer “O“
Escribir “INGRESE
SEGUNDO VALOR“
Leer “P“
Escribir “INGRESE
TERCER VALOR“
Leer “Q“
Escribir “INGRESE
CUARTO VALOR“
Leer “R“
Si O>P Y O>Q Y O>R
Entonces
Escribir O, “ES EL
MAYOR“
Sino
Si P>O Y P>Q Y P>R
Entonces
Escribir P, “ES EL
MAYOR“
Sino
Si Q>O Y Q>P Y Q>R
Entonces
Escribir Q, “ES EL
MAYOR“
Sino
Si R>O Y R>P Y R>Q
Entonces
Escribir R, “ES EL
MAYOR“
FinSi
FinSi
FinSi
Si O<P Y O<Q Y O<R
Entonces
Escribir O, “ES EL
MENOR“
Sino
Si P<O Y P<Q Y P<R
Entonces
Escribir P, “ES EL
MENOR“
Sino
Si Q<O Y Q<P Y Q<R
Entonces
Escribir Q, “ES EL
MENOR“
Sino
Si R<O Y R<P Y R<Q
Entonces
Escribir R, “ES EL
MENOR“
FinSi
FinSi
FinSi
FinProceso
DIAGRAMA DE FLUJO
• Crear el diagrama de flujo que proporcione el precio medio de un producto a partir
del precio en tres establecimientos distintos
INICIO
FIN
Pedir precio A, Precio B,
Precio C
Mostrar Media
Media=
(PrecioA+PrecioB+PrecioC)/3)
DIAGRAMA DE FLUJO• Realizar el diagrama de flujo para que nos calcule la hipotenusa de un triángulo
rectángulo, conocidos sus dos catetos
INICIO
FIN
“Introducir valor de
los catetos“
C1, C2
H=sqrt((C1)^2+(C2)^2)
“La hipotenusa es: “h
DIAGRAMA DE FLUJO• Realiza el diagrama de flujo que simule una caja registradora.
INICIO
RETORNO
FIN
IVA= Subtotal*0,12,
Total= Subtotal+IVA
Subtotal= Subtotal+Precio
Subtotal= 0, Total= 0
Codigo_Producto,
Precio
“Subtotal:“, Subtotal
“IVA:“, IVA
“Total:“, Total
Codigo_Producto,
Precio
Títulos
Codigo_Producto,
Precio
SI
NO

Más contenido relacionado

Último

INSUMOS QUIMICOS Y BIENES FISCALIZADOS POR LA SUNAT
INSUMOS QUIMICOS Y BIENES FISCALIZADOS POR LA SUNATINSUMOS QUIMICOS Y BIENES FISCALIZADOS POR LA SUNAT
INSUMOS QUIMICOS Y BIENES FISCALIZADOS POR LA SUNAT
evercoyla
 
MODIFICADO - CAPITULO II DISEÑO SISMORRESISTENTE DE VIGAS Y COLUMNAS.pdf
MODIFICADO - CAPITULO II DISEÑO SISMORRESISTENTE DE VIGAS Y COLUMNAS.pdfMODIFICADO - CAPITULO II DISEÑO SISMORRESISTENTE DE VIGAS Y COLUMNAS.pdf
MODIFICADO - CAPITULO II DISEÑO SISMORRESISTENTE DE VIGAS Y COLUMNAS.pdf
vladimirpaucarmontes
 
NTP- Determinación de Cloruros en suelos y agregados (1) (1).pptx
NTP- Determinación de Cloruros  en suelos y agregados (1) (1).pptxNTP- Determinación de Cloruros  en suelos y agregados (1) (1).pptx
NTP- Determinación de Cloruros en suelos y agregados (1) (1).pptx
BRAYANJOSEPTSANJINEZ
 
ANALISIS Y DISEÑO POR VIENTO, DE EDIFICIOS ALTOS, SEGUN ASCE-2016, LAURA RAMIREZ
ANALISIS Y DISEÑO POR VIENTO, DE EDIFICIOS ALTOS, SEGUN ASCE-2016, LAURA RAMIREZANALISIS Y DISEÑO POR VIENTO, DE EDIFICIOS ALTOS, SEGUN ASCE-2016, LAURA RAMIREZ
ANALISIS Y DISEÑO POR VIENTO, DE EDIFICIOS ALTOS, SEGUN ASCE-2016, LAURA RAMIREZ
gustavoiashalom
 
tesis maíz univesidad catolica santa maria
tesis maíz univesidad catolica santa mariatesis maíz univesidad catolica santa maria
tesis maíz univesidad catolica santa maria
susafy7
 

Último (20)

Six Sigma Process and the dmaic metodo process
Six Sigma Process and the dmaic metodo processSix Sigma Process and the dmaic metodo process
Six Sigma Process and the dmaic metodo process
 
Gestion de proyectos para el control y seguimiento
Gestion de proyectos para el control  y seguimientoGestion de proyectos para el control  y seguimiento
Gestion de proyectos para el control y seguimiento
 
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
 
Quimica Raymond Chang 12va Edicion___pdf
Quimica Raymond Chang 12va Edicion___pdfQuimica Raymond Chang 12va Edicion___pdf
Quimica Raymond Chang 12va Edicion___pdf
 
PERFORACIÓN Y VOLADURA EN MINERÍA APLICADO
PERFORACIÓN Y VOLADURA EN MINERÍA APLICADOPERFORACIÓN Y VOLADURA EN MINERÍA APLICADO
PERFORACIÓN Y VOLADURA EN MINERÍA APLICADO
 
Propuesta para la creación de un Centro de Innovación para la Refundación ...
Propuesta para la creación de un Centro de Innovación para la Refundación ...Propuesta para la creación de un Centro de Innovación para la Refundación ...
Propuesta para la creación de un Centro de Innovación para la Refundación ...
 
INSUMOS QUIMICOS Y BIENES FISCALIZADOS POR LA SUNAT
INSUMOS QUIMICOS Y BIENES FISCALIZADOS POR LA SUNATINSUMOS QUIMICOS Y BIENES FISCALIZADOS POR LA SUNAT
INSUMOS QUIMICOS Y BIENES FISCALIZADOS POR LA SUNAT
 
MODIFICADO - CAPITULO II DISEÑO SISMORRESISTENTE DE VIGAS Y COLUMNAS.pdf
MODIFICADO - CAPITULO II DISEÑO SISMORRESISTENTE DE VIGAS Y COLUMNAS.pdfMODIFICADO - CAPITULO II DISEÑO SISMORRESISTENTE DE VIGAS Y COLUMNAS.pdf
MODIFICADO - CAPITULO II DISEÑO SISMORRESISTENTE DE VIGAS Y COLUMNAS.pdf
 
Estadística Anual y Multianual del Sector Eléctrico Ecuatoriano
Estadística Anual y Multianual del Sector Eléctrico EcuatorianoEstadística Anual y Multianual del Sector Eléctrico Ecuatoriano
Estadística Anual y Multianual del Sector Eléctrico Ecuatoriano
 
NTP- Determinación de Cloruros en suelos y agregados (1) (1).pptx
NTP- Determinación de Cloruros  en suelos y agregados (1) (1).pptxNTP- Determinación de Cloruros  en suelos y agregados (1) (1).pptx
NTP- Determinación de Cloruros en suelos y agregados (1) (1).pptx
 
413924447-Clasificacion-de-Inventarios-ABC-ppt.ppt
413924447-Clasificacion-de-Inventarios-ABC-ppt.ppt413924447-Clasificacion-de-Inventarios-ABC-ppt.ppt
413924447-Clasificacion-de-Inventarios-ABC-ppt.ppt
 
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
 
Sesion 6 _ Curso Integrador II_TSZVQJ.pdf
Sesion 6 _ Curso Integrador II_TSZVQJ.pdfSesion 6 _ Curso Integrador II_TSZVQJ.pdf
Sesion 6 _ Curso Integrador II_TSZVQJ.pdf
 
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
 
01 MATERIALES AERONAUTICOS VARIOS clase 1.ppt
01 MATERIALES AERONAUTICOS VARIOS clase 1.ppt01 MATERIALES AERONAUTICOS VARIOS clase 1.ppt
01 MATERIALES AERONAUTICOS VARIOS clase 1.ppt
 
Aportes a la Arquitectura de Le Corbusier y Mies Van der Rohe
Aportes a la Arquitectura de Le Corbusier y Mies Van der RoheAportes a la Arquitectura de Le Corbusier y Mies Van der Rohe
Aportes a la Arquitectura de Le Corbusier y Mies Van der Rohe
 
ANALISIS Y DISEÑO POR VIENTO, DE EDIFICIOS ALTOS, SEGUN ASCE-2016, LAURA RAMIREZ
ANALISIS Y DISEÑO POR VIENTO, DE EDIFICIOS ALTOS, SEGUN ASCE-2016, LAURA RAMIREZANALISIS Y DISEÑO POR VIENTO, DE EDIFICIOS ALTOS, SEGUN ASCE-2016, LAURA RAMIREZ
ANALISIS Y DISEÑO POR VIENTO, DE EDIFICIOS ALTOS, SEGUN ASCE-2016, LAURA RAMIREZ
 
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
 
Análisis_y_Diseño_de_Estructuras_con_SAP_2000,_5ta_Edición_ICG.pdf
Análisis_y_Diseño_de_Estructuras_con_SAP_2000,_5ta_Edición_ICG.pdfAnálisis_y_Diseño_de_Estructuras_con_SAP_2000,_5ta_Edición_ICG.pdf
Análisis_y_Diseño_de_Estructuras_con_SAP_2000,_5ta_Edición_ICG.pdf
 
tesis maíz univesidad catolica santa maria
tesis maíz univesidad catolica santa mariatesis maíz univesidad catolica santa maria
tesis maíz univesidad catolica santa maria
 

Destacado

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)

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
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Javier salazar programacion

  • 1.
  • 2. • Realizar un algoritmo que permita leer dos valores, determinar cuál de los dos valores es el menor y escríbalo Escribir “INGRESE PRIMER VALOR“ Leer “x“ Escribir “INGRESE SEGUNDO VALOR“ Leer “z“ Si x = z Entonces Escribir “ERROR“ FinSi Si x < z Entonces Escribir “PRIMER VALOR MENOR QUE EL SEGUNDO“ FinSi Si z < x Entonces Escribir “SEGUNDO VALOR MENOR QUE EL PRIMERO“ FinSi FinProceso
  • 3. • Desarrolle un algoritmo que lea cuatro números diferentes y a continuación imprima el mayor de los cuatro números introducidos y también el menor de ellos. Escribir “INGRESE PRIMER VALOR“ Leer “O“ Escribir “INGRESE SEGUNDO VALOR“ Leer “P“ Escribir “INGRESE TERCER VALOR“ Leer “Q“ Escribir “INGRESE CUARTO VALOR“ Leer “R“ Si O>P Y O>Q Y O>R Entonces Escribir O, “ES EL MAYOR“ Sino Si P>O Y P>Q Y P>R Entonces Escribir P, “ES EL MAYOR“ Sino Si Q>O Y Q>P Y Q>R Entonces Escribir Q, “ES EL MAYOR“ Sino Si R>O Y R>P Y R>Q Entonces Escribir R, “ES EL MAYOR“ FinSi FinSi FinSi Si O<P Y O<Q Y O<R Entonces Escribir O, “ES EL MENOR“ Sino Si P<O Y P<Q Y P<R Entonces Escribir P, “ES EL MENOR“ Sino Si Q<O Y Q<P Y Q<R Entonces Escribir Q, “ES EL MENOR“ Sino Si R<O Y R<P Y R<Q Entonces Escribir R, “ES EL MENOR“ FinSi FinSi FinSi FinProceso
  • 4. DIAGRAMA DE FLUJO • Crear el diagrama de flujo que proporcione el precio medio de un producto a partir del precio en tres establecimientos distintos INICIO FIN Pedir precio A, Precio B, Precio C Mostrar Media Media= (PrecioA+PrecioB+PrecioC)/3)
  • 5. DIAGRAMA DE FLUJO• Realizar el diagrama de flujo para que nos calcule la hipotenusa de un triángulo rectángulo, conocidos sus dos catetos INICIO FIN “Introducir valor de los catetos“ C1, C2 H=sqrt((C1)^2+(C2)^2) “La hipotenusa es: “h
  • 6. DIAGRAMA DE FLUJO• Realiza el diagrama de flujo que simule una caja registradora. INICIO RETORNO FIN IVA= Subtotal*0,12, Total= Subtotal+IVA Subtotal= Subtotal+Precio Subtotal= 0, Total= 0 Codigo_Producto, Precio “Subtotal:“, Subtotal “IVA:“, IVA “Total:“, Total Codigo_Producto, Precio Títulos Codigo_Producto, Precio SI NO