SlideShare ist ein Scribd-Unternehmen logo
1 von 11
EJERCICIOS DEL MIENTRAS
Proceso EJERCICIO 1
contado<-0
sueldobase<-100000
Escribir "digite el numero de vendedores"
Leer vendedores
Escribir "digite el valor total de las ventas"
Leer ventas
respuesta<-"s"
Mientras contador<vendedores y respuesta="s" Hacer
contador<-contador+1
comisiones<-ventas*0.1
total<-(comisiones+sueldobase)
totalneto<-vendedores*total
Escribir "total de cada uno de los vendedores es ",total
Escribir "el total de todo es ",totalneto
Escribir "desea continuar con otro calculo s/n?"
Leer respuesta
Fin Mientras
Fin proceso
Proceso EJERCICIO 2
contador<-0
respuesta<-"s"
Escribir "digite el numero de obreros "
Leer obreros
Mientras contador<obreros y respuesta="s" Hacer
contador<-contador+1
Escribir "digite el numero de horas trabajadas"
Leer horas
Si horas<=40 Entonces
salario1<-(horas*20)
Escribir "el salario total es ",salario1
Sino
salario2<-((horas-40)*25)+(horas*20)
Escribir "el salario total es ",salario2
Fin Si
Escribir " desea continuar con otro calculo s/n?"
leer respuesta
Fin Mientras
FinProceso
roceso EJERCICIO3
contador<-0
hombre<-0
mujer<-0
Escribir "digite el umero de personas"
Leer numerop
Mientras contador<numerop Hacer
contador<-contador+1
Escribir " digite su gener (hombre/mujer)"
Leer genero
Si genero="mujer" o genero="MUJER" o genero="Mujer" Entonces
mujer<-mujer+1
Sino
hombre<-hombre+1
Fin Si
Fin Mientras
Escribir "el total de hombre es ",hombre
Escribir " el total de mujeres es",mujer
FinProceso
Proceso EJERCICIO4
contador<-0
Escribir "digite el numero de autos que ingresan"
leer cantidad
Mientras contador<cantidad Hacer
contador<-contador+1
Escribir "ultimo digito de la placa"
Leer digito
Segun digito Hacer
1,2:
Escribir "cantidad de autos con placa terminada en 1"
Leer placas_1
Escribir "cantidad de autos con placa terminada en 2"
Leer placas_2
total_amarillo<-placas_1+placas_2
3,4:
Escribir "cantidad de autos con placa terminada en 1"
amarillo<-amarillo+1
5,6,5:
Escribir "cantidad de autos con placa terminada en 1"
rosa<-rosa+1
7,8:
Escribir "cantidad de autos con placa terminada en 1"
rosa<-rosa+1
9,0:
Escribir "cantidad de autos con placa terminada en 1"
rojo<-rojo+1
Fin Segun
total<-amarillo+rosa+roja+verde+azul
Fin Mientras
Escribir "la cantidad de carros que ingresaron a ciudad de mexico son"
Escribir "amarillos ",amarillo
Escribir "rosa ",rosa
Escribir "rojo ",rojo
Escribir "verde ",verde
Escribir "azul ",azul
Escribir "total ",total
FinProceso
Proceso EJERCICIO6
contador<-0
sumatoria<-0
Escribir " digite la cantidad de estudiantes"
Leer cantidad
Mientras contador<cantidad Hacer
contador<-contador+1
Escribir "digite el promedio del estudiante",contador
Leer nota1
sumatoria<-sumatoria+nota1
Fin Mientras
promedio<-sumatoria/cantidad
Escribir " el promedio general del curso",promedio
FinProceso
Proceso sin_titulo
contador<-1
Escribir "digite el velor de la inversion"
Leer inversion
total_1<-(inversion*0.02)+inversion
Mientras contador<12 Hacer
contador<-contador+1
intereses<-total_1*0.02
total_1<-total_1+intereses
Fin Mientras
Escribir "el total que recibira", total_1
FinProceso
Proceso EJERCICIO7
contador<-0
sumatoria<-0
hombre<-0
mujer<-0
Escribir "digite la cantidad de alumnos"
Leer cantidad
Mientras contador<cantidad Hacer
contador<-contador+1
Escribir "digite su edad"
Leer edad
Escribir "digite su genero"
Leer genero
Si genero="mujer" o genero="Mujer"o genero="MUJER" Entonces
mujer<-mujer+1
sumatoria1<-sumatoria1+edad
Sino
hombre<-hombre+1
sumatoria2<-sumatoria2+edad
Fin Si
Fin Mientras
Escribir "total hombres",hombre
Escribir "total mujeres",mujer
total1<-sumatoria1/mujer
total2<-sumatoria2/hombre
total3<-sumatoria1+sumatoria2
total4<-total3/cantidad
Escribir " la edad promedio de los mujeres es ",total1
Escribir "la edad promedio de las hombres es ",total2
Escribir "la edad promedio del grupo",total4
FinProceso
Proceso EJERCICIO8
contador<-1
Escribir "Digite la cantidad de numeros:"
Leer n
Escribir "Digite un numero:"
Leer numero1
Escribir "Numero ingresado: ",numero1
menor1<-numero1
Mientras contador<=n Hacer
contador<-contador+1
Escribir "Digite un numero:"
Leer numero1
Escribir "Numero ingresado: ",numero1
Si numero1<menor1 Entonces
menor1<-numero1
Sino
menor1<-menor1
FinSi
FinMientras
Escribir "El numero menor es ",menor1
Proceso EJERCICIO9
contador<-1
Escribir "Digite la cantidad de numeros:"
Leer n
Escribir "Digite un numero:"
Leer numero1
Escribir "Numero ingresado: ",numero1
mayor1<-numero1
Mientras contador<=n Hacer
contador<-contador+1
Escribir "Digite un numero:"
Leer numero1
Escribir "Numero ingresado: ",numero1
Si numero1>mayor1 Entonces
mayor1<-numero1
Sino
mayor1<-mayor1
FinSi
FinMientras
Escribir "El numero mayor es ",mayor1
FinProceso
Proceso EJERCICIO10
sumatoria<-0
contador<-0
cajadia<-100000
Escribir "digite la cantidad de los aeticulos"
Leer cantidad
Mientras contador<cantidad Hacer
contador<-contador+1
Escribir "digite el valor del articulo"
Leer valor1
sumatoria<-sumatoria+valor1
cajadia<-cajadia+sumatoria
Escribir "el valor del articulo es ",valor1
Escribir "el valor total a pagar es",sumatoria
Escribir "total de articulos es ",contador
Fin Mientras
Escribir "el valor total a pagar es",sumatoria
Escribir "total caja del dia",cajadia
FinProceso
Proceso EJERCICIO11
contador<-1
Mientras contador<=5 Hacer
Escribir "Digite el peso obtenido en la anterior reunion:"
Leer pesoanterior
lecturapeso<-0
suma<-0
Repetir
lecturapeso<-lecturapeso+1
Escribir "Digite la lectura de peso ",lecturapeso,":"
Leer pesoac
suma<-suma+pesoac
Hasta Que lecturapeso=10
promedio<-suma/10
Si (pesoanterior-promedio)<0 Entonces
Escribir "La persona SUBIO de peso"
Escribir "La persona aumento ",(promedio-pesoanterior)," kilos"
Sino
Si (pesoanterior-promedio)>0 Entonces
Escribir "La persona BAJO de peso"
Escribir "La persona BAJO ",(pesoanterior-promedio)," kilos"
Sino
Escribir "La persona sigue IGUAL de peso"
FinSi
FinSi
contador<-contador+1
FinMientras
FinProceso

