Answer:
The algorithm is as follows:
1. Declare Arr1 and Arr2
2. Get Input for Arr1 and Arr2
3. Initialize count to 0
4. For i in Arr2
4.1 For j in Arr1:
4.1.1 If i > j Then
4.1.1.1 count = count + 1
4.2 End j loop
4.3 Print count
4.4 count = 0
4.5 End i loop
5. End
Explanation:
This declares both arrays
1. Declare Arr1 and Arr2
This gets input for both arrays
2. Get Input for Arr1 and Arr2
This initializes count to 0
3. Initialize count to 0
This iterates through Arr2
4. For i in Arr2
This iterates through Arr1 (An inner loop)
4.1 For j in Arr1:
This checks if current element is greater than current element in Arr1
4.1.1 If i > j Then
If yes, count is incremented by 1
4.1.1.1 count = count + 1
This ends the inner loop
4.2 End j loop
Print count and set count to 0
<em>4.3 Print count</em>
<em>4.4 count = 0</em>
End the outer loop
4.5 End i loop
End the algorithm
5. End
Answer:
Matlab code with step by step explanation and output results are given below
Explanation:
We have to construct a Matlab function that creates a row vector "countValues" with elements 1 to endValue. That means it starts from 1 and ends at the value provided by the user (endValue).
function countValues = CreateArray(endValue)
% Here we construct a row vector countValues from 1:endValue
countValues = 1:endValue;
% then we transpose this row vector into column vector
countValues = countValues';
end
Output:
Calling this function with the endValue=11 returns following output
CreateArray(11)
ans =
1
2
3
4
5
6
7
8
9
10
11
Hence the function works correctly. It creates a row vector then transposes it and makes it a column vector.
Answer: The correct answer is hidden lines.
Explanation:
Answer:
Your question is lacking some information attached is the missing part and the solution
A) AB = AD = BD = 0, BC = LC
AC = 
B) AB = AD = BC = BD = 0
AC = 
Explanation:
A) Forces in all members due to the load L in position A
assuming that BD goes slack from an inspection of Joint B
AB = 0 and BC = LC from Joint D, AD = 0 and CD = 4L/3 C
B) steps to arrive to the answer is attached below
AB = AD = BC = BD = 0
AC = 