Download - 002-Expresiones Funciones y Operaciones
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Operaciones en algoritmo
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Pensamiento de la Semana
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Operadores Matemticos
Operadores En matemtica En algoritmo
Suma + +
Resta - -
Multiplicacin x
* Divisin / Divisin entera div
Residuo rest
Potencia A2 A^2 Radicacin SQRT()
Radicacin A^(1/2)
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
OPERADORES DE RELACION
Operadores En matemtica En algoritmo
Mayor > >
Mayor igual >=
Menor < <
Menor igual
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
OPERADORES LOGICOS
Operadores En matemtica En algoritmo
Y Y AND
0 O OR
NO NO NOT
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Seudo cdigos
PROCESO Salida datos Ingreso datos
rea Base
altura rea=(base x altura)/2
Ingresa el valor de la Base
ALGORITMO Ingresa el valor de la Altura Procesa: rea= (Base x Altura)/2
Imprime resultado rea
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Seudo cdigos
Ingresa el valor de la Base
ALGORITMO Logico
Ingresa el valor de la Altura
Procesa: rea= (Base x Altura)/2
Imprime resultado rea
ALGORITMO Seudo cdigo
Input Base
Input Altura
rea= (Base * Altura)/2
Print rea
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Seudo cdigos
Input Base
Input Altura
rea= (Base x Altura)/2
Print rea
MONITOR
DENTRO DEL PC
5
3
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Seudo cdigos
Input Base
Input Altura
rea= (Base x Altura)/2
Print rea
MONITOR
DENTRO DEL PC
5
Base= 5
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Seudo cdigos
Input Base
Input Altura
rea= (Base x Altura)/2
Print rea
MONITOR
DENTRO DEL PC
5
3
Base= 5
Altura=3
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Seudo cdigos
Input Base
Input Altura
rea= (Base x Altura)/2
Print rea
MONITOR
DENTRO DEL PC
5
3
Base= 5
Altura=3
rea= (5 * 3)/2=7.5
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Seudo cdigos
Input Base
Input Altura
rea= (Base x Altura)/2
Print rea
MONITOR
DENTRO DEL PC
5
3
7.5
Base= 5
Altura=3
rea= (5 * 3)/2=7.5
Usted sabe quien es base y altura, pero usted va a disear programas para que lo utilicen otras personas
Cmo saben ellos cual es
base y altura?
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Seudo cdigos
Input Ingresa valor Base
Input Ingresa valor altura
rea= (Base x Altura)/2
Print El rea es:
MONITOR
DENTRO DEL PC
; Base
; Altura
; rea
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Seudo cdigos
Input Ingresa valor Base
Input Ingresa valor altura
rea= (Base x Altura)/2
Print El rea es:
MONITOR
DENTRO DEL PC
5
Base= 5
Ingresa valor Base
; Base
; Altura
; rea
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Seudo cdigos
Input Ingresa valor Base
Input Ingresa valor altura
rea= (Base x Altura)/2
Print El rea es:
MONITOR
DENTRO DEL PC
5
3
Base= 5
Altura=3
Ingresa valor Base
Ingresa valor altura
; Base
; Altura
; rea
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Seudo cdigos
Input Ingresa valor Base
Input Ingresa valor altura
rea= (Base x Altura)/2
Print El rea es:
MONITOR
DENTRO DEL PC
5
3
Base= 5
Altura=3
rea= (5*3)/2=7.5
Ingresa valor Base
Ingresa valor altura
; Base
; Altura
; rea
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Seudo cdigos
Input Ingresa valor Base
Input Ingresa valor altura
rea= (Base x Altura)/2
Print El rea es:
MONITOR
DENTRO DEL PC
5
3
7.5
Base= 5
Altura=3
rea= (5 x 3)/2=7.5
Ingresa valor Base
Ingresa valor altura
El rea es:
; Base
; Altura
; rea
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Ejercicios
=
= +
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Ejercicios
=
+
=
+
2 4
2
3 3
= 3 2 4
22 + 2
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Ejercicios
=
+
+
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Ejercicios
=
+
+
+
+ .
+
+
+
+
+ +
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
Operaciones en algoritmo
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]
-
Catedrtico: Mg. Ing. Luis Alberto Valdivia Snchez
Mail: [email protected] ; [email protected]