Weitere ähnliche Inhalte

Kürzlich hochgeladen

PRIMER Y SEGUNDO TEOREMA DE CASTIGLIANO.pdf
PRIMER Y SEGUNDO TEOREMA DE CASTIGLIANO.pdfPRIMER Y SEGUNDO TEOREMA DE CASTIGLIANO.pdf
PRIMER Y SEGUNDO TEOREMA DE CASTIGLIANO.pdfAuraGabriela2
 
Revista estudiantil, trabajo final Materia ingeniería de Proyectos
Revista estudiantil, trabajo final Materia ingeniería de ProyectosRevista estudiantil, trabajo final Materia ingeniería de Proyectos
Revista estudiantil, trabajo final Materia ingeniería de ProyectosJeanCarlosLorenzo1
 
electricidad básica, ejemplos prácticos y ejercicios
electricidad básica, ejemplos prácticos y ejercicioselectricidad básica, ejemplos prácticos y ejercicios
electricidad básica, ejemplos prácticos y ejerciciosEfrain Yungan
 
LIQUIDACION OBRAS PUBLICAS POR CONTRATA.pdf
LIQUIDACION OBRAS PUBLICAS  POR CONTRATA.pdfLIQUIDACION OBRAS PUBLICAS  POR CONTRATA.pdf
LIQUIDACION OBRAS PUBLICAS POR CONTRATA.pdfManuelVillarreal44
 
