REALIZAR LOS SIGUIENTES ALGORITMOS
1. Algoritmo para leer un valor monetario en dólar y transformar o convertir a 7 monedas oficiales.
1. Algoritmo para leer un valor monetario en dólar y transformar o convertir a 7 monedas oficiales.
DE DOLAR A EURO $67.85, EJEM,PLO TENGO $67,86 USD
1. Ingresar MONEDA
2. EURO = MONEDA * 0.7645
3. LIBRA = MONEDA * 0.654
4. MARCO FINLANDES = MONEDA * 4.044
5. REAL BRASILEÑO = MONEDA * 2.005
6. BOLIVAR VENEZOLANO = MONEDA * 2147.5
7. RUBLO RUSO = MONEDA * 31.499
8. PESO MEXICANO = MONEDA * 12.283
9. "El cambio de" ; MONEDA "dolares es" ; EURO ; "Euros"
10. "El cambio de" ; MONEDA "dolares es" ; LIBRA ; "Libras"
11. "El cambio de" ; MONEDA "dolares es" ; MARCO FINLANDES ; "Marco Finlandes"
12. "El cambio de" ; MONEDA "dolares es" ; REAL BRASILEÑO ; "Reales Brasileños"
13. "El cambio de" ; MONEDA "dolares es" ; BOLIVAR VENEZOLANA ; "Bolívares Venezolanos"
14. "El cambio de" ; MONEDA "dolares es" ; RUBLOS RUSOS ; "Rublos Rusos"
15. "El cambio de" ; MONEDA "dolares es" ; PESO MEXICANO ; "Peso Mexicano"
16. Fin
1. Ingresar N1
2. si ((0>N1) && (N1>10)) regrese a paso 1.
3. Ingresar N2
4. si ((0>N2) && (N2>10)) regrese a paso 3.
5. Ingresar N3
6. si ((0>N3) && (N3>10)) regrese a paso 5.
7. PROMEDIO = (N1 + N2 + N3) / 3
8. "El promedio de" ; N1, N2, N3 "es de" ; PROMEDIO
9. FIN.
1. Ingresar N1, N2, N3
2. si N1 > N2 and N1 > N3 entonces MAYOR = N1
3. si N2 > N1 and N2 > N3 entonces MAYOR = N2
4. si N3 > N1 and N3 > N2 entonces MAYOR = N3
5. si N1 < N2 and N1 < N3 entonces menor = N1
6. si N2 < N1 and N2 < N3 entonces menor = N2
7. si N3 < N1 and N3 < N2 entonces menor = N3
8. "El Mayor es" ; MAYOR ; "y el menor es" ; menor
1. Leer N
2. si (N MOD 2 = 0) entonces Par = N, IR A PASO 4
3. Impar = N
4. imprimir Par
5. Imprimir Impar
0 comentarios:
Publicar un comentario