Beruflich Dokumente
Kultur Dokumente
Inicio
“hola”
Fin
Algoritmo DUPLICADO #2
Inicio
“ingresar un
numero”
Duplicado=N*2
Fin
Algoritmo Masa corporal #3
Inicio
“ingresar peso”
Peso
“ingresar
altura”
Altura
Masa=P/A*2
fin
Algoritmo Dolares #4
inicio
Fin
“ingresar
cantidad”
“ingresar
dólar”
Cantidad=P/D
“valor dólar es ;
cantidad”
Algoritmo # 5 kmxh a mxs
Inicio
“ingresar
kmxh”
Kmxh
Mxs=kmxh*1000m/3600s
Fin
Algoritmo # 6 grados y radianes
Inicio
“ingresar
grados “
Grados
Fin
V
Inicio
“ingresar num”
Num
V F
Num >0
FIN
ALGORITMO # 8 PROMEDIO
INICIO
“INGRESAR
CALIFICACIONES “
C1,C2,C3
PROMEDIO=C1*.25+C2*.25+C3*.5
V F
PROM>=6
APROBADO” REPROBADO”
FIN
ALGORITMO # 9 DEPOSITO
INICIO
“INGRESAR DEPOSITO”
DEP
V F
DEP>=2000
IMP=(DEP-200)*0.3
“DEP”
DF=DEP-IMP
“ DF”
FIN
ALGORITMO # 10 MASA CORPORAL CON
MENSAJE
INICIO
“INGRESAR PESO Y
ALTURA”
PESO,ALTURA
MASA=PESO / ALTURA 2
“TU MASA
CORPORAL ES;
MASA
V F
MASA>2
V F
5
“TU TIENES
MAS
DESNUTRICIO”
A<30
V F
“TU PESO ES; MASA
NORMAL <35
“TU TIENES
“TU TIENES
OBESIDAD”
SOBREPESO”
ALGORITMO #11 RECARGA CELULAR
INICIO
“INGRESAR R”
V F
R<=100
“TU RECARGA
ES; R” V R<=200 F
PROM=R+R/2
PROM=R+R
“TU RECARGAR
ES; PROM”
“TU RECARGA ES;
PROM”
FIN
ALGORITMO #12 CFE
INICIO
“INGRESAR
KW”
KW
V KW<100
F
V F
PAGO=KW*1 KW<300
PAGO=(KW-100)*2+100 PAGO=(KW-300)*4+500
“TU COMSUMO ES;
PAGO”
FIN
ALGORITMO # 13 MAYOR DE 3
INICIO
“INGRESAR
VARIABLES”
A,B,C,
V A>B F
V A>C
F V B<C F
B
A C
FIN
ALGORITMO # 14 TRIANGULO
INICIO
“INGRESAR
LADOS ““
P1,P2,P3
V F
P1=P2
V F V F
P1=P3
P2=P3
V F
“ESCALENO” “ISOCELES” “ISOCELES”
P1=P3
“ESCALENO”
FIN
Algoritmo # 15 triangulo operativo
Inicio
“ingresar lado”
P1,p2,p3
v f
P1=p2 y p1=p3
v f
“equilátero”
P2=p3 o
p2=p1 o
p1=p3
“escaleno”
v f
P3=p1
“escaleno” “isósceles”
Fin
Algoritmo # 16 while
inicio
I= 1
v f
I<=3 Fin
I=I+1
Algoritmo # 17 do while
Inicio
.
I=1
I=i+1
v f
I<=3 Fin
Algoritmo #18 for
Inicio
I=3
Fin
I<=3
I=i+3
I
Algoritmo #19 pares while
Inicio
P=2
v f
P<=20 Fin
P=p+2
Algoritmo #20 pares do while
Inicio
P=2
P=p+2
P<=20 Fin
Algoritmo #21 pares for
Inicio
P=2
Fin
P<=20
P=p+2
p
Algoritmo # 22 dobles while
Inicio
P=2
v f
P<=1024 Fin
P=p*2
Algoritmo #23 dobles do while
Inicio
P=2
P=p*2
V f
P<=1024 Fin
Algoritmo #24 dobles for
Inicio
P=2
Fin
P<= 1024
P=p*2
p
Algoritmo # 25 sumatoria
Inicio
Acumulador =0
J= 1
I=i+1
Fin
Acumulador= acumulador +i
Algoritmo # 26 factorial
Inicio
Acumulador=1
“dame el numero”
I<=n
I=I+1
Fin
Acumulador=acumulador*i
Algoritmo #27 promedio
Inicio
Acumulador=0
I=1 Promedio=acumulador/5
I<=n
“ingresar
calificación”
Fin
Acumulador=acumulador+c
Algoritmo #28 elevador
Inicio
Acumulador =0
I=0
Peso=ACUMULADOR-P
I=I-1
Acum=<=500
I=i+1 “TU
PESOES;ELEVADOR”
“ingresar
peso” FIN
Acumulador=acumulador+p
ALGORITMO #29 CICLOS ANIDADOS
INICIO
I=1
FIN
I<=3
I=I+1
J=1
J<=3.
J=J+1
“HOLA”
“”
ALGORITMO #30 RELOJ
INICIO
H=0
FIN
H=H+1
“H:”M:”S
M=0
M<60
M=M+1
S=0
S<60
S=S+1
Algoritmo #31 multiopcion
Inicio
“ingresar el primer
numero”
Num1
“ingresar el
segundo numero”
Num 2
1-sumarlos
2-restarlo
3-multiplicarlo
Opc
opc
Caso2
Caso1
Res=num1-num2
Res=num1*num2
Fin
Algoritmo #32 préstamo
Inicio
“pedir cantidad de
préstamo”
T
t
Caso 3
Interés=p*0.6+p
Caso 2
Caso1 Interés=p*0.3+p
Caso 2
Caso 1
Interés=p*0.1+p
Caso1
Fin
Algoritmo #33 ecuación
Inicio
A,b,c,d,e,f
Y=f-dc/a/db/a+c
X=c-by/a
El valor de y es; y”
fin
Algoritmo #34 perímetro de triangulo
Inicio
“ingresar valores”
L1=√(y2-y1)*(y2-y1)+(x2-x1)*(x2-x1)
L2=√(y3-y2)*(y3-y2)+(x3-x2)*(x3-x2)
L3=√(y1-y3)*(y1-y3)+(x1-x3)*(x1-x3)
P=L1+L2+L3
“tu perímetro es
;p”
Fin
Algoritmo #35 ecuación cuadráticas
Inicio
“ingresar valor”
abc
A=0
B2<4ac
X=-c/b
4𝑎𝑐
X1=-b√𝑏 ∗ 𝑏 − 2
4𝑎𝑐
X2=-b-√𝑏 ∗ 𝑏 −
“error raíz 2
“ecuación lineal” cuadrática”
“resultado es
;x1,x2”
x
Algoritmo # 36 lamina de dimensiones x y y
Inicio
“ingresar valores”
Xyr
Entero=x/2r*y/2r
Desperdicio =x *y –
entero(𝜋𝑟 ∗ 𝑟)
“el desperdicio s;
desperdicio”
Fin
Algoritmo 37 pedir 3 lados de un triangulo
inicio
“ingresar lados “
L1,l2,l3
v f
L1+l2>l3
v f
L3+l1>l2
“no es un
v f triangulo”
L2+l3>l1 “no es un
triangulo”
Fin
Algoritmo # 38 convertir pesos a cantidad que
pida el usuario
Inicio
“ingresar cantidad”
1 dolares
2euros
3yen
v f
c
Dólar= p/16.20
Euros=p/18.50 Yen=p/0.40
“dolraes” “Euros”
“yen”
Algoritmo #39 pedir la magnitud y el angulo
de 3 vectores
inicio
Acumulador x=0
Acumulador y =0
I=1
√(acumulador x)+(acumulador y
R=
acumuladory
A= tan − 1(acumulador x ))
I<=3
“El resultante de y
I=i+1
El angulo es;”
R,a
Fin
M,𝜃
Acumulador x =m𝑐𝑜𝑠𝜃+acumulador x
Algoritmo 40 ¿que hace ese algoritmo?
inicio
C=0
fin
N=/ 8
C=c+1