trabajos en altura 2024, sistemas de contencion anticaidas
trabajos en altura 2024, sistemas de contencion anticaidastrabajos en altura 2024, sistemas de contencion anticaidas
trabajos en altura 2024, sistemas de contencion anticaidasNelsonQuispeQuispitu
 
5. MATERIAL COMPLEMENTARIO - PPT de la Sesión 02.pptx
5. MATERIAL COMPLEMENTARIO - PPT  de la Sesión 02.pptx5. MATERIAL COMPLEMENTARIO - PPT  de la Sesión 02.pptx
5. MATERIAL COMPLEMENTARIO - PPT de la Sesión 02.pptxJOSLUISCALLATAENRIQU
 
I LINEAMIENTOS Y CRITERIOS DE INFRAESTRUCTURA DE RIEGO.pptx
I LINEAMIENTOS Y CRITERIOS DE INFRAESTRUCTURA DE RIEGO.pptxI LINEAMIENTOS Y CRITERIOS DE INFRAESTRUCTURA DE RIEGO.pptx
I LINEAMIENTOS Y CRITERIOS DE INFRAESTRUCTURA DE RIEGO.pptxPATRICIAKARIMESTELAL
 
lean manufacturing and its definition for industries
lean manufacturing and its definition for industrieslean manufacturing and its definition for industries
lean manufacturing and its definition for industriesbarom
 
Descubrimiento de la penicilina en la segunda guerra mundial
Descubrimiento de la penicilina en la segunda guerra mundialDescubrimiento de la penicilina en la segunda guerra mundial
Descubrimiento de la penicilina en la segunda guerra mundialyajhairatapia
 
CONSTRUCCIONES II - SEMANA 01 - REGLAMENTO NACIONAL DE EDIFICACIONES.pdf
CONSTRUCCIONES II - SEMANA 01 - REGLAMENTO NACIONAL DE EDIFICACIONES.pdfCONSTRUCCIONES II - SEMANA 01 - REGLAMENTO NACIONAL DE EDIFICACIONES.pdf
CONSTRUCCIONES II - SEMANA 01 - REGLAMENTO NACIONAL DE EDIFICACIONES.pdfErikNivor
 
MEC. FLUIDOS - Análisis Diferencial del Movimiento de un Fluido -GRUPO5 sergi...
MEC. FLUIDOS - Análisis Diferencial del Movimiento de un Fluido -GRUPO5 sergi...MEC. FLUIDOS - Análisis Diferencial del Movimiento de un Fluido -GRUPO5 sergi...
MEC. FLUIDOS - Análisis Diferencial del Movimiento de un Fluido -GRUPO5 sergi...Arquitecto Alejandro Gomez cornejo muñoz
 
1. Cap. 4 Carga Axial (1).pdf237374335347
1. Cap. 4 Carga Axial (1).pdf2373743353471. Cap. 4 Carga Axial (1).pdf237374335347
1. Cap. 4 Carga Axial (1).pdf237374335347vd110501
 
