Answer:
W=2 MW
Explanation:
Given that
COP= 2.5
Heat extracted from 85°C
Qa= 5 MW
Lets heat supplied at 150°C = Qr
The power input to heat pump = W
From first law of thermodynamics
Qr= Qa+ W
We know that COP of heat pump given as
![COP=\dfrac{Qr}{W}](https://tex.z-dn.net/?f=COP%3D%5Cdfrac%7BQr%7D%7BW%7D)
![2.5=\dfrac{5}{W}](https://tex.z-dn.net/?f=2.5%3D%5Cdfrac%7B5%7D%7BW%7D)
![2.5=\dfrac{5}{W}](https://tex.z-dn.net/?f=2.5%3D%5Cdfrac%7B5%7D%7BW%7D)
W=2 MW
For Carnot heat pump
![COP=\dfrac{T_2}{T_2-T_1}](https://tex.z-dn.net/?f=COP%3D%5Cdfrac%7BT_2%7D%7BT_2-T_1%7D)
![2.5=\dfrac{T_2}{T_2-(273+85)}](https://tex.z-dn.net/?f=2.5%3D%5Cdfrac%7BT_2%7D%7BT_2-%28273%2B85%29%7D)
2.5 T₂ - 895= T₂
T₂=596.66 K
T₂=323.6 °C
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:
building lol and actually workin
Explanation: