Based on the statement, you must present a modular algorithm (without using fixes) that satisfies the objectives indicated below. STATEMENT: To capture the names and ages of 10 people fulfilling the following objectives: 1.- Implement cycle While
2.- Determine and show the average age of all people
3.- Determine and show the percentage of minors
4.- Determine and show the younger age and the name of the 1st person who has it
5.- Determine and show the oldest age and the name of the 1st person who has it
The condition is that it does not use an array, but that everything is with several threads using a cycle while
Algoritmo MayorMenor
Entrada(nombre,edad,acum)
PromedioEdad(edad,acum,prom)
FinAlgoritmo
SubProceso Entrada(nombre por referencia, edad por referencia,cont por referencia)
i=1
cont=0
Mientras i<=3
Mostrar "Ingrese el nombre de la ",i "°persona: " Sin Saltar
Leer nombre
Mostrar "Ingrese la edad de la ",i "°persona: " Sin Saltar
Leer edad
i=i+1
acum=acum+edad
FinMientras
FinSubProceso
SubProceso PromedioEdad(edad,acum,prom Por Referencia)
prom=acum/3
FinSubProceso