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:
B. G = 333 mS, B = j250 mS
Explanation:
impedance of a circuit element is Z = (3 + j4) Ω
The general equation for impedance
Z = (R + jX) Ω
where
R = resistance in ohm
X = reactance
R = 3Ω X = 4Ω
Conductance = 1/R while Susceptance = 1/X
Conductance = 1/3 = 0.333S
= 333 mS
Susceptance = 1/4 = 0.25S
= 250mS
The right option is B. G = 333 mS, B = j250 mS
Answer:
a) 
b) attached below
c) type zero system
d) k > 
e) The gain K increases above % error as the steady state speed increases
Explanation:
Given data:
Motor voltage = 12 v
steady state speed = 200 rad/s
time taken to reach 63.2% = 1.2 seconds
<u>a) The transfer function of the motor from voltage to speed</u>
let ;
be the transfer function of a motor
when i/p = 12v then steady state speed ( k1 ) = 200 rad/s , St ( time constant ) = 1.2 sec
hence the transfer function of the motor from voltage to speed
= 
<u>b) draw the block diagram of the system with plant controller and the feedback path </u>
attached below is the remaining part of the detailed solution
c) The system is a type-zero system because the pole at the origin is zero
d) ) k > 
Answer:
The amount of energy transferred to the water is 4.214 J
Explanation:
The given parameters are;
The mass of the object that drops = 5 kg
The height from which it drops = 86 mm (0.086 m)
The potential energy P.E. is given by the following formula
P.E = m·g·h
Where;
m = The mass of the object = 5 kg
g = The acceleration de to gravity = 9.8 m/s²
h = The height from which the object is dropped = 0.086 m
Therefore;
P.E. = 5 kg × 9.8 m/s² × 0.086 m = 4.214 J
Given that the potential energy is converted into heat energy, that raises the 1 g of water by 1°C, we have;
The amount of energy transferred to the water = The potential energy, P.E. = 4.214 J.
Answer:

Explanation:
From the question we are told that:
Initial Pressure 
Initial Temperature 
Final Pressure 
Final Temperature 
Work Output 
Generally Specific Energy from table is
At initial state


With
Specific Volume 
At Final state


Generally the equation for The Process is mathematically given by

Assuming Mass to be Equal

Where



Therefore

