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
Define, in words the following i relative humidity ii) dew point temperature
defon

Explanation:

i) When we divide water vapor's partial pressure by the water's equilibrium vapor pressure at a given temperature we get relative humidity.

It is denoted by ∅

\phi ={\frac {p_ {H_{2}O} }{p_{H_{2}O} ^{*}}}

ii) When air is cooled so that it becomes saturated with water vapor the temperature where this occurs is called the dew point.

7 0
3 years ago
Problematic substances mechanical engeneering???
Sonja [21]

Answer:

The climate crisis. ...

Making water clean and accessible. ...

Providing enough food. ...

Personalised and relevant education. ...

Improving health care. ...

The refugee crisis. ...

Cyber security. ...

Enlisting the youth

6 0
2 years ago
"From the earth to the moon". In Jules Verne’s 1865 story with this title, three men went to the moon in a shell fired from a gi
Wewaii [24]

Answer:

Check the explanation

Explanation:

Kindly check the attached image below to get the step by step explanation to the above question.

4 0
3 years ago
A well-insulated tank in a vapor power plant operates at steady state. Saturated liquid water enters at inlet 1 at a rate of 125
Gekata [30.6K]

Answer:

a) \dot m_{3} = 135\,\frac{lbm}{s}, b) h_{3}=168.965\,\frac{BTU}{lbm}, c) T = 200.829\,^{\textdegree}F

Explanation:

a) The tank can be modelled by the Principle of Mass Conservation:

\dot m_{1} + \dot m_{2} - \dot m_{3} = 0

The mass flow rate exiting the tank is:

\dot m_{3} = \dot m_{1} + \dot m_{2}

\dot m_{3} = 125\,\frac{lbm}{s} + 10\,\frac{lbm}{s}

\dot m_{3} = 135\,\frac{lbm}{s}

b) An expression for the specific enthalpy at outlet is derived from the First Law of Thermodynamics:

\dot m_{1}\cdot h_{1} + \dot m_{2} \cdot h_{2} - \dot m_{3}\cdot h_{3} = 0

h_{3} = \frac{\dot m_{1}\cdot h_{1}+\dot m_{2}\cdot h_{2}}{\dot m_{3}}

Properties of water are obtained from tables:

h_{1}=180.16\,\frac{BTU}{lbm}

h_{2}=28.08\,\frac{BTU}{lbm} + \left(0.01604\,\frac{ft^{3}}{lbm}\right)\cdot (14.7\,psia-0.25638\,psia)

h_{2}=29.032\,\frac{BTU}{lbm}

The specific enthalpy at outlet is:

h_{3}=\frac{(125\,\frac{lbm}{s} )\cdot (180.16\,\frac{BTU}{lbm} )+(10\,\frac{lbm}{s} )\cdot (29.032\,\frac{BTU}{lbm} )}{135\,\frac{lbm}{s} }

h_{3}=168.965\,\frac{BTU}{lbm}

c) After a quick interpolation from data availables on water tables, the final temperature is:

T = 200.829\,^{\textdegree}F

8 0
3 years ago
Read 2 more answers
Which of the following is NOT a line used on blueprints?
jonny [76]

Answer: Photo lines

Explanation: made more sense

4 0
3 years ago
Other questions:
  • A circuit-switching scenario in whichNcs users, each requiring a bandwidth of 25 Mbps, must share a link of capacity 150 Mbps.
    12·1 answer
  • What are the advantages of using 3D ink jet printing?
    10·1 answer
  • What is the name of the model/shape below?
    5·2 answers
  • A plane wall of thickness 2L = 40 mm and thermal conductivity k = 5 W/m K experiences uniform volumetric heat generation at a ra
    15·1 answer
  • Do you think the industrial revolution helped or hurt workers? Why?
    8·1 answer
  • Please look at the attachments and help me with these questions
    7·1 answer
  • Develop a simple Business plan as an entrepreneur​
    5·1 answer
  • Technician A says that fuel filler caps with pressure and vacuum vents are used with EVAP system fuel tanks. Technician B says t
    5·1 answer
  • The ratio between the modulating signal voltage and the carrier voltage is called?.
    10·1 answer
  • What are the reasons why fine grained of alkali igneous rocks can not be used in cement
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!