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:
S = 0.5 km
velocity of motorist = 42.857 km/h
Explanation:
given data
speed = 70 km/h
accelerates uniformly = 90 km/h
time = 8 s
overtakes motorist = 42 s
solution
we know initial velocity u1 of police = 0
final velocity u2 = 90 km/h = 25 mps
we apply here equation of motion
u2 = u1 + at
so acceleration a will be
a =
a = 3.125 m/s²
so
distance will be
S1 = 0.5 × a × t²
S1 = 100 m = 0.1 km
and
S2 = u2 × t
S2 = 25 × 16
S2 = 400 m = 0.4 km
so total distance travel by police
S = S1 + S2
S = 0.1 + 0.4
S = 0.5 km
and
when motorist travel with uniform velocity
than total time = 42 s
so velocity of motorist will be
velocity of motorist = 
velocity of motorist =
velocity of motorist = 42.857 km/h
Answer:
diesel engine
Explanation:
because diesel is stronger than petrol
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 > 