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:
(a) maximum positive reaction at A = 64.0 k
(b) maximum positive shear at A = 32.0 k
(c) maximum negative moment at C = -540 k·ft
Explanation:
Given;
dead load Gk = 400 lb/ft
live load Qk = 2 k/ft
concentrated live load Pk =8 k
(a) from the influence line for vertical reaction at A, the maximum positive reaction is
= 2*(8) +(1/2(20 - 0)* (2))*(2 + 0.4) = 64 k
See attachment for the calculations of (b) & (c) including the influence line
Explanation:
First of all get the input from the user, number of rows and number of columns where rows represents seat digit number and column represents the seat letter
rows is initialized to 1 to ensure that row starts at 1 or you can remove it then seat number will start from 0.
The first loop is used for digits starting from 1 to number of rows
The second loop is used for letters starting from 1 to number of columns
since rows and cols are not of the same type that's why we are converting the int type to string type
print(str(rows)+cols) counter will keep updating the columns A, B, C.....
rows= rows + 1 counter will keep updating the rows 1, 2, 3....
Code:
Please refer to the attached image.
Output:
Please enter the number of rows: 2
Please enter the number of columns: 3
1A
1B
1C
2A
2B
2C
The first one is d or the 4th answer choice and the second one is false. Hope this helps!