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
Explain how use of EGR is effective in reducing NOx emissions 4. In most locations throughout the U.S., the octane number of reg
TiliK225 [7]

Answer:please see attached file

Explanation:

3 0
4 years ago
As cylinder pressure and heat increase due to an increased load condition, the fuel injection management system must ___________
Temka [501]

possible Answers:

Compensate ⭐⭐⭐⭐⭐

Adjust            ⭐⭐⭐⭐⭐

regulate         ⭐⭐⭐⭐

tune               ⭐⭐⭐

calibrate        ⭐⭐⭐

balance         ⭐⭐

correct           ⭐

6 0
2 years ago
⦁ An ideal Otto cycle has a compression ratio of 8. At the beginning of the compression process, air is at 95 kPa and 27°C, and
Anon25 [30]

Answer:

<u><em>note:</em></u>

<u><em>solution is attached in word form due to error in mathematical equation. furthermore i also attach Screenshot of solution in word due to different version of MS Office please find the attachment</em></u>

Download docx
8 0
4 years ago
Yo can someone find me an e-boy?
Vera_Pavlovna [14]
I got a friend how old are you and are you ok dating a bi guy
4 0
4 years ago
A driver takes 3.5 s to react to a complex situation while traveling at a speed of 60 mi/h. How far does the vehicle travel befo
victus00 [196]

Answer:

x = 93.8 m.

Explanation:

During the entire the reaction time interval, the vehicle continues moving at the same speed that it was moving, i.e., 60 mi/hr.

In order to calculate the distance in meters, travelled at that speed, it is advisable first to convert the 60 mi/hr to m/seg, as follows:

60 mi/hr = 60*\frac{1hr}{3,600s}*\frac{1,605m}{1mi} = 26.8 m/s

Applying the definition of average velocity, we can solve for Δx, as follows:

Δx = 26.8 m/s* 3.5 s = 93.8 m

7 0
3 years ago
Other questions:
  • Signal generator‘s internal impedance is purely resistive and has an open-circuit voltage of 3.5 V. When the generator is loaded
    11·1 answer
  • Select the properties and typical applications for the high carbon steels.
    12·1 answer
  • A circular ceramic plate that can be modeled as a blackbody is being heated by an electrical heater. The plate is 30 cm in diame
    15·1 answer
  • The water behind Hoover Dam in Nevada is 221 m higher than the Colorado River below it. At what rate must water pass through the
    6·1 answer
  • A 24-tooth gear has AGMA standard full-depth involute teeth with diametral pitch of 12. Calculate the pitch diameter, circular p
    5·2 answers
  • A saturated 1.5 ft3 clay sample has a natural water content of 25%, shrinkage limit (SL) of 12% and a specific gravity (GS) of 2
    11·1 answer
  • Which 1 of the following did women NOT do during WWII?
    6·2 answers
  • Economics is the study of how individuals and societies make choices under the condition of
    10·1 answer
  • By the end of the day, a 45 ft x 25 ft x 8 ft office has a carbon dioxide air level of 1,100 ppm. Determine the time in hours ne
    10·1 answer
  • You have three gear wheels a, b and c connected to each other,if you turn the first gear wheel "a" clockwise what will happen to
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!