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:
John should detail his Scrum Master.
Explanation:
The Team Lead or Scrum Master coordinates the tasks of individual team members and supports the progress of the team. The Scrum Master usually receives instructions from the Product Owner and then ensures that the tasks are performed accordingly. She also coaches the Development Team and works with the Product Owner to carry out daily development activities. She also drives the Scrum Values and Principles, ensuring that the team members understand and practice them.
Answer:
The shear strain is 0.05797 rad.
Explanation:
Shear strain is the ratio of change in dimension along the shearing load direction to the height of the plate under application of shear load. Width of the plate remains same. Length of the plate slides under shear load.
Step1
Given:
Height of the pad is 1.38 in.
Deformation at the top of the pad is 0.08 in.
Calculation:
Step2
Shear strain is calculated as follows:



For small angle of
,
can take as
.

Thus, the shear strain is 0.05797 rad.
Answer:
42.50 dB
Explanation:
Determine the minimum voltage gain
amplitude of input signal ( Vi ) = 15 mV
amplitude of output signal ( Vo) = 2 V
Vo = 2 v
therefore ; minimum gain = Vo / Vi = 2 / ( 15 * 10^-3 )
= 133.33
Minimum gain in DB = 20 log ( 133.33 )
= 42.498 ≈ 42.50 dB