4.3 Subestaciones eléctricas componentes principales .pptx
4.3 Subestaciones eléctricas componentes principales .pptx4.3 Subestaciones eléctricas componentes principales .pptx
4.3 Subestaciones eléctricas componentes principales .pptxEfrain Yungan
 
Topografía 1 Nivelación y Carretera en la Ingenierías
Topografía 1 Nivelación y Carretera en la IngenieríasTopografía 1 Nivelación y Carretera en la Ingenierías
Topografía 1 Nivelación y Carretera en la IngenieríasSegundo Silva Maguiña
 
Tema 7 Plantas Industriales (2).pptx ingenieria
Tema 7 Plantas Industriales (2).pptx ingenieriaTema 7 Plantas Industriales (2).pptx ingenieria
Tema 7 Plantas Industriales (2).pptx ingenieriaLissetteMorejonLeon
 
Estudio de materiales asfalticos para utilizar en obras viales
Estudio de materiales asfalticos para utilizar en obras vialesEstudio de materiales asfalticos para utilizar en obras viales
Estudio de materiales asfalticos para utilizar en obras vialesRamonCortez4
 
5.1 MATERIAL COMPLEMENTARIO Sesión 02.pptx
5.1 MATERIAL COMPLEMENTARIO Sesión 02.pptx5.1 MATERIAL COMPLEMENTARIO Sesión 02.pptx
5.1 MATERIAL COMPLEMENTARIO Sesión 02.pptxNayeliZarzosa1
 
Centro Integral del Transporte de Metro de Madrid (CIT). Premio COAM 2023
Centro Integral del Transporte de Metro de Madrid (CIT). Premio COAM 2023Centro Integral del Transporte de Metro de Madrid (CIT). Premio COAM 2023
Centro Integral del Transporte de Metro de Madrid (CIT). Premio COAM 2023ANDECE
 

Kürzlich hochgeladen (20)

PRIMER Y SEGUNDO TEOREMA DE CASTIGLIANO.pdf
PRIMER Y SEGUNDO TEOREMA DE CASTIGLIANO.pdfPRIMER Y SEGUNDO TEOREMA DE CASTIGLIANO.pdf
PRIMER Y SEGUNDO TEOREMA DE CASTIGLIANO.pdf
 
Revista estudiantil, trabajo final Materia ingeniería de Proyectos
Revista estudiantil, trabajo final Materia ingeniería de ProyectosRevista estudiantil, trabajo final Materia ingeniería de Proyectos
Revista estudiantil, trabajo final Materia ingeniería de Proyectos
 
electricidad básica, ejemplos prácticos y ejercicios
electricidad básica, ejemplos prácticos y ejercicioselectricidad básica, ejemplos prácticos y ejercicios
electricidad básica, ejemplos prácticos y ejercicios
 
LIQUIDACION OBRAS PUBLICAS POR CONTRATA.pdf
LIQUIDACION OBRAS PUBLICAS  POR CONTRATA.pdfLIQUIDACION OBRAS PUBLICAS  POR CONTRATA.pdf
LIQUIDACION OBRAS PUBLICAS POR CONTRATA.pdf
 
Linea del tiempo de la inteligencia artificial.pptx
Linea del tiempo de la inteligencia artificial.pptxLinea del tiempo de la inteligencia artificial.pptx
Linea del tiempo de la inteligencia artificial.pptx
 
trabajos en altura 2024, sistemas de contencion anticaidas
trabajos en altura 2024, sistemas de contencion anticaidastrabajos en altura 2024, sistemas de contencion anticaidas
trabajos en altura 2024, sistemas de contencion anticaidas
 
presentación manipulación manual de cargas sunafil
presentación manipulación manual de cargas sunafilpresentación manipulación manual de cargas sunafil
presentación manipulación manual de cargas sunafil
 
