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
Answer:
See attached image for diagrams and solution
Follow @richard.gbe on Instagram for the answer
Answer:
endurance length is 236.64 MPa
Explanation:
data given:
d = 37.5 mm
Sut = 760MPa
endurance limit is
Se = 0.5 Sut
= 0.5*760 = 380 MPa
surface factor is
Ka = a*Sut^b
where
Sut is ultimate strength
for AISI 1040 STEEL
a = 4.51, b = -0.265
Ka = 4.51*380^{-0.265}
Ka = 0.93
size factor is given as
Kb =1.29 d^{-0.17}
Kb = 0.669
Se = Sut *Ka*Kb
= 380*0.669*0.93
Se = 236.64 MPa
therefore endurance length is 236.64 MPa