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 heat of the arc melts the surface of the base metal and the end of the electrode. The electric arc has a temperature that ranges from 3,000 to 20,000 °C
Explanation:
Welding fumes are complex mixtures of particles and ionized gases.
Answer:
c = 18.0569 mm
Explanation:
Strategy
We will find required diameter based on angle of twist and based on shearing stress. The larger value will govern.
Given Data
Applied Torque
T = 750 N.m
Length of shaft
L = 1.2 m
Modulus of Rigidity
G = 77.2 GPa
Allowable Stress
г = 90 MPa
Maximum Angle of twist
∅=4°
∅=4*
/180
∅=69.813 *10^-3 rad
Required Diameter based on angle of twist
∅=TL/GJ
∅=TL/G*
/2*c^4
∅=2TL/G*
*c^4
c=
∅
c=18.0869 *10^-3 rad
Required Diameter based on shearing stress
г = T/J*c
г = [T/(J*
/2*c^4)]*c
г =[2T/(J*
*c^4)]*c
c=17.441*10^-3 rad
Minimum Radius Required
We will use larger of the two values
c= 18.0569 x 10^-3 m
c = 18.0569 mm
The x-ray beam's penetrating power is regulated by kVp (beam quality). Every time an exposure is conducted, the x-rays need to be powerful (enough) to sufficiently penetrate through the target area.
<h3>How does kVp impact the exposure to digital receptors?</h3>
The radiation's penetration power and exposure to the image receptor both increase as the kVp value is raised.
<h3>Exposure to the image receptor is enhanced with an increase in kVp, right?</h3>
Due to an increase in photon quantity and penetrability, exposure at the image receptor rises by a factor of five of the change in kVp, doubling the intensity at the detector with a 15% change in kVp.
To know more about kVp visit:-
brainly.com/question/17095191
#SPJ4