5. MATERIAL COMPLEMENTARIO - PPT de la Sesión 02.pptx
5. MATERIAL COMPLEMENTARIO - PPT  de la Sesión 02.pptx5. MATERIAL COMPLEMENTARIO - PPT  de la Sesión 02.pptx
5. MATERIAL COMPLEMENTARIO - PPT de la Sesión 02.pptx
 
I LINEAMIENTOS Y CRITERIOS DE INFRAESTRUCTURA DE RIEGO.pptx
I LINEAMIENTOS Y CRITERIOS DE INFRAESTRUCTURA DE RIEGO.pptxI LINEAMIENTOS Y CRITERIOS DE INFRAESTRUCTURA DE RIEGO.pptx
I LINEAMIENTOS Y CRITERIOS DE INFRAESTRUCTURA DE RIEGO.pptx
 
lean manufacturing and its definition for industries
lean manufacturing and its definition for industrieslean manufacturing and its definition for industries
lean manufacturing and its definition for industries
 
Descubrimiento de la penicilina en la segunda guerra mundial
Descubrimiento de la penicilina en la segunda guerra mundialDescubrimiento de la penicilina en la segunda guerra mundial
Descubrimiento de la penicilina en la segunda guerra mundial
 
CONSTRUCCIONES II - SEMANA 01 - REGLAMENTO NACIONAL DE EDIFICACIONES.pdf
CONSTRUCCIONES II - SEMANA 01 - REGLAMENTO NACIONAL DE EDIFICACIONES.pdfCONSTRUCCIONES II - SEMANA 01 - REGLAMENTO NACIONAL DE EDIFICACIONES.pdf
CONSTRUCCIONES II - SEMANA 01 - REGLAMENTO NACIONAL DE EDIFICACIONES.pdf
 
MEC. FLUIDOS - Análisis Diferencial del Movimiento de un Fluido -GRUPO5 sergi...
MEC. FLUIDOS - Análisis Diferencial del Movimiento de un Fluido -GRUPO5 sergi...MEC. FLUIDOS - Análisis Diferencial del Movimiento de un Fluido -GRUPO5 sergi...
MEC. FLUIDOS - Análisis Diferencial del Movimiento de un Fluido -GRUPO5 sergi...
 
1. Cap. 4 Carga Axial (1).pdf237374335347
1. Cap. 4 Carga Axial (1).pdf2373743353471. Cap. 4 Carga Axial (1).pdf237374335347
1. Cap. 4 Carga Axial (1).pdf237374335347
 
4.3 Subestaciones eléctricas componentes principales .pptx
4.3 Subestaciones eléctricas componentes principales .pptx4.3 Subestaciones eléctricas componentes principales .pptx
4.3 Subestaciones eléctricas componentes principales .pptx
 
Topografía 1 Nivelación y Carretera en la Ingenierías
Topografía 1 Nivelación y Carretera en la IngenieríasTopografía 1 Nivelación y Carretera en la Ingenierías
Topografía 1 Nivelación y Carretera en la Ingenierías
 
Tema 7 Plantas Industriales (2).pptx ingenieria
Tema 7 Plantas Industriales (2).pptx ingenieriaTema 7 Plantas Industriales (2).pptx ingenieria
Tema 7 Plantas Industriales (2).pptx ingenieria
 
Estudio de materiales asfalticos para utilizar en obras viales
Estudio de materiales asfalticos para utilizar en obras vialesEstudio de materiales asfalticos para utilizar en obras viales
Estudio de materiales asfalticos para utilizar en obras viales
 
5.1 MATERIAL COMPLEMENTARIO Sesión 02.pptx
5.1 MATERIAL COMPLEMENTARIO Sesión 02.pptx5.1 MATERIAL COMPLEMENTARIO Sesión 02.pptx
5.1 MATERIAL COMPLEMENTARIO Sesión 02.pptx
 
Centro Integral del Transporte de Metro de Madrid (CIT). Premio COAM 2023
Centro Integral del Transporte de Metro de Madrid (CIT). Premio COAM 2023Centro Integral del Transporte de Metro de Madrid (CIT). Premio COAM 2023
Centro Integral del Transporte de Metro de Madrid (CIT). Premio COAM 2023
 

