Soy puto y me llamo ariel pech

Solo disponible en BuenasTareas
  • Páginas : 3 (614 palabras )
  • Descarga(s) : 0
  • Publicado : 3 de diciembre de 2010
Leer documento completo
Vista previa del texto
Pamela Godoy Andrade
4I8
INGENIERIA INDUSTRIAL
Materia: Algoritmos y Lenguajes de programación

1. Obtener el resultado correcto de cada expresión que a continuación se presentan
( 25 + ( 13 –4 * 2/2 ) + 12 ) * ( 44 – 40 / (12-10) ) =
(25+(13-8/2)+12)*(44-40/2)
(25+(13-4)+12)*(44-20)
(25+9+12)*24
46*24 = 1104
2. Not ( 99 >= 50 Or 10 > = 75) =
Not(V or F)
Not(v) = F
3. (45>= 35 And 12 < 2 + 13 * 6) =
(45>=35 And 12 <2 +78)
(45>= 35 And 12 < 80)
(V and V ) = V
4. 10 – 2^2 + 8 * 2 + 5 – 1 + 8 * 1 - 10 =
10- 4+16+5-1+8-10 = 24
5. 5+( 9+ ( 4**2+( 5*3)-10 ) -5 )^0 =
5+(9+(16+15-10)-5) ^0
5+(9+21-5) ^0
5+(25) ^0
5+1 =6
6. Not ( 3 + 4 – 4 > 5 And ( Not ( 4>=2 And 2**2 < 4 ) Or 44 < 5**3 ) ) =
Not (3+4-4>5 And (Not (4>=2 And4< 4) Or 44< 125))
Not(3+4-4 >5 And ( Not( V And F) Or 44< 125))
Not (3+4-4>5 And ( V Or V)
Not (3>5 And V)
Not ( F And V)
Not( F) = V
7. Not ( ( 5 > 19 ) Or ( 34 < 6 ) ) =Not( F Or F)
Not (F) = V
8. Not (15 <> 7^2 * 2 ) Or ( 43 - 8 * 2 Div 4 <> 4 Div 2 ) =
Not(15<>49*2) Or (43-8*2 Div 4 <> 4 Div 2)
Not(15<> 98 Or (43- 16Div 4<> 4 Div 2)
Not(15 <>98 Or (43 -4 <> 2)
Not( 15<>98 Or 39<>2)
Not( V or V)
Not (V) = F
9. (17 >= 9 * 3 ** 3 And 8 > 3 And 8 > 6) Or ( Not ( 8 * 2 < 5 * 12 * 2Div 3^2 *2 ) ) =
(17 >=9*729 And 8>3 And 8>6) Or (Not( 8*2<5*12*2 Div 9*2))
(17>=6561 And 8>3 And 8>6) Or (Not (16< 120 Div 18))
(17>=6561 And 8>3 And 8>6) Or (Not(16< 6.666666667))
(17>=6561 And 8>3 And 8>6) Or (Not (F))
F Or V = V

2.- Evaluar la siguiente expresión aritmética: para los valores: a = 3, b = 2, c = 1, d = 8, e = 4
R1 = a + b = 5R2 = R1 + c =6
R3 = R2 + d = 14
R4 = R3 + e = 18
R5 = R4 Mod 5 = 3

3.- Evaluar la siguiente expresión aritmética: para los valores: a = 3, b = 2, c =1, h = 8, y = 4
R1 = a Mod 2 =1
R2 = R1...
tracking img