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

Quimica Raymond Chang 12va Edicion___pdf
Quimica Raymond Chang 12va Edicion___pdfQuimica Raymond Chang 12va Edicion___pdf
Quimica Raymond Chang 12va Edicion___pdfs7yl3dr4g0n01
 
ARBOL DE CAUSAS ANA INVESTIGACION DE ACC.ppt
ARBOL DE CAUSAS ANA INVESTIGACION DE ACC.pptARBOL DE CAUSAS ANA INVESTIGACION DE ACC.ppt
ARBOL DE CAUSAS ANA INVESTIGACION DE ACC.pptMarianoSanchez70
 
CHARLA DE INDUCCIÓN SEGURIDAD Y SALUD OCUPACIONAL
CHARLA DE INDUCCIÓN SEGURIDAD Y SALUD OCUPACIONALCHARLA DE INDUCCIÓN SEGURIDAD Y SALUD OCUPACIONAL
CHARLA DE INDUCCIÓN SEGURIDAD Y SALUD OCUPACIONALKATHIAMILAGRITOSSANC
 
Obras paralizadas en el sector construcción
Obras paralizadas en el sector construcciónObras paralizadas en el sector construcción
Obras paralizadas en el sector construcciónXimenaFallaLecca1
 
CARGAS VIVAS Y CARGAS MUERTASEXPOCI.pptx
CARGAS VIVAS Y CARGAS MUERTASEXPOCI.pptxCARGAS VIVAS Y CARGAS MUERTASEXPOCI.pptx
CARGAS VIVAS Y CARGAS MUERTASEXPOCI.pptxvalenciaespinozadavi1
 
Principales aportes de la carrera de William Edwards Deming
Principales aportes de la carrera de William Edwards DemingPrincipales aportes de la carrera de William Edwards Deming
Principales aportes de la carrera de William Edwards DemingKevinCabrera96
 
Falla de san andres y el gran cañon : enfoque integral
Falla de san andres y el gran cañon : enfoque integralFalla de san andres y el gran cañon : enfoque integral
Falla de san andres y el gran cañon : enfoque integralsantirangelcor
 
Manual_Identificación_Geoformas_140627.pdf
Manual_Identificación_Geoformas_140627.pdfManual_Identificación_Geoformas_140627.pdf
Manual_Identificación_Geoformas_140627.pdfedsonzav8
 
clasificasion de vias arteriales , vias locales
clasificasion de vias arteriales , vias localesclasificasion de vias arteriales , vias locales
clasificasion de vias arteriales , vias localesMIGUELANGEL2658
 
Mapas y cartas topográficas y de suelos.pptx
Mapas y cartas topográficas y de suelos.pptxMapas y cartas topográficas y de suelos.pptx
Mapas y cartas topográficas y de suelos.pptxMONICADELROCIOMUNZON1
 
tema05 estabilidad en barras mecanicas.pdf
tema05 estabilidad en barras mecanicas.pdftema05 estabilidad en barras mecanicas.pdf
tema05 estabilidad en barras mecanicas.pdfvictoralejandroayala2
 
PPT ELABORARACION DE ADOBES 2023 (1).pdf
PPT ELABORARACION DE ADOBES 2023 (1).pdfPPT ELABORARACION DE ADOBES 2023 (1).pdf
PPT ELABORARACION DE ADOBES 2023 (1).pdfalexquispenieto2
 
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.pdfbcondort
 
osciloscopios Mediciones Electricas ingenieria.pdf
osciloscopios Mediciones Electricas ingenieria.pdfosciloscopios Mediciones Electricas ingenieria.pdf
osciloscopios Mediciones Electricas ingenieria.pdfIvanRetambay
 
aCARGA y FUERZA UNI 19 marzo 2024-22.ppt
aCARGA y FUERZA UNI 19 marzo 2024-22.pptaCARGA y FUERZA UNI 19 marzo 2024-22.ppt
aCARGA y FUERZA UNI 19 marzo 2024-22.pptCRISTOFERSERGIOCANAL
 
ECONOMIA APLICADA SEMANA 555555555544.pdf
ECONOMIA APLICADA SEMANA 555555555544.pdfECONOMIA APLICADA SEMANA 555555555544.pdf
ECONOMIA APLICADA SEMANA 555555555544.pdfmatepura
 
Ingeniería clínica 1 Ingeniería biomedica
Ingeniería clínica 1 Ingeniería biomedicaIngeniería clínica 1 Ingeniería biomedica
Ingeniería clínica 1 Ingeniería biomedicaANACENIMENDEZ1
 
CLASe número 4 fotogrametria Y PARALAJE.pptx
CLASe número 4 fotogrametria Y PARALAJE.pptxCLASe número 4 fotogrametria Y PARALAJE.pptx
CLASe número 4 fotogrametria Y PARALAJE.pptxbingoscarlet
 
TAREA 8 CORREDOR INTEROCEÁNICO DEL PAÍS.pdf
TAREA 8 CORREDOR INTEROCEÁNICO DEL PAÍS.pdfTAREA 8 CORREDOR INTEROCEÁNICO DEL PAÍS.pdf
TAREA 8 CORREDOR INTEROCEÁNICO DEL PAÍS.pdfAntonioGonzalezIzqui
 

