Answer the following clearly by show the process to the solu

Answer the following clearly by show the process to the solution.

.a) X&Y arrays: intX[3][3] ={{2,3,4},{7,8,9},{1,3,5}; int Y[3][3]={{2,7},{9},{4,3,1}}; double P, Q; to two decimal places.

1.What is the values of P=x[0][2]-y[2][1];

2. Using X and Y arrays of part a above, what values of Q given by Q={y[2][0]+y[1][0]/(y[2][2]-X[1][2])

3. Using X and Y arrays from part a above, Z arrays is formulated multiplying corresponding elements of the X and Y arrays. How many elements Z array contain? What are the vlaues of Z[1][2] and Z[0][1]

Solution

=======================================================   

------------
Answer:
------------

Given arrays

       int X[3][3] ={{2,3,4},{7,8,9},{1,3,5}};
      
       which implies
      
       => int X[3][3] = {{2,3,4},
                       {7,8,9},
                       {1,3,5}};
      
           X[0][0] = 2
           X[0][1] = 3
           X[0][2] = 4
              
           X[1][0] = 7
           X[1][1] = 8
           X[1][2] = 9

           X[2][0] = 1
           X[2][1] = 3
           X[2][2] = 5

              
       int Y[3][3]={{2,7},{9},{4,3,1}};
      
       which implies
      
       => int Y[3][3] = {{2,7,0},
                           {9,0,0},
                           {4,3,1}};
       All the remaining positions in the Y array are filled with zero.
  
           Y[0][0] = 2
           Y[0][1] = 7
           Y[0][2] = 0
              
           Y[1][0] = 9
           Y[1][1] = 0
           Y[1][2] = 0

           Y[2][0] = 4
           Y[2][1] = 3
           Y[2][2] = 1
          
          

   1.What is the values of P=x[0][2]-y[2][1];

  
           x[0][2] = 4
           y[2][1] = 3
          
           Hence P=x[0][2]-y[2][1] = 4-3= 1
               P=1

              
              
   2. Using X and Y arrays of part a above, what values of Q given by Q={y[2][0]+y[1][0]/(y[2][2]-X[1][2])

          
           y[2][0] = 4
           y[1][0] = 9
           y[2][2] = 1
           X[1][2] = 9
          
          
           Q = {y[2][0]+y[1][0]/(y[2][2]-X[1][2])
           = {4+9/1-9}
           = 13/-8
           = -1.625
          
   3. Using X and Y arrays from part a above, Z arrays is formulated multiplying corresponding elements of the X and Y arrays.
   How many elements Z array contain? What are the vlaues of Z[1][2] and Z[0][1]
      
   X array of size 3X3
   Y array of size 3X3
     
   Hence Z array contains 3X3
     
   Multiplication Of Two Matrices X and Y :
     
   Z =
       {{47 ,26,4},
       {122,76,9},
       {49 ,22,5}}
      
       Here Z[1][2] = 9
       Z[0][1] = 26
             
=======================================================  

Answer the following clearly by show the process to the solution. .a) X&Y arrays: intX[3][3] ={{2,3,4},{7,8,9},{1,3,5}; int Y[3][3]={{2,7},{9},{4,3,1}}; dou
Answer the following clearly by show the process to the solution. .a) X&Y arrays: intX[3][3] ={{2,3,4},{7,8,9},{1,3,5}; int Y[3][3]={{2,7},{9},{4,3,1}}; dou

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site