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
The position of a particle is given by s = 0.27t
Natali [406]
Sorry bro people do this22.2 pls
8 0
2 years ago
A rod that was originally 100-cm-long experiences a strain of 82%. What is the new length of the rod?
lisabon 2012 [21]

Answer:

The new length of the rod is 182 cm.

Explanation:

Given that a rod that was originally 100-cm-long experiences a strain of 82%, to determine what is the new length of the rod, the following calculation must be performed:

100 x 1.82 = X

182 = X

 

Therefore, the new length of the rod is 182 cm.

7 0
3 years ago
What type of slab and beam used in construction of space neddle​
Sav [38]

jrjrkeekkekekkwkkakkllalllalallalllalalaallalalaalalalalalallallallllallalalallaaallalallllllallllllllalaalalalaaaaalalaaaaaaalgjgiejxpwunfifjruritiririirieoeowowowowowowowowooeowowowoeeoeowowowowowowowoowowwowowowoozoeisiaokseekxidjdkdjfidjfjdjfjfjrifjrifjdirjdjrjfjrjfjrjfjrfuejwwuxmaneanfjkaosndjxieneamalhaqzeeshanvhorahfuensiwjakaksjdhfhfnfhfndjxnxmakaalalalwlwlwwow

5 0
3 years ago
Gold and silver rings can receive an arc and turn molten. True or False
liubo4ka [24]
The answer is False!
The answer is false
8 0
3 years ago
Read 2 more answers
I need help with this question please
solniwko [45]

Answer:

The resultant moment is 477.84 N·m

Explanation:

We note that the resultant moment is given by the moment about a given point

The length of the sides of the formed triangles are;

l = sin(40°) × 4/sin(110°) ≈ 2.736

Taking the moment about the lower left hand corner of the figure, with the convention that clockwise moments are positive, we have;

The resultant moment, ∑m, is given as follow;

∑M = 250 N × 4 m + 400 N × cos(40°) × 4 m - 400 N × cos(40°) × 2 m + 400 N × sin(40°) × 2 m × tan(40°) - 600 N × cos(40°) × 2 m - 600 N× sin(40°) × 2 m × tan(40°) = 477.837084 N·m

Therefore, the resultant moment, ∑m ≈ 477.84 N·m clockwise.

6 0
3 years ago
Other questions:
  • A disk brake has two pads which cover 45 degrees of the disk. The outside radius is 6.0 inch and the inside radius is 4.0 inch.
    5·1 answer
  • I need help!!! Because this is due
    14·2 answers
  • A. For a 200g load acting vertically downwards at point B’, determine the axial load in members A’B’, B’C’, B’D’, C’D’ and C’E’.
    8·1 answer
  • Whats the best used for Arch bridge
    11·1 answer
  • A specimen of commercially pure copper has a strength of 240 MPa. Estimate its average grain diameter using the Hall-Petch equat
    14·1 answer
  • The attached program (studentsGpa.cpp) uses dynamic allocation to create an array of strings. It asks the user to enter a number
    10·1 answer
  • A certain metal has a resistivity of 1.68 × 10-8 Ω ∙ m. You have a long spool of wire made from this metal. If this wire has a d
    14·1 answer
  • 11. Technicians A and B are discussing
    12·1 answer
  • Which of the following is not a function of the suspension system?_____
    6·1 answer
  • Why is the reflection step in the engineering process the most important step?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!