Answer:
Insert
'try:' at line 1
'except:' at line 3
Explanation:
The "try and except" commands in Python are used for exception handling.
try: the statements under this block are executed normally
except: the the statements under this block are executed when there is an exception.
We can use these commands to handle errors, for example, in the given scenario we don't want the user to enter a floating point number such as
1.5, 2.6 etc.
When the user enters an integer number then the except command is not executed.
When the user enters a floating point number then the except command is executed, program is stopped and error message is shown that is at line 4
Python code:
# line 1
try:
# line 2
age = int(input("Enter your age: "))
# line 3
except:
# line 4
print("Invalid input")
Output:
Test 1:
Enter your age: 20
Test 2:
Enter your age: 20.5
Invalid input
Answer:
The formula to calculate the coefficient of friction is μ = f÷N. The friction force, f, always acts in the opposite direction of the intended or actual motion, but only parallel to the surface.
Answer:
The rotary engine works on the same basic principle as the piston engine: combustion in the power plant releases energy to power the vehicle. However, the delivery system in the rotary engine is wholly unique. The piston engine performs four key operations: intake, compression, combustion, and exhaust.
Explanation:
Answer:
i) SF = 0.83
ii) 10 psi
iii) 3.16 psi
iv) 0.0083
Explanation:
Constant load = 1000 Psi
mean resistance = 1200 psi
Probability of failure = 1.9 * 10^-3
<u>Determine </u>
<u>i) Safety factor </u>
S.F = 1 / (mean load / load design ) = 1 / ( 1200 / 1000 ) = 0.83
<u>ii) Standard deviation </u>
1.9 X 10^-3 = e ( -1/2 ( μ / б) ^3 / (2.5 * 6 )
0.004756 = e^- 20000 / б^3
hence std = 10 psi
<u>iii) Variance </u>
=
= 3.16 psi
<u>iv) coefficient of variation </u>
Cv = std / mean resistance
= 10 / 1200 = 0.0083
<u />
Answer:
••• like a story pole but has information for only one portion of the wall. system. methods and materials of construction.