Answer:
function summedValue = SummationWithLoop(userNum)
% Summation of all values from 1 to userNum
summedValue = 0;
i = 0;
% use a while loop that assigns summedValue with the
% sum of all values from 1 to userNum
while(i <= userNum)
summedValue = summedValue + i;
i = i + 1;
end
end
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
Solution :
Given :
The number of blows is given as :
0 - 6 inch = 4 blows
6 - 12 inch = 6 blows
12 - 18 inch = 6 blows
The vertical effective stress 


Now,

corrected N - value of overburden
effective stress at level of test
0 - 6 inch, 
= 9.86
6 - 12 inch, 
= 14.8
12 - 18 inch, 
= 14.8

= 13.14
= 13
Answer:
0.024 m = 24.07 mm
Explanation:
1) Notation
= tensile stress = 200 Mpa
= plane strain fracture toughness= 55 Mpa
= length of a surface crack (Variable of interest)
2) Definition and Formulas
The Tensile strength is the ability of a material to withstand a pulling force. It is customarily measured in units (F/A), like the pressure. Is an important concept in engineering, especially in the fields of materials and structural engineering.
By definition we have the following formula for the tensile stress:
(1)
We are interested on the minimum length of a surface that will lead to a fracture, so we need to solve for 
Multiplying both sides of equation (1) by 
(2)
Sequaring both sides of equation (2):
(3)
Dividing both sides by
we got:
(4)
Replacing the values into equation (4) we got:
![\lambda=\frac{1}{\pi}[\frac{55 Mpa\sqrt{m}}{1.0(200Mpa)}]^2 =0.02407m](https://tex.z-dn.net/?f=%5Clambda%3D%5Cfrac%7B1%7D%7B%5Cpi%7D%5B%5Cfrac%7B55%20Mpa%5Csqrt%7Bm%7D%7D%7B1.0%28200Mpa%29%7D%5D%5E2%20%3D0.02407m)
3) Final solution
So the minimum length of a surface crack that will lead to fracture, would be 24.07 mm or more.