Академический Документы
Профессиональный Документы
Культура Документы
De todos los jugadores de un equipo de voley se ingresan: Apellido nombre, y altura. (No
se sabe cuantos jugadores hay). Se pide Mostrar lo siguiente:
1. cuantos jugadores se ingresaron en total.
2. El nombre y la altura del jugador más alto.
3. Promedio de Altura.
4. Cuantos Jugadores Tienen una altura de 1.8.
INICIO
Continua = ”S”
MayorAltura = 0
MIENTRAS Continua = “S”
Escribir “Ingrese el Apellido y Nombres: “
Leer apenom
Escribir “Ingrese la altura: “
Leer altura
Jugadores = Jugadores + 1
SumaAltura=SumaAltura + altura
ENTONCES
MIENTRAS Leer jugadores= SI sumaAltura=
continua=S apenom altura jugadores+1 altura>mayorAltura mayorAltura mayorNombre sumaAltura+
altura nombre altura
S=S X1 1,95 0+1=1 1,95>0 1,95 X1 0+1,95=1,95
S=S X2 1,80 1+1=2 1,80>1,95 - - 1,95+1,8=3,75
S=S X3 2,05 2+1=3 2,05>1,95 2,05 X3 3,75+2,05=5,8
Clase 10
-1-
N=S
INICIO
Continua = ”S”
MIENTRAS Continua = “S”
Si Deporte = 1 entonces
Tenis = tenis + 1
Sino
Paddle=Paddle+1
IMPRIMIR apenom, nrosocio, edad
sumaPaddle = sumaPaddle +edad
PromedioPaddle = sumaPaddle/Paddle
FinSi
FINMIENTRAS
Clase 10
-2-
Leer ENTONCES SINO
MIENTRAS SI Leer
Continua=S apenom nrosocio edad deporte deporte=1 tenis= paddle= sumaPaddle= promedioPaddle continua
tenis+ paddle+ sumaPaddle+ sumaPaddle/
1 1 paddle paddle
S=S X1 0001 30 1 1=1 0+1=1 - - - S
S=S X2 0002 25 2 2=1 - 0+1=1 0+25=25 25/1=25 S
S=S X3 0003 35 2 2=1 - 1+1=2 25+35=60 60/2=30 N
N=S
Escribir
tenis paddle PromedioPaddle
1 2 30
INICIO
Continua = ”S”
MayorPrecio = 0
MIENTRAS Continua = “S”
Escribir “Ingrese descripción del artefacto: “
Leer descri
Escribir “Ingrese Nro. De serie: “
Leer NSerie
Escribir “Ingrese tipo de artefacto (1: Heladeras / 2: Lavarropas / 3: Televisor / 4:
Otros)”
Leer tipo
Escribir “Ingrese el precio del artefacto”
Leer precio
Total = total + precio
Si tipo = 1 entonces
Heladeras = heladeras + precio
Si precio > MayorPrecio entonces
MayorPrecio = precio
FinSi
IMPRIMIR descri, NSerie, precio
Sino
Si tipo = 2 entonces
Lavarropas = lavarropas + precio
FinSi
FinSi
Clase 10
-3-
Escribir “Continua trabajando S/N”
Leer continua
FINMIENTRAS
Escribir “El Importe total recaudado es: “,total
Escribir “El importe total de la compra de heladeras es: “,Heladeras
Escribir “El mayor precio de las heladeras:”, mayorprecio
Escribir “El importe total de la compra de lavarropas es: “,lavarropas
FIN
Leer
MIENTRAS total= SI
continua=S descri nSerie Tipo Precio total+ tipo
precio
Escribir
total heladeras MayorPrecio Lavarropas
300 2 1500 2
Clase 10
-4-