Answer:
SELECT distinct VendorName FROM Vendors
WHERE VendorID IN (
SELECT VendorID FROM Invoices
)
Explanation:
 
        
             
        
        
        
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:
The fluid level difference in the manometer arm = 22.56 ft.
Explanation:
Assumption: The fluid in the manometer is incompressible, that is, its density is constant.
The fluid level difference between the two arms of the manometer gives the gage pressure of the air in the tank.
And P(gage) = ρgh
ρ = density of the manometer fluid = 60 lbm/ft³
g = acceleration due to gravity = 32.2 ft/s²
ρg = 60 × 32.2 = 1932 lbm/ft²s²
ρg = 1932 lbm/ft²s² × 1lbf.s²/32.2lbm.ft = 60 lbf/ft³
h = fluid level difference between the two arms of the manometer = ?
P(gage) = 9.4 psig = 9.4 × 144 = 1353.6 lbf/ft²
1353.6 = ρg × h = 60 lbf/ft³ × h
h = 1353.6/60 = 22.56 ft
A diagrammatic representation of this setup is presented in the attached image.
Hope this helps!