Answer:
(a) Precipitation hardening
(1) The strengthening mechanism involves the hindering of dislocation motion by precipitates/particles.
(2) The hardening/strengthening effect is not retained at elevated temperatures for this process.
(4) The strength is developed by a heat treatment.
(b) Dispersion strengthening
(1) The strengthening mechanism involves the hindering of dislocation motion by precipitates/particles.
(3) The hardening/strengthening effect is retained at elevated temperatures for this process.
(5) The strength is developed without a heat treatment.
Answer:
Complete question is:
write the following decorators and apply them to a single function (applying multiple decorators to a single function):
1. The first decorator is called strong and has an inner function called wrapper. The purpose of this decorator is to add the html tags of <strong> and </strong> to the argument of the decorator. The return value of the wrapper should look like: return “<strong>” + func() + “</strong>”
2. The decorator will return the wrapper per usual.
3. The second decorator is called emphasis and has an inner function called wrapper. The purpose of this decorator is to add the html tags of <em> and </em> to the argument of the decorator similar to step 1. The return value of the wrapper should look like: return “<em>” + func() + “</em>.
4. Use the greetings() function in problem 1 as the decorated function that simply prints “Hello”.
5. Apply both decorators (by @ operator to greetings()).
6. Invoke the greetings() function and capture the result.
Code :
def strong_decorator(func):
def func_wrapper(name):
return "<strong>{0}</strong>".format(func(name))
return func_wrapper
def em_decorator(func):
def func_wrapper(name):
return "<em>{0}</em>".format(func(name))
return func_wrapper
@strong_decorator
@em_decorator
def Greetings(name):
return "{0}".format(name)
print(Greetings("Hello"))
Explanation:
Answer:
1.44 mm
Explanation:
Compute the maximum allowable surface crack length using
where E is the modulus of elasticity,
is surface energy and
is tensile stress
Substituting the given values
The maximum allowable surface crack is 1.44 mm
Answer:
The diameter is 50mm
Explanation:
The answer is in two stages. At first the torque (or twisting moment) acting on the shaft and needed to transmit the power needs to be calculated. Then the diameter of the shaft can be obtained using another equation that involves the torque obtained above.
T=(P×60)/(2×pi×N)
T is the Torque
P is the the power to be transmitted by the shaft; 40kW or 40×10³W
pi=3.142
N is the speed of the shaft; 250rpm
T=(40×10³×60)/(2×3.142×250)
T=1527.689Nm
Diameter of a shaft can be obtained from the formula
T=(pi × SS ×d³)/16
Where
SS is the allowable shear stress; 70MPa or 70×10⁶Pa
d is the diameter of the shaft
Making d the subject of the formula
d= cubroot[(T×16)/(pi×SS)]
d=cubroot[(1527.689×16)/(3.142×70×10⁶)]
d=0.04808m or 48.1mm approx 50mm