Why the answer is D? Explain the all process.
First of all x matrix is defined as :
Now, in the first iteration i = 1 and j = 1
if condition is checked ( j - i ) < 1
( 1 - 1 ) < 1
0 < 1 which is true
Hence, 1st row and 1st column element is x[1,1] = ( j - i ) = 1 - 1 = 0
Matrix X remains unchanged.
Now, in the second iteration i = 1 and j = 2
if condition is checked ( j - i ) < 1
( 2 - 1 ) < 1
1 < 1 which is false
Hence, 1st row and 2nd column element remains unchanged.
Matrix X remains unchanged.
Now, in the third iteration i = 1 and j = 3
if condition is checked ( j - i ) < 1
( 3 - 1 ) < 1
2 < 1 which is false
Hence, 1st row and 3rd column element remains unchanged.
Matrix X remains unchanged.
Now, in the fourth iteration i = 2 and j = 1
if condition is checked ( j - i ) < 1
( 1 - 2 ) < 1
-1 < 1 which is true
Hence, 2nd row and 1st column element is x[2,1] = ( j - i ) = 1 - 2 = -1
Matrix X becomes :
Now, in the fifth iteration i = 2 and j = 2
if condition is checked ( j - i ) < 1
( 2 - 2 ) < 1
0 < 1 which is true
Hence, 2nd row and 2nd column element is x[2,2] = ( j - i ) = 2 - 2 = 0
Matrix X remains unchanged.
Now, in the sixth iteration i = 2 and j = 3
if condition is checked ( j - i ) < 1
( 3 - 2 ) < 1
1 < 1 which is false
Hence, 2nd row and 3rd column element remains unchanged.
Matrix X remains unchanged.
Now, in the seventh iteration i = 3 and j = 1
if condition is checked ( j - i ) < 1
( 1 - 3 ) < 1
-2 < 1 which is true
Hence, 3rd row and 1st column element is x[3,1] = ( j - i ) = 1 - 3 = -2
Matrix X becomes :
Now, in the eighth iteration i = 3 and j = 2
if condition is checked ( j - i ) < 1
( 2 - 3 ) < 1
-1 < 1 which is true
Hence, 3rd row and 2nd column element is x[3,2] = ( j - i ) = 2 - 3 = - 1
Matrix X becomes :
Now, in the ninth iteration i = 3 and j = 3
if condition is checked ( j - i ) < 1
( 3 - 3 ) < 1
0 < 1 which is true
Hence, 3rd row and 3rd column element is x[3,3] = ( j - i ) = 3 - 3 = 0
Matrix X remains unchanged.
So, finally the X matrix is obtained as :
Why the answer is D? Explain the all process. 23. Which of the following is the...
Let X be a discrete random variable that follows a Poisson distribution with = 5. What is P(X< 4X > 2) ? Round your answer to at least 3 decimal places. Number
Please answer the above queston (in terms of C programming) and explain answer Semester 2 & Trimester 3B, 2015 COMP1004 Engineering Programming Question 3 - Repetition (20 marks) Q3(a) What will be printed when the following code is executed? (5 marks] #include <stdio.h> int main() int i, j; for(i=1;i<17;i=i+2) { printf("%d==", i); for(j=i; j>0;j--) printf("#"); printf("\n"); return 0; == # 3 = = # # # 5 == ### ## 7 #### #
3. A timing diagram below shows a D Flip-flop and the input clock. Show the transition of the output Q at the positive transitions of the clock signal. Q 1 initially. Clk 4. Implement a 2-bit up-counter using D flip-flops. Show the circuit. 5. Implement a 2-bit down-counter using D flip-flops. Show the circuit. Transitions: 11->10->01->00->11->10->...
Detail Explain please: 6 Impulse Response Let h(t) denote the response of a system for which the input signal is the unit-impulse t 0: he(t) = t [a(t) _ u(t-1)] + 2a(t-2), for t > 0.
What is the Thevenin resistance in kilo ohms seen by the capacitance in Figure 9 for t>0? 100 F Figure 9
. km m2k 1. Please show that the mean is * k > 1, and variance is k-1 (k-1)2(k-2)' for Pareto distribution. Please also show that the Pareto distribution approaches δ(x-m) as k → 00,
Please show step-by-step solution and explain. Thank you! In the following circuit, the switch has been connected to terminal A for a long time so that the circuit is in steady-state, and it switches to terminal B at timet0. Determine V(0) and V(0+), and for t >0 determine Vc(t) and Vx (t) 452 8V( 4? V. -?? T 2F
3. The following utility function is known as CES (constant elasticity of substi- tution) function where α > 0 β > 0 (a) Is this function homothetic? (b) How does the MRS,y depend on the ratio x/y? Specifically, show that the MRSy is strictly decreasing in the ratio x/y for all values δ < 1, increasing in the ratio x/y for all values δ > 1 and constant for δ 1. (c) Show that if x = y, the MRS...
2) (3 pts) Use mathematical induction to show that when n is an exact power of 2, the solution of the recurrence 2, ifn=2 T(n) =127G)+n, ifn=2.for k > 1 ISI(72) = n lg n.
Draw the remaining product of the following reaction Cl + 2 HC- CH2- NH2 > H3C-CH2-NH, Cl- +