Está en la página 1de 4

UNIVERSIDAD TCNICA DE AMBATO

FACULTAD DE INGENIERA CIVIL Y


MECNICA
CARRERA DE MECNICA

NTIC`s ll
Tema:
Jerarqua de los operadores de algoritmos

Integrantes:
Jaime Amaya

Curso:
Segundo A

Fecha:
28 de diciembre del 2011

TALLER 2.- Ejercicios propuestos de Jerarqua de los operadores


Resolver los siguientes ejercicios utilizando la teora de Jerarqua de los
operadores
1) 2 + 3 * 4
2+12
14

2) 42 / 2 / 3 / 7 ^ 3
42 / 2 / 3 / 343
21 / 3 / 343
7 / 343
0.020

3) 10 ^ 2 ^ 2 \ 7
10 ^ 4 \ 7
10000 \ 7
1428.57

4) 5 ^ 3 + 120 1 ^ 5
125 + 120 - 1 ^ 5
125 + 120 - 1
244

5) 4 + 5 ^ 2 500 + 20 ^ 2 * 10
4 + 25 - 500 + 20 ^ 2 * 10
4 + 25 - 500 + 400 * 10
4 + 25 - 500 + 4000
29 - 500 + 4000
-471 + 4000
3529

6) (4 ^ 3 + 2 * 40 - 140 ) ^ 2
(64 + 2 * 40 - 140 ) ^ 2
(64 + 80 - 140 ) ^ 2
(144 - 140 ) ^ 2
(4 ) ^ 2
16

7) (5 ^ 2 + 3 * 10 + 5) - (5 ^ 2 2 * 5 - 6)
(25 + 3 * 10 + 5) - (5 ^ 2 2 * 5 - 6)
(25 + 30 + 5) - (5 ^ 2 2 * 5 - 6)
(55 + 5) - (5 ^ 2 2 * 5 - 6)
60 - (5 ^ 2 2 * 5 - 6)
60 - (25 - 2 * 5 - 6)
60 - (25 - 10 - 6)
60 - (15 - 6)
60 - (9)
51

8) (33 + 5 * 3 ^ 5 + 11 * 3 + 14) / (3 + 2)
(33 + 5 * 243 + 11 * 3 +14) / (3 + 2)
(33 + 1215 + 11 * 3 + 14) / (3 + 2)
(33 + 1215 + 33 + 14) / (3 + 2)
(1248 + 33 + 14) / (3 + 2)
(1281 + 14) / (3 + 2)
(1295) / (3 + 2)
(1295) / (5)
259

9) (2 * 5 * 3 * 4 ^ 2) / ((48 / 2 ^ 2) 20 + 2 ^ 2)
(2 * 5 * 3 * 16) / ((48 / 2 ^ 2) - 20 + 2 ^ 2)
(10 * 3 * 16) / ((48 / 2 ^ 2) - 20 + 2 ^ 2)
(30 * 16) / ((48 / 2 ^ 2) - 20 + 2 ^ 2)
(480) / ((48 / 2 ^ 2) - 20 + 2 ^ 2)
(480) / ((48 / 4) - 20 + 2 ^2)
(480) / ((12) - 20 + 2 ^ 2)
(480) / (12 - 20 + 4)
(480) / (-8 + 4)
(480) / (-4)
-120

10) Calcule x al cuadrado + y al cuadrado + z. Dndole a x, y, z los valores (1.2, Pi, y 7.5)
x^2 + y^2 + z^2
(1.2)^2 + (3.1415)^2 + (7.5)^2
(1.44) + (3.1415)^2 + (7.5)^2
(1.44) + (9.86) + (7.5)^2
(1.44) + (9.86) + (56.25)
67.55

11) Calcule la parte entera de la divisin a sobre (b + c) con a, b y c tomando valores en (-3, -1.2 y
Pi).
a \ (b+c)
-3 \ (-1.2 + 3.1415)
-3 \ 1.9415
-1

12) Calcule la parte decimal de la divisin de a sobre (b + c) con a, b y c tomando valores en (-36, 8.2 y Pi).
a / (b+c)
-36 / (-8.2 + 3.1415)
-36 / (-2.61)
36 / 2.61
13.79
Parte decimal: 0.79

También podría gustarte

  • Taller 3
    Taller 3
    Documento14 páginas
    Taller 3
    jaalalexander
    Aún no hay calificaciones
  • Taller 1
    Taller 1
    Documento3 páginas
    Taller 1
    jaalalexander
    Aún no hay calificaciones
  • Tarea 3.
    Tarea 3.
    Documento7 páginas
    Tarea 3.
    jaalalexander
    Aún no hay calificaciones
  • Tarea 2.
    Tarea 2.
    Documento3 páginas
    Tarea 2.
    jaalalexander
    Aún no hay calificaciones
  • Tarea 1.
    Tarea 1.
    Documento7 páginas
    Tarea 1.
    jaalalexander
    Aún no hay calificaciones