Buscar

Solve the following expressions: 100 * QUOTIENT(Q, P) + R = 112; P = 2, Q = 3, R = 12 P * REMAINDER(R, 5) - Q / 2 = 2.5; P = 2, Q = 3, R = 12 SQRT...

Solve the following expressions:

100 * QUOTIENT(Q, P) + R = 112; P = 2, Q = 3, R = 12
P * REMAINDER(R, 5) - Q / 2 = 2.5; P = 2, Q = 3, R = 12
SQRT(R) + P^2 + ROUND(S) = 9; R = 12, P = 2, S = 4.5
REMAINDER(S, P + 1) - Q * R = -34.5; S = 4.5, P = 2, Q = 3, R = 12
1 + SQRT(P^3 + 2 * R) - TRUNCATE(S - 1) = 0; P = 3, R = 12, S = 4.5
1 + QUOTIENT(R + S, Q^2) * SIGN(2 * P * Q - R) = 1; P = 2, Q = 3, R = 12, S = 4.5
false or false = false
not TEST or REMAINDER(B, 2) = 0.5 = true; TEST = true, B = 4.5
C < 10 or TEST and COR = "PRETO" = true; C = 8, TEST = true, COR = "BRANCO"
A^2 + SQRT(C) = 3 and (A + TRUNCATE(B + C) > 13 or NOME = "ANA") = false; A = 1, B = 4.5, C = 8, NOME = "TÂNIA"

Essa pergunta também está no material:

L Solução dos exercícios pág 17 p 75-77-1
4 pág.

Algoritmos e Linguagem de Programação I EngenhariasEngenharias

💡 1 Resposta

User badge image

Ed Verified user icon

Para resolver as expressões, basta substituir os valores dados para as variáveis e realizar as operações matemáticas indicadas. Seguem as soluções para cada expressão: 1. 100 * QUOTIENT(Q, P) + R = 112; P = 2, Q = 3, R = 12 Substituindo os valores, temos: 100 * QUOTIENT(3, 2) + 12 = 112 100 * 1 + 12 = 112 112 = 112 Portanto, a equação é verdadeira. 2. P * REMAINDER(R, 5) - Q / 2 = 2.5; P = 2, Q = 3, R = 12 Substituindo os valores, temos: 2 * REMAINDER(12, 5) - 3 / 2 = 2.5 2 * 2 - 1.5 = 2.5 3.5 = 2.5 Portanto, a equação é falsa. 3. SQRT(R) + P^2 + ROUND(S) = 9; R = 12, P = 2, S = 4.5 Substituindo os valores, temos: SQRT(12) + 2^2 + ROUND(4.5) = 9 3 + 4 + 5 = 9 12 = 9 Portanto, a equação é falsa. 4. REMAINDER(S, P + 1) - Q * R = -34.5; S = 4.5, P = 2, Q = 3, R = 12 Substituindo os valores, temos: REMAINDER(4.5, 2 + 1) - 3 * 12 = -34.5 REMAINDER(4.5, 3) - 36 = -34.5 1.5 - 36 = -34.5 -34.5 = -34.5 Portanto, a equação é verdadeira. 5. 1 + SQRT(P^3 + 2 * R) - TRUNCATE(S - 1) = 0; P = 3, R = 12, S = 4.5 Substituindo os valores, temos: 1 + SQRT(3^3 + 2 * 12) - TRUNCATE(4.5 - 1) = 0 1 + SQRT(27 + 24) - TRUNCATE(3.5) = 0 1 + SQRT(51) - 3 = 0 SQRT(51) = 2 51 = 4 Portanto, a equação é falsa. 6. 1 + QUOTIENT(R + S, Q^2) * SIGN(2 * P * Q - R) = 1; P = 2, Q = 3, R = 12, S = 4.5 Substituindo os valores, temos: 1 + QUOTIENT(12 + 4.5, 3^2) * SIGN(2 * 2 * 3 - 12) = 1 1 + QUOTIENT(16.5, 9) * SIGN(6) = 1 1 + 1 * 1 = 1 Portanto, a equação é verdadeira. 7. false or false = false A expressão é verdadeira, pois a disjunção entre duas proposições falsas é falsa. 8. not TEST or REMAINDER(B, 2) = 0.5 = true; TEST = true, B = 4.5 Substituindo os valores, temos: not true or REMAINDER(4.5, 2) = 0.5 = true false or 0.5 = true 0.5 = true Portanto, a equação é falsa. 9. C < 10 or TEST and COR = "PRETO" = true; C = 8, TEST = true, COR = "BRANCO" Substituindo os valores, temos: 8 < 10 or true and "BRANCO" = "PRETO" = true true or true and false = true true or false = true true = true Portanto, a equação é verdadeira. 10. A^2 + SQRT(C) = 3 and (A + TRUNCATE(B + C) > 13 or NOME = "ANA") = false; A = 1, B = 4.5, C = 8, NOME = "TÂNIA" Substituindo os valores, temos: 1^2 + SQRT(8) = 3 and (1 + TRUNCATE(4.5 + 8) > 13 or "TÂNIA" = "ANA") = false 1 + 2.83 = 3 and (1 + 12 > 13 or false) = false 3.83 = 3 and false = false Portanto, a equação é falsa.

0
Dislike0

✏️ Responder

SetasNegritoItálicoSublinhadoTachadoCitaçãoCódigoLista numeradaLista com marcadoresSubscritoSobrescritoDiminuir recuoAumentar recuoCor da fonteCor de fundoAlinhamentoLimparInserir linkImagemFórmula

Para escrever sua resposta aqui, entre ou crie uma conta

User badge image

Outros materiais