03.05.2017 Views

guia1r

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1) Distancia Recorrida<br />

Algoritmo Distancia_Recorrida<br />

//Realice un programa que calcule la distancia recorrida por un auto bus que<br />

viaja a una velocidad determinada y un tiempo definido por el usuario.<br />

Definir Distancia, t, tiempo, uni, v como reales<br />

Definir unidad como caracter<br />

Escribir "Elige la unidad de velocidad:";<br />

Escribir "(1)kilometros (2)millas (3)metros";<br />

Repetir<br />

leer uni;<br />

Si uni>3 Entonces<br />

Escribir "Elija un numero correcto de las opciones dadas anteriormente";<br />

Fin Si<br />

Hasta Que uni2 Entonces<br />

Escribir "Elija un numero correcto de las opciones dadas anteriormente";<br />

Fin Si<br />

Hasta Que t


Fin Si<br />

Si uni=3 & t=2 Entonces<br />

unidad


Si SB>=895.25 & SB=2038.11 Entonces<br />

RENTA=[(TR-T4)*30/100]+288.57<br />

FinSi<br />

DESCUENTOS


Escribir "Resta:",RESTA;<br />

Escribir "Multiplicacion:",MULTI;<br />

Escribir "Division:",DIV;<br />

Escribir "Exponentes:",EXPNT;<br />

FinAlgoritmo<br />

4) Cociente y Residuo<br />

Algoritmo CocienteyResiduo<br />

//Hacer un programa que calcule el cociente y residuo de la división de dos<br />

números.<br />

Definir N1, N2 como enteros<br />

Escribir "Ingrese el primer numero:";<br />

leer N1;<br />

Escribir "Ingrese el segundo numero a Dividir:";<br />

Leer N2;<br />

Cociente


SI H1>H2 entonces<br />

Tempo

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!