Ejercicios Prácticos YA CONTESTADO

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

Ejercicios Prácticos

Resuelve las siguientes expresiones, respetando la jerarquía de operadores


e incluyendo todos los pasos para su realización

(8 MOD 1 + 2 * 2 < > 5 DIV 3 + 1 + 1 ^ 2) and not ( V or not (8 / 4 > 2 * 2) )


(8 MOD 1 + 2 * 2 < > 5 DIV 3 + 1 + 1) and not ( V or not (8 / 4 > 2 * 2) )
(8 MOD 1 + 2 * 2 < > 5 DIV 3 + 1 + 1) and not ( V or not ( 2 > 2 * 2) )
(0+ 2 * 2 < > 1 + 1 + 1) and not ( V or not ( 2 > 2 * 2) )
(0 + 4 < > 1 + 1 + 1) and not ( V or not ( 2 > 4) ) (4
< > 2 + 1) and not ( V or not ( 2 > 4) )
(4< > 3) and not ( V or not ( 2 > 4) )
(v) and not ( V or not ( f) )
(v) and not ( V or not v) )
(v) and not ( V or v)
(v) and not ( f)
v and v
v

(12 MOD 5) + (16 DIV 3) - (9 MOD 2) < > 6 and (F or F or (V and F))
(2) + (16 DIV 3) - (9 MOD 2) < > 6 and (F or F or (V and F))
(2) + (5) - (9 MOD 2) < > 6 and (F or F or (V and F))
(2) + (5) - (1) < > 6 and (F or F or (V and F)) 2
+ 5 - 1 < > 6 and (F or F or (V and F))
7- 1 < > 6 and (F or F or (V and F)) 6
< > 6 and (F or F or (V and F))
F and (F or F or (V and F)) F
and (F or F or (F)
F and ( F or (F)
F and ( F)
F

NOT (4 + 16 * 2 <= 32 + 8 - 4 AND ( V OR F OR V )) OR (4 + (4-1*2) <= 4+4-1*2)


NOT (4 + 32 <= 32 + 8 - 4 AND ( V OR F OR V )) OR (4 + (4-1*2) <= 4+4-1*2) NOT (4
+ 32 <= 32 + 8 - 4 AND ( V OR F OR V )) OR (4 + (4-2) <= 4+4-1*2)
NOT (4 + 32 <= 32 + 8 - 4 AND ( V OR F OR V )) OR (4 + (4-2) <= 4+4-2)
NOT (36<= 32 + 8 - 4 AND ( V OR F OR V )) OR (4 + (4-2) <= 4+4-2)
NOT (36<= 40 - 4 AND ( V OR F OR V )) OR (4 + (4-2) <= 4+4-2)
NOT (36<= 36 AND ( V OR F OR V )) OR (4 + (4-2) <= 4+4-2) NOT
(36<= 36 AND ( V OR F OR V )) OR (4 + 2<= 4+4-2)
NOT (36<= 36 AND ( V OR F OR V )) OR (6<= 4+4-2)
NOT (36<= 36 AND ( V OR F OR V )) OR (6<= 8-2)
NOT (36<= 36 AND ( V OR F OR V )) OR (6<= 6) NOT
(V AND ( V OR F OR V )) OR (6<= 6)
NOT (V AND ( V OR V ) OR (6<= 6)
NOT (V AND ( V ) OR (6<= 6)
NOT (V AND V ) OR (6<= 6) NOT
(V ) OR (6<= 6)
NOT (V ) OR (V)
NOT (V OR V)
NOT (V)
F

8 ^ 2 <= 5 ^ 3 AND 8 MOD 3 >= 9 MOD 7 OR 9 DIV 3 < > 3^1 OR NOT ( NOT (V))
64 <= 5 ^ 3 AND 8 MOD 3 >= 9 MOD 7 OR 9 DIV 3 < > 3^1 OR NOT ( NOT (V))
64 <= 125 AND 8 MOD 3 >= 9 MOD 7 OR 9 DIV 3 < > 3^1 OR NOT ( NOT (V))
64 <= 125 AND 8 MOD 3 >= 9 MOD 7 OR 9 DIV 3 < > 3 OR NOT ( NOT (V))
64 <= 125 AND 2 >= 9 MOD 7 OR 9 DIV 3 < > 3 OR NOT ( NOT (V))
64 <= 125 AND 2 >= 2 OR 9 DIV 3 < > 3 OR NOT ( NOT (V))
64 <= 125 AND 2 >= 2 OR 3 < > 3 OR NOT ( NOT (V)) V
AND 2>= 2 OR 3 < > 3 OR NOT ( NOT (V))
V AND V OR 3 < > 3 OR NOT ( NOT (V))
V OR 3 < > 3 OR NOT ( NOT (V))
V OR F OR NOT ( NOT (V))
V OR NOT ( NOT (V))
V OR NOT (F)
V OR (V)
V
( 8 * 2 + 5 – 3 ^ 2 – 2 + 2 MOD 1 * 1 ^ 2 * 2 + 2 – 3 + 8 DIV 3 )
( 8 * 2 + 5 – 9 – 2 + 2 MOD 1 * 1 ^ 2 * 2 + 2 – 3 + 8 DIV 3 )
( 8 * 2 + 5 – 9 – 2 + 2 MOD 1 * 1 * 2 + 2 – 3 + 8 DIV 3 )
( 16 + 5 – 9 – 2 + 2 MOD 1 * 1 * 2 + 2 – 3 + 8 DIV 3 )
( 16 + 5 – 9 – 2 + 2 MOD 1 * 2 + 2 – 3 + 8 DIV 3 )
( 16 + 5 – 9 – 2 + 2 MOD 2 + 2 – 3 + 8 DIV 3 )
( 16 + 5 – 9 – 2 + 0 + 2 – 3 + 8 DIV 3 )
( 16 + 5 – 9 – 2 + 0 + 2 – 3 + 2 )
( 21 – 9 – 2 + 0 + 2 – 3 + 2 )
( 21 – 9 – 2 + 2 – 3 + 2 )
( 21 – 9 – 2 + 2 –1)
( 21 – 9 – 0 –1)
( 12 – 0 –1)
( 12 – 0 –1)
( 12 –1)
(11)

6 / 2 + 4 ^ 2 * 8 * ( 4 * 5 * 6 + 5 + 3 - 10 )
6 / 2 + 4 ^ 2 * 8 * ( 20 * 6 + 5 + 3 - 10 )
6 / 2 + 4 ^ 2 * 8 * ( 120 + 5 + 3 - 10 )
6 / 2 + 4 ^ 2 * 8 * ( 125+ 3 - 10 )
6 / 2 + 4 ^ 2 * 8 * ( 128 - 10 )
6 / 2 + 4 ^ 2 * 8 * ( 118 )
6 / 2 + 16 * 8 * 118
3 + 16 * 8 * 118
3 + 128 * 118
3 + 15,104
15,107

(3+4+5)*8^2/4+4+4+6*6
(12) * 8 ^ 2 / 4 + 4 + 4 + 6 * 6
12 * 64 / 4 + 4 + 4 + 6 * 6
12 * 16 + 4 + 4 + 6 * 6
192 + 4 + 4 + 6 * 6
192 + 4 + 4 + 36
196 + 4 + 36
200 + 36
236

Not ( Not ( Not ( V and F or V and F ) ) ) and ( Not ( Not (V or F and F ) ) ) Not ( Not ( Not ( F
or V and F ) ) and ( Not ( Not (V or F and F ) ) )
Not ( Not ( Not ( V and F ) and ( Not ( Not (V or F and F ) ) ) Not ( Not ( Not ( F ) and ( Not (
Not (V or F and F ) ) )
Not ( Not ( Not ( F ) and ( Not ( Not (V and F ) )
Not ( Not ( Not ( F ) and ( Not ( Not ( F )
Not ( Not ( V ) and ( Not ( Not ( F )
Not ( F ) and ( Not ( Not ( F )
( V ) and ( Not ( Not ( F )
( V and ( Not ( V )
( V and F )
( F)
( V or F and F or Not ( F ) ) and (4 + 5 ^ 2 – 2 < > 30 and 2 ^ 2 ^ 2 < > 20 ) ( V or
F and F or Not ( F ) ) and (4 + 25 – 2 < > 30 and 2 ^ 2 < > 20 )
( V or F and F or Not ( F ) ) and (4 + 25 – 2 < > 30 and 4 < > 20 )
( V or Not ( F ) ) and (4 + 25 – 2 < > 30 and 4 < > 20 )
( V or V ) and (4 + 25 – 2 < > 30 and 4 < > 20)
( V or V ) and (29 – 2 < > 30 and 4 < > 20 )
( V or V ) and (27 < > 30 and 4 < >
20 ) ( V or V ) and (V and 4 < > 20 )
( V or V ) and (V and
V ) ( V or V ) and (V)
( V ) and (V)
V

( 25 < = 25.0 and 60 > 59.99 ) and ( 1500 > = 100 or 7 > 2 )
( V and 60 > 59.99 ) and ( 1500 > = 100 or 7 > 2 )
( V and V ) and ( 1500 > = 100 or 7 > 2 )
( V and V ) and ( V or 7 > 2 )
( V and V ) and ( V or V )
( V) and ( V or V )
( V) and ( V )
V

(10 div 2 > = 20 div 4 or 8 < 15 and 18 > 0) and (15 = 15 and 5 <> 5)
(5 > = 20 div 4 or 8 < 15 and 18 > 0) and (15 = 15 and 5 <> 5)
(5 > = 5 or 8 < 15 and 18 > 0) and (15 = 15 and 5 <> 5)
(5 > = 5 or 8 < 15 and 18 > 0) and (V and 5 <> 5)
(5 > = 5 or 8 < 15 and 18 > 0) and (V andF)
(5 > = 5 or V and 18 > 0) and (V and F)
(5 > = 5 or V and V) and (V and F)
(V or V and V) and (V and F)
(V and V) and (V and F)
(V ) and (V and F)
(V )and (F)
F

( 3 > 3 or 5 <> 5 ) and not ( 15 / 5 + 2 <> 5 )


( F or 5 <> 5 ) and not ( 15 / 5 + 2 <> 5 )
( F or F ) and not ( 15 / 5 + 2 <> 5 )
( F ) and not ( 15 / 5 + 2 <> 5 )
( F ) and not ( 3 + 2 <> 5 )
( F ) and not ( 5 <> 5 )
( F ) and not ( F )
( F ) and ( V )
F
( 3 > = 4 and 5 < 3 ) or ( 4 < = 4or 5 > 4 and 6 > = 7 )
( F and 5 < 3 ) or ( 4 < = 4 or 5 > 4 and 6 > = 7 )
( F and F ) or ( 4 < = 4 or 5 > 4 and 6 > = 7 )
( F ) or ( 4 < = 4 or 5 > 4 and 6 > = 7 )
( F ) or ( V or 5 > 4 and 6 > = 7 )
( F ) or ( V or V and 6 > = 7 )
( F ) or ( V or V and F )
( F ) or ( V or F )
( F ) or ( V )
V

Convierte las siguientes expresiones aritméticas a expresiones lineales

X= P +
Q -r5

X= (P+N/P)/( Q-r/5)

X= M+ P / N

P-Q

X=
(M+P/N)/(P-Q)

X= a + a + b

x=
(a+a+b)/(c)/(a+c)

X= a + a + b*c
c+d
x= (a+a+b*c)/(c+d)

X=a4/b*c+b2-4b

X= a^4/b*c+b- 4*b

LISTA DE COTEJO 1
EJERCICIO: Solución de problemas de conversión de expresiones algebraicas a expresiones
aritméticas y lógicas (lineales).

Nombre del alumno: Erick Fabian Terrazas Hernández Matrícula:1122150105


Producto: Ejercicios contestados Fecha:12/02/23
Materia: Metodología de la programación
Objetivo: El alumno identifica la clasificación de los operadores utilizados en computación y
resuelve las expresiones algebraicas presentadas por el docente, siguiendo la regla de jerarquía
de operadores y en modo algoritmo. Presenta las expresiones simples de manera lineal
correctamente.

Nombre del docente: Jorge Chaparro Firma del docente:

Criterio Ejercicios
(2 puntos por criterio para cada ejercicio)
1 2 3 4 5 6 7 8 9 10
Expresiones Simples
Se respeta la jerarquía de operadores

Se realizan las operaciones paso a paso de manera de algoritmo sin


saltarse ninguno y se subraya la operación a realizar.

El resultado es correcto

Total de puntos por ejercicio

Total adquirido:

Expresiones Complejas
1 2 3 4 5 6 7 8 9 10
La expresión contiene sólo operadores que puede procesar la
computadora

Se incluyen solo los paréntesis adecuados para representar


correctamente la expresión (sin paréntesis de más o de menos)

Total de puntos por ejercicio

Total adquirido:

Total del ejercicio:

You might also like