Kürzlich hochgeladen (20)

Quimica Raymond Chang 12va Edicion___pdf
Quimica Raymond Chang 12va Edicion___pdfQuimica Raymond Chang 12va Edicion___pdf
Quimica Raymond Chang 12va Edicion___pdf
 
ARBOL DE CAUSAS ANA INVESTIGACION DE ACC.ppt
ARBOL DE CAUSAS ANA INVESTIGACION DE ACC.pptARBOL DE CAUSAS ANA INVESTIGACION DE ACC.ppt
ARBOL DE CAUSAS ANA INVESTIGACION DE ACC.ppt
 
CHARLA DE INDUCCIÓN SEGURIDAD Y SALUD OCUPACIONAL
CHARLA DE INDUCCIÓN SEGURIDAD Y SALUD OCUPACIONALCHARLA DE INDUCCIÓN SEGURIDAD Y SALUD OCUPACIONAL
CHARLA DE INDUCCIÓN SEGURIDAD Y SALUD OCUPACIONAL
 
VALORIZACION Y LIQUIDACION MIGUEL SALINAS.pdf
VALORIZACION Y LIQUIDACION MIGUEL SALINAS.pdfVALORIZACION Y LIQUIDACION MIGUEL SALINAS.pdf
VALORIZACION Y LIQUIDACION MIGUEL SALINAS.pdf
 
Obras paralizadas en el sector construcción
Obras paralizadas en el sector construcciónObras paralizadas en el sector construcción
Obras paralizadas en el sector construcción
 
CARGAS VIVAS Y CARGAS MUERTASEXPOCI.pptx
CARGAS VIVAS Y CARGAS MUERTASEXPOCI.pptxCARGAS VIVAS Y CARGAS MUERTASEXPOCI.pptx
CARGAS VIVAS Y CARGAS MUERTASEXPOCI.pptx
 
Principales aportes de la carrera de William Edwards Deming
Principales aportes de la carrera de William Edwards DemingPrincipales aportes de la carrera de William Edwards Deming
Principales aportes de la carrera de William Edwards Deming
 
Falla de san andres y el gran cañon : enfoque integral
Falla de san andres y el gran cañon : enfoque integralFalla de san andres y el gran cañon : enfoque integral
Falla de san andres y el gran cañon : enfoque integral
 
Manual_Identificación_Geoformas_140627.pdf
Manual_Identificación_Geoformas_140627.pdfManual_Identificación_Geoformas_140627.pdf
Manual_Identificación_Geoformas_140627.pdf
 
clasificasion de vias arteriales , vias locales
clasificasion de vias arteriales , vias localesclasificasion de vias arteriales , vias locales
clasificasion de vias arteriales , vias locales
 
Mapas y cartas topográficas y de suelos.pptx
Mapas y cartas topográficas y de suelos.pptxMapas y cartas topográficas y de suelos.pptx
Mapas y cartas topográficas y de suelos.pptx
 
tema05 estabilidad en barras mecanicas.pdf
tema05 estabilidad en barras mecanicas.pdftema05 estabilidad en barras mecanicas.pdf
tema05 estabilidad en barras mecanicas.pdf
 
PPT ELABORARACION DE ADOBES 2023 (1).pdf
PPT ELABORARACION DE ADOBES 2023 (1).pdfPPT ELABORARACION DE ADOBES 2023 (1).pdf
PPT ELABORARACION DE ADOBES 2023 (1).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
 
osciloscopios Mediciones Electricas ingenieria.pdf
osciloscopios Mediciones Electricas ingenieria.pdfosciloscopios Mediciones Electricas ingenieria.pdf
osciloscopios Mediciones Electricas ingenieria.pdf
 
aCARGA y FUERZA UNI 19 marzo 2024-22.ppt
aCARGA y FUERZA UNI 19 marzo 2024-22.pptaCARGA y FUERZA UNI 19 marzo 2024-22.ppt
aCARGA y FUERZA UNI 19 marzo 2024-22.ppt
 
ECONOMIA APLICADA SEMANA 555555555544.pdf
ECONOMIA APLICADA SEMANA 555555555544.pdfECONOMIA APLICADA SEMANA 555555555544.pdf
ECONOMIA APLICADA SEMANA 555555555544.pdf
 
Ingeniería clínica 1 Ingeniería biomedica
Ingeniería clínica 1 Ingeniería biomedicaIngeniería clínica 1 Ingeniería biomedica
Ingeniería clínica 1 Ingeniería biomedica
 
CLASe número 4 fotogrametria Y PARALAJE.pptx
CLASe número 4 fotogrametria Y PARALAJE.pptxCLASe número 4 fotogrametria Y PARALAJE.pptx
CLASe número 4 fotogrametria Y PARALAJE.pptx
 
TAREA 8 CORREDOR INTEROCEÁNICO DEL PAÍS.pdf
TAREA 8 CORREDOR INTEROCEÁNICO DEL PAÍS.pdfTAREA 8 CORREDOR INTEROCEÁNICO DEL PAÍS.pdf
TAREA 8 CORREDOR INTEROCEÁNICO DEL PAÍS.pdf
 

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