Está en la página 1de 4

TAREA 4.

- PSEUDOCODIGOS

PSEUDOCODIGO: DISTANCIADOSPUNTOS

Inicio

Escribir: (“JORGE ALBERTO CRUZ CALDELAS”)

Enteros: x1,x2,y1,y2, xtotal, ytotal

Reales: Distancia

Escribir: (“PROPORCIONE LA PRIMER CORDNADA DE x1”)

Leer: (x1)

Escribir: (“PROPORCIONE LA PRIMER CORDENADA DE y1”)

Leer: (y1)

Escribir: (“PROPORCIONE LA SEGUNDA CORDENADA DE x2”)

Leer: (x2)

Escribir: (“PROPORCIONE LA SEGUNDA CORDENADA DE y2”)

Leer: (y2)

XTOTAL=(x1-x2)**2

Escribir: (“EL TOTAL DE XTOTAL ES”+xtotal)

YTOTAL=(y1-y2)**2

Escribir: (EL TOTAL DE YTOTAL ES”+ytotal)

DISTANCIA=Sqrt(xtotal-ytotal)

Escribir: (“LA DISTANCIA ENTRE LOS DOS PUNTOS DADOS


ES”+Distancia)

FIN
PSEUDOCOGIDO: Areadeuntriangulo

INICIO

Escribir: (“JORGE ALBERTO CRUZ CALDELAS”)

Entero: L1, L2, L3,

Reales: SEMIPERIMETRO, AREA

Escribir: (“PROPORCIONE LA MEDIDA DEL LADO 1”)

Leer: (L1)

Escribir: (“PROPORCIONE LA MEDIDA DEL LADO 2”)

Leer: (L2)

Escribir: (“PROPORCIONE LA MEDIDA DEL LADO 3”)

Leer: (L3)

SEMIPERIMETRO=(L1+L2+L3+)/2

AREA=Sqrt(SEMIPERIMETRO*(SEMIPERIMETRO*(SEMI
PERIMETRO-L1)*(SEMIPERIMETRO-
L2)*(SEMIPERIMETRO-L3))

Escribir: (“EL TOTAL DEL AREA DEL TRIANGULO ES


“+Area)

FIN
3. Calcule e imprima el perímetro exterior, interior, total y el área de una corona
circular solicitándole al usuario el diámetro mayor y menor en base a la siguiente
fórmula

PSEUDOCODIGO: CoronaCircular

Inicio

Escribir: (“JORGE ALBERTO CRUZ CALDELAS”)

Entero: Dmayor, Dmenor

Reales: RADIOMAYOR, RADIOMENOR,AREA,Pext,PInt,


Ptot

Escribir: (“PROPORCIONE LAS MEDIDAS DEL DIAMETRO


MAYOR”)

Leer: (Dmayor)

Escribir: (“PROPORCIONE LAS MEDIDAS DEL DIAMETRO


MENOR”)

Leer: (Dmenor)

RADIOMAYOR=Dmayor/2

RADIOMENOR=Dmenor/2

AREA=3.1416*((RADIOMAYOR**2)-(RADIOMENOR)**2))

Escribir: (“EL AREA DE LA CORONA CIRCULAR ES: “+Area

Pext=3.14*Dmayor

PInt=3.14*Dmenor

Ptot=3.14*(Dmayor+Dmenor)

Escribir: (“EL PERIMETRO EXTERIOR DE LA CORONA


CIRCULAR ES “+Pext)

Escribir: (“EL PERIMETRO INTERIOR DE LA CORONA


CIRCULAR ES “+PInt)

Escribir: (“EL PERIMETRO DE LA CORONA CIRCULAR ES


“+Ptot)

FIN
PSEUDOCODIGO: Expresiones

Inicio

Escribir: (“JORGE ALBERTO CRUZ CALDELAS”)

Entero: M, N, P, Q, R, Y, O

Reales: x1, x2, x3 ,x4, x5, x6, x7

Escribir: (“PROPORCIONE EL VALOR DE M”)


Leer: (M)

Escribir: (“PROPORCIONE EL VALOR DE N”)


Leer: (N)

Escribir: (“PROPORCIONE EL VALOR DE P”)


Leer: (P)

Escribir: (“PROPORCIONE EL VALOR DE Q”)


Leer: (Q)

Escribir: (“PROPORCIONE EL VALOR DE R”)


Leer: (R)

Escribir: (“PROPORCIONE EL VALOR DE Y”)


Leer: (Y)

Escribir: (“PROPORCIONE EL VALOR DE O”)


Leer: (O)

X1=(M/N)+P
X2=M+(N/P-Q)
X8=((M+N)/P-Q)*(Y**8)+N/Q
X5=(M+(N/P))/(Q-(R/5))
X6=(M+N)/(P-Q)
X7=(((M/N)+O)**3)/(P-(Q/R))

Escribir: (“EL RESULTADO TOTAL DE X1 ES”+x1)


Escribir: (“EL RESULTADO TOTAL DE X2 ES”+x2)
Escribir: (“EL RESULTADO TOTAL DE X8 ES”+x8)
Escribir: (“EL RESULTADO TOTAL DE X5 ES”+x5)
Escribir: (“EL RESULTADO TOTAL DE X6 ES”+x6)
Escribir: (“EL RESULTADO TOTAL DE X7 ES”+x7)

FIN

También podría gustarte