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]
4 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]4 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
A woodcutter wishes to cause the tree trunk to fall uphill, even though the trunk is leaning downhill. With the aid of the winch
Sedbober [7]

Answer:

The correct answer will be "400.4 N". The further explanation is given below.

Explanation:

The given values are:

Mass of truck,

m = 600 kg

g = 9.8 m/s²

On equating torques at the point O,

⇒  T\times Cos(10+5)\times (1.3+4)=mg\times Sin(5)\times 4

So that,

On putting the values, we get

⇒  T\times Cos(15^{\circ})\times 5.3=600\times 9.8\times Sin(5^{\circ})\times 4

⇒                             T=400.4 \ N

8 0
4 years ago
True False. First angle projection type used in United states.
Sloan [31]

Answer:

FALSE.

Explanation:

the correct answer is FALSE.

Projection is the process of representing the 3 D object on the flat surface.

there are four ways of representing the projection

1) First angle projection  

2) second angle projection

3) third angle projection

4) fourth angle projection.

Generally, people prefer First and third angle projection because there is no overlapping of the projection take place.

In USA people uses the third angle of projection.

5 0
3 years ago
Which step in the engineering design process most likely broke down in the following scenario?
yawa3891 [41]

The Tacoma narrows project required a bridge to be buiilt over the columbia river.

4 0
3 years ago
Among Us Map-Skeld Imposter 3 code- DBZPTQ
Yuki888 [10]

Answer:

0:  <em>NOICE  </em>:0

Explanation:

7 0
3 years ago
Read 2 more answers
A parallel circuit with two branches and an 18 volt battery. Resistor #1 on the first branch has a value of 220 ohms and resisto
likoan [24]

Answer:

  2.455 W

Explanation:

The power dissipated in each branch is ...

  P = V^2/R

So, the branch powers are ...

  branch 1: 18^2/220 ≈ 1.473 W

  branch 2: 18^2/330 ≈ 0.982 W

Total power is ...

  1.473 W + 0.982 W = 2.455 W

8 0
3 years ago
Other questions:
  • A 7-cm diameter horizontal pipe connected to the side of a tank at 4 m below the water surface in the tank discharges water to t
    6·1 answer
  • In a steam power plant, the temperature of the burning fuel is 1100 °C, and cooling water is available at 15 °C. Steam leaving t
    15·1 answer
  • Elastic recovery: a. Is the strain that remains in a material when it is deformed plastically, then unloaded. b. Is the strain t
    14·1 answer
  • Your class has designed a self-cleaning reptile tank. What kind of patent would you apply for? A. a plant patent B. a design pat
    14·2 answers
  • Consider a variant of the thermostat of example 3.5. In this variant, there is only one temperature threshold, and to avoid chat
    6·2 answers
  • In adopt me, (Roblox) should I trade my fly ride neon penguin for a car,2 shibu inus and a fly ride neon unicorn?????? This is n
    15·2 answers
  • Un conejo puede recorrer una distancia de 90 m en 7 segundos .Cual es su velocidad?
    5·1 answer
  • Plumbing
    12·1 answer
  • Deidre has just moved from the sales department into the finance department. On her first day in her new role, she receives an e
    14·1 answer
  • Giving out 100 coins cuz why not?​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!