Answer:
Check the explanation
Explanation:
% iterate through each column (outer loop) , then iterate rows-1 (inner loop)
%take product of adjacent rows
mat = input('enter 5 by 5 matrix : ');
[R,C] = size(mat);
max_prod =0;
for c =[1:C]
for r=[1:(R-1)]
temp = mat(r,c)*mat((r+1),c);
if max_prod<temp
max_prod=temp;
end
end
end
fprintf('Greatest product : %i\n', max_prod)
Kindly check the output in the attached image below.
I think it’s b vertically
Answer:
An implementation of java.util.List interface
Explanation:
Given class consists of the following constructs:
It supports inserting and removing an element at a specified index. It also supports search and display operations.
These are characteristics of an object which implements the java.util.List interface ( For example: ArrayList or user-defined customList ).
Answer:
Check the explanation
Explanation:
The first, second and third instruction together set %rdx = 3*%rdi + %rsi. The fourth and fifth instruction set %rdi = %rdi+9*%rsi.
Now %rdi is used to address Q, while %rdx is used to address P. Note that P is addressed by column and then by row. Hence M = 3 . Also Q is addressed by row and then column, hence N = 9 .