Empfohlen

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
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 EngineeringsPixeldarts
 
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 HealthThinkNow
 
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.pdfmarketingartwork
 
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 2024Neil Kimberley
 
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)contently
 
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 2024Albert Qian
 
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 InsightsKurio // The Social Media Age(ncy)
 
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 2024Search Engine Journal
 
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 summarySpeakerHub
 
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 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 Tessa Mero
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
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 managementMindGenius
 
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...RachelPearson36
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
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...
 

Ejercicios mientras

  • 1. EJERCICIOS DEL MIENTRAS Proceso EJERCICIO 1 contado<-0 sueldobase<-100000 Escribir "digite el numero de vendedores" Leer vendedores Escribir "digite el valor total de las ventas" Leer ventas respuesta<-"s" Mientras contador<vendedores y respuesta="s" Hacer contador<-contador+1 comisiones<-ventas*0.1 total<-(comisiones+sueldobase) totalneto<-vendedores*total Escribir "total de cada uno de los vendedores es ",total Escribir "el total de todo es ",totalneto Escribir "desea continuar con otro calculo s/n?" Leer respuesta Fin Mientras Fin proceso Proceso EJERCICIO 2 contador<-0 respuesta<-"s" Escribir "digite el numero de obreros "
  • 2. Leer obreros Mientras contador<obreros y respuesta="s" Hacer contador<-contador+1 Escribir "digite el numero de horas trabajadas" Leer horas Si horas<=40 Entonces salario1<-(horas*20) Escribir "el salario total es ",salario1 Sino salario2<-((horas-40)*25)+(horas*20) Escribir "el salario total es ",salario2 Fin Si Escribir " desea continuar con otro calculo s/n?" leer respuesta Fin Mientras FinProceso roceso EJERCICIO3 contador<-0 hombre<-0 mujer<-0 Escribir "digite el umero de personas" Leer numerop Mientras contador<numerop Hacer
  • 3. contador<-contador+1 Escribir " digite su gener (hombre/mujer)" Leer genero Si genero="mujer" o genero="MUJER" o genero="Mujer" Entonces mujer<-mujer+1 Sino hombre<-hombre+1 Fin Si Fin Mientras Escribir "el total de hombre es ",hombre Escribir " el total de mujeres es",mujer FinProceso Proceso EJERCICIO4 contador<-0 Escribir "digite el numero de autos que ingresan" leer cantidad Mientras contador<cantidad Hacer contador<-contador+1 Escribir "ultimo digito de la placa" Leer digito Segun digito Hacer 1,2: Escribir "cantidad de autos con placa terminada en 1" Leer placas_1 Escribir "cantidad de autos con placa terminada en 2"
  • 4. Leer placas_2 total_amarillo<-placas_1+placas_2 3,4: Escribir "cantidad de autos con placa terminada en 1" amarillo<-amarillo+1 5,6,5: Escribir "cantidad de autos con placa terminada en 1" rosa<-rosa+1 7,8: Escribir "cantidad de autos con placa terminada en 1" rosa<-rosa+1 9,0: Escribir "cantidad de autos con placa terminada en 1" rojo<-rojo+1 Fin Segun total<-amarillo+rosa+roja+verde+azul Fin Mientras Escribir "la cantidad de carros que ingresaron a ciudad de mexico son" Escribir "amarillos ",amarillo Escribir "rosa ",rosa Escribir "rojo ",rojo Escribir "verde ",verde Escribir "azul ",azul Escribir "total ",total
  • 5. FinProceso Proceso EJERCICIO6 contador<-0 sumatoria<-0 Escribir " digite la cantidad de estudiantes" Leer cantidad Mientras contador<cantidad Hacer contador<-contador+1 Escribir "digite el promedio del estudiante",contador Leer nota1 sumatoria<-sumatoria+nota1 Fin Mientras promedio<-sumatoria/cantidad Escribir " el promedio general del curso",promedio FinProceso Proceso sin_titulo contador<-1 Escribir "digite el velor de la inversion" Leer inversion total_1<-(inversion*0.02)+inversion Mientras contador<12 Hacer contador<-contador+1 intereses<-total_1*0.02 total_1<-total_1+intereses
  • 6. Fin Mientras Escribir "el total que recibira", total_1 FinProceso Proceso EJERCICIO7 contador<-0 sumatoria<-0 hombre<-0 mujer<-0 Escribir "digite la cantidad de alumnos" Leer cantidad Mientras contador<cantidad Hacer contador<-contador+1 Escribir "digite su edad" Leer edad Escribir "digite su genero" Leer genero Si genero="mujer" o genero="Mujer"o genero="MUJER" Entonces mujer<-mujer+1 sumatoria1<-sumatoria1+edad Sino hombre<-hombre+1 sumatoria2<-sumatoria2+edad Fin Si Fin Mientras
  • 7. Escribir "total hombres",hombre Escribir "total mujeres",mujer total1<-sumatoria1/mujer total2<-sumatoria2/hombre total3<-sumatoria1+sumatoria2 total4<-total3/cantidad Escribir " la edad promedio de los mujeres es ",total1 Escribir "la edad promedio de las hombres es ",total2 Escribir "la edad promedio del grupo",total4 FinProceso Proceso EJERCICIO8 contador<-1 Escribir "Digite la cantidad de numeros:" Leer n Escribir "Digite un numero:" Leer numero1 Escribir "Numero ingresado: ",numero1 menor1<-numero1 Mientras contador<=n Hacer contador<-contador+1 Escribir "Digite un numero:" Leer numero1 Escribir "Numero ingresado: ",numero1 Si numero1<menor1 Entonces
  • 8. menor1<-numero1 Sino menor1<-menor1 FinSi FinMientras Escribir "El numero menor es ",menor1 Proceso EJERCICIO9 contador<-1 Escribir "Digite la cantidad de numeros:" Leer n Escribir "Digite un numero:" Leer numero1 Escribir "Numero ingresado: ",numero1 mayor1<-numero1 Mientras contador<=n Hacer contador<-contador+1 Escribir "Digite un numero:" Leer numero1 Escribir "Numero ingresado: ",numero1 Si numero1>mayor1 Entonces mayor1<-numero1 Sino mayor1<-mayor1
  • 9. FinSi FinMientras Escribir "El numero mayor es ",mayor1 FinProceso Proceso EJERCICIO10 sumatoria<-0 contador<-0 cajadia<-100000 Escribir "digite la cantidad de los aeticulos" Leer cantidad Mientras contador<cantidad Hacer contador<-contador+1 Escribir "digite el valor del articulo" Leer valor1 sumatoria<-sumatoria+valor1 cajadia<-cajadia+sumatoria Escribir "el valor del articulo es ",valor1 Escribir "el valor total a pagar es",sumatoria Escribir "total de articulos es ",contador Fin Mientras Escribir "el valor total a pagar es",sumatoria Escribir "total caja del dia",cajadia FinProceso Proceso EJERCICIO11
  • 10. contador<-1 Mientras contador<=5 Hacer Escribir "Digite el peso obtenido en la anterior reunion:" Leer pesoanterior lecturapeso<-0 suma<-0 Repetir lecturapeso<-lecturapeso+1 Escribir "Digite la lectura de peso ",lecturapeso,":" Leer pesoac suma<-suma+pesoac Hasta Que lecturapeso=10 promedio<-suma/10 Si (pesoanterior-promedio)<0 Entonces Escribir "La persona SUBIO de peso" Escribir "La persona aumento ",(promedio-pesoanterior)," kilos" Sino Si (pesoanterior-promedio)>0 Entonces Escribir "La persona BAJO de peso" Escribir "La persona BAJO ",(pesoanterior-promedio)," kilos" Sino Escribir "La persona sigue IGUAL de peso" FinSi FinSi