Computer Science Archive: Questions from March 16, 2022
-
public class Selection1 { public static void main(String[] args) { int x,y; 11 Exercise 1 y=2; if (y>2) y=4; else y=7; x=2; --X; System.out.println("Ex1>> x= "+x+" y= "+y); // Exercise 2 y=2; if (y>2)3 answers -
// Exercise 5 y=1; x=0; if (x>0) { if (2==2) y=++X; else y=++X; y++; } else x=2; System.out.println("Ex5>> x= "+x+" y= "+y); //Exercise 6 y=1; x=0; boolean test=true; if (x==0 || !test) { if (2==2) y=1 answer -
2:55 11 4G 642 PARTA - 125 24 24 25 2.11 21 B-1 -142 D-153 42 42 42 Izy ES ES 53 ins - X-TAS: CL me> .. feli). 1.1 Send a chat1 answer -
2:55 11 4G 642 PARTA - 125 24 24 25 2.11 21 B-1 -142 D-153 42 42 42 Izy ES ES 53 ins - X-TAS: CL me> .. feli). 1.1 Send a chat0 answers -
3 answers
-
3 answers
-
1 answer
-
1 answer
-
1 answer
-
1 answer
-
Simplify the following Boolean functions
2. Simplify the following Boolean functions. (a) f(x, y, z) = (x+y)(x2+xz) + xy + y (b) f(x, y) = ï(x + y) + (y + xr)(x + y)1 answer -
Build the schematic of the logic circuit from the sentential form shown in the image. (Use the 10-19 replacement rules of the second image to transform conditional and biconditional; also, where ¨orÂ
[(A + B) + (C=HD)]=(-B -C) O 2.-4 1. P 2. 4 REGLAS DE INFERENCIA 1. Modus Ponens (M.P.) 2. Modus Tollens (M.T.) 3. Silogismo Hipotético (S. H.) 1. pag 1. paq 1. pag 2. P 2. qar ..9 -р .. par 4. Si1 answer -
1) 2)
Simplify the following Boolean expression. F(x, y, z) = xºyz + xºyz + xºy'z + xyz + xyz O FIx, y, z) = (x' +'Wy' + z') OF(x, y, z) = (x + y){y' + z') OF(x, y, z) = (x + y)ly + z') Flx, y, z) = (x +1 answer -
Use natural deduction to solve the following
Realice el siguiente ejercicio de deducción natural pvlqar) p→ (qar) r1 answer -
Construct the truth table of the shown premise,build the resultant circuit with its logic gates
Aún no calificado / 10 pts Pregunta 2 Realice la tabla de verdad de la premisa p v (q^r), y plantee el circuito resultante con compuertas lógicas1 answer -
Consider the folloiwng sets,show the results of the following operations
Considere los siguientes Conjuntos y muestre los resultados de las operaciones. A={1,2,3,4,5) B={0,1,2,6,7,8] C={3,5,6,7} D={0,1,2,3,6,8} 1. AnB 2. AUC 3. C-D1 answer -
Of the following relation "r",draw its corresponding diagram and determine what type of relation is
De la siguiente Relación R, dibuja el diagrama de flechas y determina qué tipo de Relación es. R={(0,0), (1,2), (1,3), (2,1), (1,1), (2,2), (3,1), (2,3)}1 answer -
Look at the following diagram and determine: a)codomain of f b)f-1(3) c)range of f d)f-1(1) e)f-1(2)
1.- De acuerdo a la funcion definida por el diagrama de flechas, determina: X f 2 3 1. a) Codominio def 2. b) f-1(3) 3. c) Rango de f 4. d) f-1(1) 5. e) f-1(2)1 answer -
Clasify the following function(Injective,surjective,etc)
2.- Clasifique las siguientes funciones (Inyectiva, Sobreyectiva...) Y X f 2 4 15. 8 18 • 14 eco1 answer -
1. Trace the following code, and determine the values of yes_no. #include using namespace std; int main() { int x = 8, y = 5, z = 1; int yes_no; yes_no ! (x1 answer