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). False, (2). True, (3). False, (4). False, (5). True.
Explanation:
The term ''contouring'' in this question does not have to do with makeup but it has to deal with the measurement of all surfaces in planes. It is a measurement in which the rough and the contours are being measured. So, let us check each questions again.
(1). In contouring, it is necessary to measure position and not velocity for feedback.
ANSWER : b =>False. IT IS NECESSARY TO MEASURE BOTH FOR FEEDBACK.
(2). In contouring during 2-axis NC machining, the two axes are moved at the same speed to achieve the desired contour.
ANSWER: a=> True.
(3). Job shop is another term for process layout.
ANSWER: b => False
JOB SHOP IS A FLEXIBLE PROCESS THAT IS BEING USED during manufacturing process and are meant for job Production. PROCESS LAYOUT is used in increasing Efficiency.
(4). Airplanes are normally produced using group technology or cellular layout.
ANSWER: b => False.
(5). In manufacturing, value-creating time is greater than takt time.
ANSWER: a => True.
Answer:
A) energy loss E = pgQtH
Where p = density in kg/m3
g = gravity acceleration in m/s2
Q = flow rate in m3/s
t = time taken for flow in sec
H = height of flow in m
B) power required to run pump;
P = pgQH
Explanation:
Detailed explanation and calculation is shown in the image below
Answer:
Reduce manufacturing costs.
Explanation:
Hope This Helps
Have A Great Day