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
Is it possible to interface an IC with a different technology such as TTL to HCS12 ports? What are the conditions in terms of el
damaskus [11]

Answer:

The condition is true  when their voltage and current specifications with their impedance are matched or complementary to each other.

Explanation:

Solution

Yes it is possible or true to interface an IC with a different technology like the TTL to HCS12 ports. but the condition is that their current and voltage specifications should be matched and their impedance and power also should be matched.

What this implies is that both their voltage and current requirements should be complementary to each other so as their impedance.

6 0
3 years ago
A __________ defines the area of land that will supply water to a stream.
Vikentia [17]

Answer:

drainage basin

Explanation:

8 0
3 years ago
4.68 Steam enters a turbine in a vapor power plant operating at steady state at 560°C, 80 bar, and exits as a saturated vapor at
garik1379 [7]

Answer:

please mark me as a brainleast

Explanation:

hahahahhahaahhahahahahahahahahahahahahahahahaahhhahhhahaahahhaahhhahahaah

3 0
3 years ago
In highways the far left lane is usually the _____
Ivan
Fastest


(Known as the fast lane)
8 0
3 years ago
Read 2 more answers
For some transformation having kinetics that obey the Avrami equation, the parameter n is known to have a value of 2. If, after
kotegsom [21]

This question is incomplete, the complete question is;

For some transformation having kinetics that obey the Avrami equation, the parameter n is known to have a value of 2. If, after 100 s, the reaction is 40% complete, how long (total time in seconds) will it take the transformation to go to 95% completion

y = 1 - exp( -ktⁿ )

Answer: the time required for 95% transformation is 242.17 s

Explanation:

First, we calculate the value of k which is the dependent variable in Avrami equation

y = 1 - exp( -ktⁿ )

exp( -ktⁿ ) = 1 - y

-ktⁿ = In( 1 - y )

k = - In( 1 - y ) / tⁿ

now given that; n = 2, y = 40% = 0.40, and t = 100 s

we substitute

k = - In( 1 - 0.40 ) / 100²

k = - In(0.60) / 10000

k = 0.5108 / 10000

k = 0.00005108 ≈ 5.108 × 10⁻⁵

Now calculate the time required for 95% transformation

tⁿ = - In( 1 - y ) / k

t = [- In( 1 - y ) / k ]^1/n

n = 2, y = 95% = 0.95 and k = 5.108 × 10⁻⁵

we substitute our values

t = [- In( 1 - 0.95 ) / 5.108 × 10⁻⁵ ]^1/2

t = [2.9957 / 5.108 × 10⁻⁵]^1/2

t = [ 58647.22 ]^1/2

t = 242.17 s

Therefore the time required for 95% transformation is 242.17 s

8 0
3 years ago
Other questions:
  • Explicar el funcionamiento de un multímetro analógico.
    7·1 answer
  • You read a research study that concludes that the higher a student's self-esteem, the better he performs in school. This sort of
    5·1 answer
  • If you know that the change in entropy of a system where heat was added is 12 J/K, and that the temperature of the system is 250
    10·1 answer
  • The voltage across a device and the current through it are:
    9·2 answers
  • A worker standing on a freshly mopped floor is
    7·1 answer
  • A Carnot engine has a piston displacement volume of 7.5 liters. The volume at the beginning of heat addition is 1.0 liters, the
    14·1 answer
  • calculate the magnitude of the force acting on the pin at D. Pin C is fixed in DE and bears against the smooth slot in the trian
    9·1 answer
  • 4 main causes of erosion
    12·1 answer
  • WILL MARK BRAINLIST I need help on this asap thanks
    15·1 answer
  • A wheel spins at a constant angular speed of 24rad/s.How many revolutions will the dosk go through in 5minutes?​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!