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
Block D of the mechanism is confined to move within the slot of member CB. Link AD is rotating at a constant rate of ωAD = 6 rad
svet-max [94.6K]

Answer:

1) 1.71 rad/s

2) -6.22 rad/s²

Explanation:

Choose point C to be the origin.

Using geometry, we can show that the coordinates of point A are:

(a cos 30°, a sin 30° − b)

Therefore, the coordinates of point D at time t are:

(a cos 30° − b sin(ωt), a sin 30° − b + b cos(ωt))

The angle formed by CB with the x-axis is therefore:

tan θ = (a sin 30° − b + b cos(ωt)) / (a cos 30° − b sin(ωt))

1) Taking the derivative with respect to time, we can find the angular velocity:

sec² θ dθ/dt = [(a cos 30° − b sin(ωt)) (-bω sin(ωt)) − (a sin 30° − b + b cos(ωt)) (-bω cos(ωt))] / (a cos 30° − b sin(ωt))²

sec² θ dθ/dt = -bω [(a cos 30° − b sin(ωt)) sin(ωt) − (a sin 30° − b + b cos(ωt)) cos(ωt)] / (a cos 30° − b sin(ωt))²

sec² θ dθ/dt = -bω [(a cos 30° sin(ωt) − b sin²(ωt)) − (a sin 30° cos(ωt) − b + b cos²(ωt))] / (a cos 30° − b sin(ωt))²

sec² θ dθ/dt = -bω (a cos 30° sin(ωt) − b sin²(ωt) − a sin 30° cos(ωt) + b − b cos²(ωt)) / (a cos 30° − b sin(ωt))²

sec² θ dθ/dt = -bω (a cos 30° sin(ωt) − a sin 30° cos(ωt)) / (a cos 30° − b sin(ωt))²

sec² θ dθ/dt = -abω (cos 30° sin(ωt) − sin 30° cos(ωt)) / (a cos 30° − b sin(ωt))²

We know at the moment shown, a = 350 mm, b = 200 mm, θ = 30°, ω = 6 rad/s, and t = 0 s.

sec² 30° dθ/dt = -(350) (200) (6) (cos 30° sin(0) − sin 30° cos(0)) / (350 cos 30° − 200 sin(0))²

sec² 30° dθ/dt = -(350) (200) (6) (-sin 30°) / (350 cos 30°)²

dθ/dt = (200) (6) (1/2) / 350

dθ/dt = 600 / 350

dθ/dt = 1.71 rad/s

2) Taking the second derivative of θ with respect to time, we can find the angular acceleration.

sec² θ d²θ/dt² + 2 sec² θ tan θ dθ/dt = -abω [(a cos 30° − b sin(ωt))² (ω cos 30° cos(ωt) + ω sin 30° sin(ωt)) − (cos 30° sin(ωt) − sin 30° cos(ωt)) (2 (a cos 30° − b sin(ωt)) (-bω cos(ωt)))] / (a cos 30° − b sin(ωt))⁴

At t = 0:

sec² θ d²θ/dt² + 2 sec² θ tan θ dθ/dt = -abω [(a cos 30°)² (ω cos 30°) − (0 − sin 30°) (2 (a cos 30°) (-bω))] / (a cos 30°)⁴

sec² θ d²θ/dt² + 2 sec² θ tan θ dθ/dt = -abω (a²ω cos³ 30° − 2abω sin 30° cos 30°) / (a⁴ cos⁴ 30°)

sec² θ d²θ/dt² + 2 sec² θ tan θ dθ/dt = -bω (aω cos² 30° − 2bω sin 30°) / (a² cos³ 30°)

d²θ/dt² + 2 tan θ dθ/dt = -bω² (a cos² 30° − b) / (a² cos 30°)

Plugging in values:

d²θ/dt² + 2 tan 30° dθ/dt = -(200) (6)² (350 cos² 30° − 200) / (350² cos 30°)

d²θ/dt² + 2 tan 30° dθ/dt = -7200 (262.5 − 200) / (350² cos 30°)

d²θ/dt² + 2 tan 30° (1.71) = -4.24

d²θ/dt² = -6.22 rad/s²

4 0
3 years ago
The southernmost rim inlet elevation on the topographical survey is
Lynna [10]

The southernmost rim inlet elevation on the topographical survey is approximately 4.5 feet below the benchmark on the north side of West 55th Street.

What is topographical survey?

A topographical survey, often known as a land survey or topographical land survey, is a type of survey that includes contours. Topographical land surveying determines the exact location and specifications of natural and man-made features on a piece of land. The survey is then turned into a suitable and thorough plan, which incorporates man-made characteristics such as boundaries, neighbouring buildings, sidewalks, and so on. Natural elements such as trees, ponds, and ground contours are also detected by the topographical survey. Having a clear and accurate map of your property might help you avoid costly downstream mistakes caused by unforeseen challenges. It can supply you with the information you need about the land before making any alterations to it.

To learn more about topographical survey

brainly.com/question/14529986

#SPJ13

6 0
1 year ago
A gas mixture containing 3 moles CO2, 5 moles H2 and 1 mole water is undergoing the following reactions CO2+3H2 →cH3OH + H2O Dev
Ilya [14]
Aaaaaaaaaaaaaaaaaaaaaa
7 0
2 years ago
Evan notices a small fire in his workplace. Since the fire is small and the atmosphere is not smoky he decides to fight the fire
Norma-Jean [14]

Answer:

not calling the firemean

Explanation:

7 0
3 years ago
The air in a room has a pressure of 1 atm, a dry-bulb temperature of 24C, and a wet-bulb temperature of 17C. Using the psychrome
TEA [102]

Answer:

(a) Relative Humidity = 48%,

Specific humidity = 0.0095

(b) Enthalpy = 65 KJ/Kg of dry sir

Specific volume = 0.86 m^3/Kg of dry air

(c/d) 12.78 degree C

(e) Specific volume = 0.86 m^3/Kg of dry air

8 0
3 years ago
Other questions:
  • 11 Notează, în caiet, trăsăturile personajelor ce se pot
    13·1 answer
  • How an AK 47 gun was works​
    14·1 answer
  • What are the two safety precautions taken before driving a car​
    12·1 answer
  • Compute the estimated actual endurance limit for SAE 4130 WQT 1300 steel bar with a rectangular cross section of 20.0 mm by 60 m
    11·1 answer
  • A long corridor has a single light bulb and two doors with light switch at each door.
    12·1 answer
  • Hi I have a question!! Please answer it ASAP, tysm!
    13·1 answer
  • Complete the sentence to identify a useful advance in the culinary arts.
    8·1 answer
  • Why it is important to prepare first the materials and tools carpentry before doing the tasks?​
    6·2 answers
  • A sprinter reaches his maximum speed in 2.5sec from rest with constant acceleration. He then maintains that speed and finishes t
    15·1 answer
  • Derive the expression ε=ln(1+e), where ε is the true strain and e is the engineering strain. Note that this expression is not va
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!