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:
The right choice would be Option b (2.545).
Explanation:
The given values are:
The aggregate blend will be:
= 55%
= 2.631
= 25%
= 2.331
= 20%
= 2.609
Now,
On applying the formula, we get
⇒ 
On substituting the values, we get
⇒ 
⇒ 
⇒ 
Answer:
1) For preparation of plan :
It is to gather the team and creating the timeline. Gathering the inputs for the plan and confirming the mission and vision then launching the strategy.
2) A mission would describe about the company and the specification of the company
A vision is the long term or future state of the organization to achieve in a time frame.
Both would include the OAS statements and strategic shifts.
3) The OAS and strategic shift would help to create a balanced score card that would help for data gathering and analysis
This would include the financial, customers goal, Process goals, people's goals etc.
4) To create and develop the plan's framework:
To set the objective for high level organizational goals
To measure the and accomplish the objectives
To take initiatives to achieve the objectives
Explanation:
Answer: Some activities that I do in my daily life that require energy are:
1. Doing ballet
2. Studying
3. Walking up and down stairs
4. Stretching
5. Running on the treadmill
Hope this helps! :)
Explanation:
Answer:
(a) The force sustained by the matrix phase is 1802.35 N
(b) The modulus of elasticity of the composite material in the longitudinal direction Ed is 53.7 GPa
(c) The moduli of elasticity for the fiber and matrix phases is 124.8 GPa and 2.2 GPa respectively
Explanation:
Find attachment for explanation