Answer:
Explanation:
Work, U, is equal to the force times the distance:
U = F · r
Force needed to lift the weight, is equal to the weight: F = W = m · g
so:
U = m · g · r
= 20.4kg · 9.81 · 1.50m
= 35.316
= 35.316 W
Answer:
The perceived economic impact of CO2 generated per year by lighting sstem is $8164.67.
Explanation:
The CO2 requirement for the plant is:
Amount of CO2 per year = (2.4 lb / KWh)(300,000 KWh)
Amount of CO2 per year = (720000 lb)(1 ton/ 2204.62 lb)
Amount of CO2 per year = 326.59 ton
The perceived economic impact of CO2 generated per year will then be:
Economic Impact = ($25 / ton)(326.59 ton)
<u>Economic Impact = $8164.67</u>
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:
non-functional requirement,
Yes they can.
The application loading time is determined by testing system under various scenarios
Explanation:
non-functional requirement are requirements needed to justify application behavior.
functional requirements are requirements needed to justify what the application will do.
The loading time can be stated with some accuracy level after testing the system.