1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
AnnZ [28]
3 years ago
6

The function below takes two numeric parameters. The first parameter specifies the number of hours a person worked and the secon

d the number of dollars that they earn each hour. Compute the value of their weekly pay check. Any time worked beyond 40 hours, is considered overtime. Any overtime earns double pay (but only on the hours beyond the first 40). (python)
Function:

def compute_pay_with_overtime(hours_worked, hourly_rate):
Engineering
1 answer:
Mekhanik [1.2K]3 years ago
5 0

def calculate_pay(total_worked_hours, rate_per_hour):

  if total_hours_worked > 40:

 # anything over 40 hours earns the overtime rate

 overtimeRate = 2 * rate _per_hour

  return (40 * rate_per_hour) + ((total_worked_hours - 40) * overtimeRate

  else:

  # if you didn't work over 40 hours, there is no overtime

   overtime = 0

   return total_worked_hours * rate_per_hour

Explanation:

  • First we create the calculate_pay function which will takes 2 parameters.
  • Secondly ,inside the function we check if  the total_worked_hours is greater than 40 and then return the pay by calculating with the help of formula for work over 40 hours.
  • If the total work hour is less than 40 then we  return the pay by multiplying the total_worked_hours with rate_per_hour.

You might be interested in
Which one of the following is a list of devices from least efficient to most efficient
Sergeu [11.5K]

Answer:

(A)-Light-Bulb, Automobile Engine, Power Plant, Electric Motor

Explanation:

To get the least efficient to the most efficient the chart below explains how to the get it

Incandescent light bulb-5%

Florescent light bulb-20%

Electric motor-90%

Power plant-35%

Automobile engine-25%

Home oil furnace-80%

4 0
2 years ago
Air at a pressure of 6000 N/m^2 and a temperature of 300C flows with a velocity of 10 m/sec over a flat plate of length 0.5 m. E
White raven [17]

Answer:

Q=hA(T_{w}-T_{inf})=16.97*0.5(27-300)=-2316.4J

Explanation:

To solve this problem we use the expression for the temperature film

T_{f}=\frac{T_{\inf}+T_{w}}{2}=\frac{300+27}{2}=163.5

Then, we have to compute the Reynolds number

Re=\frac{uL}{v}=\frac{10\frac{m}{s}*0.5m}{16.96*10^{-6}\rfac{m^{2}}{s}}=2.94*10^{5}

Re<5*10^{5}, hence, this case if about a laminar flow.

Then, we compute the Nusselt number

Nu_{x}=0.332(Re)^{\frac{1}{2}}(Pr)^{\frac{1}{3}}=0.332(2.94*10^{5})^{\frac{1}{2}}(0.699)^{\frac{1}{3}}=159.77

but we also now that

Nu_{x}=\frac{h_{x}L}{k}\\h_{x}=\frac{Nu_{x}k}{L}=\frac{159.77*26.56*10^{-3}}{0.5}=8.48\\

but the average heat transfer coefficient is h=2hx

h=2(8.48)=16.97W/m^{2}K

Finally we have that the heat transfer is

Q=hA(T_{w}-T_{inf})=16.97*0.5(27-300)=-2316.4J

In this solution we took values for water properties of

v=16.96*10^{-6}m^{2}s

Pr=0.699

k=26.56*10^{-3}W/mK

A=1*0.5m^{2}

I hope this is useful for you

regards

8 0
3 years ago
Air expands through a turbine operating at steady state. At the inlet p1 = 150 lbf/in^2, T1 = 1400R and at the exit p2 = 14.8 lb
Paraphin [41]

Answer:

The power developed in HP is 2702.7hp

Explanation:

Given details.

P1 = 150 lbf/in^2,

T1 = 1400°R

P2 = 14.8 lbf/in^2,

T2 = 700°R

Mass flow rate m1 = m2 = m = 11 lb/s Q = -65000 Btu/h

Using air table to obtain the values for h1 and h2 at T1 and T2

h1 at T1 = 1400°R = 342.9 Btu/h

h2 at T2 = 700°R = 167.6 Btu/h

Using;

Q - W + m(h1) - m(h2) = 0

W = Q - m (h2 -h1)

W = (-65000 Btu/h ) - 11 lb/s (167.6 - 342.9) Btu/h

W = (-65000 Btu/h ) - (-1928.3) Btu/s

W = (-65000 Btu/h ) * {1hr/(60*60)s} - (-1928.3) Btu/s

W = -18.06Btu/s + 1928.3 Btu/s

W = 1910.24Btu/s

Note; Btu/s = 1.4148532hp

W = 2702.7hp

5 0
3 years ago
A 60-cm-high, 40-cm-diameter cylindrical water tank is being transported on a level road. The highest acceleration anticipated i
dlinn [17]

Answer:

h_{max} = 51.8 cm

Explanation:

given data:

height of tank = 60cm

diameter of tank =40cm

accelration = 4 m/s2

suppose x- axis - direction of motion

z -axis - vertical direction

\theta = water surface angle with horizontal surface

a_x =accelration in x direction

a_z =accelration in z direction

slope in xz plane is

tan\theta = \frac{a_x}{g +a_z}

tan\theta = \frac{4}{9.81+0}

tan\theta =0.4077

the maximum height of water surface at mid of inclination is

\Delta h = \frac{d}{2} tan\theta

            =\frac{0.4}{2}0.4077

\Delta h  0.082 cm

the maximu height of wwater to avoid spilling is

h_{max} = h_{tank} -\Delta h

            = 60 - 8.2

h_{max} = 51.8 cm

the height requird if no spill water is h_{max} = 51.8 cm

3 0
3 years ago
A person walks into a refrigerated warehouse with head uncovered. Model the head as a 25- cm diameter sphere at 35°C with a surf
galina1969 [7]

Answer:

Hello some parts of your question is missing below is the missing part

Convection coefficient = 11 w/m^2. °c

answer : 44.83 watts

Explanation:

Given data :

surface emissivity ( ε )= 0.95

head ( sphere) diameter( D )  = 0.25 m

Temperature of sphere( T )  = 35° C

Temperature of surrounding ( T∞ )  = 25°C

Temperature of surrounding surface ( Ts ) = 15°C

б  = ( 5.67 * 10^-8 )

Determine the total rate of heat loss

First we calculate the surface area of the sphere

As = \pi D^{2}  

= \pi * 0.25^2 =  0.2 m^2

next we calculate heat loss due to radiation

Qrad = ε * б * As( T^{4} - T^{4} _{s} )  ---- ( 1 )

where ;

ε = 0.95

б = ( 5.67 * 10^-8 )

As = 0.2 m^2

T = 35 + 273 = 308 k

Ts = 15 + 273 = 288 k

input values into equation 1

Qrad = 0.95 * ( 5.67 * 10^-8 ) * 0.2 ( (308)^4 - ( 288)^4 )

         = 22.83  watts

Qrad ( heat loss due to radiation ) = 22.83 watts

calculate the heat loss due to convection

Qconv = h* As ( ΔT )

           = 11*0.2 ( 35 -25 )  = 22 watts

Hence total rate of heat loss

=  22 + 22.83

= 44.83 watts

5 0
3 years ago
Other questions:
  • Twenty-five wooden beams were ordered or a construction project. The sample mean and he sample standard deviation were measured
    6·1 answer
  • A Transmission Control Protocol (TCP) connection is in working order and both sides can send each other data. What is the TCP so
    7·1 answer
  • A spherical seed of 1 cm diameter is buried at a depth of 1 cm inside soil (thermal conductivity of 1 Wm-1K-1) in a sufficiently
    14·1 answer
  • What are the four basic parts of process plan
    11·1 answer
  • Chemical materials that are transported are called..
    8·1 answer
  • Stakeholders are people or organizations who do what?
    10·2 answers
  • Writing an excellent problem statement will not help guide you through the rest of the process and steer you towards the BEST so
    8·1 answer
  • What is mechanical engineer​
    14·1 answer
  • For heat transfer purposes, a standing man can be mod-eled as a 30-cm-diameter, 170-cm-long vertical cylinderwith both the top a
    11·1 answer
  • Why is electricity considered a secondary source of energy
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!