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
Going green means: increasing one's initiatives toward a concern for the environment. increasing one's bottom line, before any o
Tcecarenko [31]

Answer:

Going green means increasing one's initiatives toward a concern for the environment.

Explanation:

Going green involves all the knowledge and practices that can lead to more environmentally friendly and ecologically responsible decisions and lifestyles, which would protect and sustain the natural resources present in the environment for both present and future generations.

8 0
4 years ago
A labor-intensive process to manufacture a product has a fixed cost of $338,000 and a variable cost of $143 per unit. An automat
ozzi

Answer:

no of unit is 17941

Explanation:

given data

fixed cost = $338,000

variable cost = $143 per unit

fixed cost = $1,244,000  

variable cost = $92.50 per unit

solution

we consider here no of unit is = n

so here total cost of labor will be sum of fix and variable cost i.e

total cost of labor = $33800 + $143 n  ..........1

and

total cost of capital intensive  = $1,244,000 + $92.5 n   ..........2

so here in both we prefer cost of capital if cost of capital intensive less than cost of labor

$1,244,000 + $92.5 n  <  $33800 + $143 n

solve we get

n > \frac{906000}{50.5}

n > 17941

and

cost of producing less than selling cost so here

$1,244,000 + $92.5 n < 197 n

solve it we get

n > \frac{1244000}{104.5}  

n > 11904

so in both we get greatest no is 17941

so no of unit is 17941

3 0
3 years ago
A 4-pole, 3-phase induction motor operates from a supply whose frequency is 60 Hz. calculate: 1- the speed at which the magnetic
DiKsa [7]

Answer:

The answer is below

Explanation:

1) The synchronous speed of an induction motor is the speed of the magnetic field of the stator. It is given by:

n_s=\frac{120f_s}{p}\\ Where\ p\ is \ the \ number\ of\ machine\ pole, f_s\ is\ the\ supply \ frequency\\and\ n_s\ is \ the \ synchronous\ speed(speed \ of\ stator\ magnetic \ field)\\Given: f_s=60\ Hz, p=4. Therefore\\\\n_s=\frac{120*60}{4}=1800\ rpm

2) The speed of the rotor is the motor speed. The slip is given by:

Slip=\frac{n_s-n_m}{n_s}. \\ n_m\ is\ the \ motor\ speed(rotor\ speed)\\Slip = 0.05, n_s= 1800\ rpm\\ \\0.05=\frac{1800-n_m}{1800}\\\\ 1800-n_m=90\\\\n_m=1800-90=1710\ rpm

3) The frequency of the rotor is given as:

f_r=slip*f_s\\f_r=0.04*60=2.4\ Hz

4) At standstill, the speed of the motor is 0, therefore the slip is 1.

The frequency of the rotor is given as:

f_r=slip*f_s\\f_r=1*60=60\ Hz

6 0
4 years ago
2. What is the Function of the Camshaft in an Internal Combustion Engine?
mamaluj [8]

Answer:

camshaft, in internal-combustion engines, rotating shaft with attached disks of irregular shape (the cams), which actuate the intake and exhaust valves of the cylinders.

Explanation:

I'm taking an engineering/tech class. I hope this helps! :)

8 0
3 years ago
It has a piece of 1045 steel with the following dimensions, length of 80 cm, width of 30 cm, and a height of 15 cm. In this piec
Serggg [28]

Answer:

material remove in 3 min is 16790.4 mm³/s

Explanation:

given data

length L = 80 cm = 800 mm

width W = 30 cm

height H = 15 cm

make grove length = 80 cm

width = 8 cm

depth = 10 cm

mill toll diameter = 4 mm

axial cutting depth = 20 mm

to find out

How much material removed in 3 minutes

solution

first we find time taken for length of advance that is

time = \frac{length}{advance}

here advance is given as 0.001166 mts / sec

so  time = \frac{800}}{0.001166*1000}

time = 686.106 seconds

now we find material remove rate that is

remove rate = mill toll rate × axial cutting depth × advance

remove rate = 4 × 20×0.001166 ×1000

remove rate = 93.28 mm³/s

so

material remove in 3 minute = 3 × 60 = 180 sec

so material remove in 3 min = 180 × 93.28

material remove in 3 min is 16790.4 mm³/s

7 0
3 years ago
Other questions:
  • What should the resistance value be on a size 5 motor starter coil
    14·1 answer
  • Give a reason why fighter aircraft use mid-wing design.
    11·1 answer
  • Ear "popping" is an unpleasant phenomenon sometimes experienced when a change in pressure occurs, for example in a
    12·1 answer
  • Three possible career opportunities in embedded systems engineering
    11·1 answer
  • How does java achieve portable
    13·1 answer
  • Who is???????????????????
    13·1 answer
  • Can someone tell me what car, year, and model this is please
    15·2 answers
  • How do you get your drivers lisnes when your 15
    8·1 answer
  • Accidents occur as a result of ____ and ____.
    7·1 answer
  • 1. Band saw lower wheel does not require a guard * true or false 2. Band saw upper guide should be adjusted to within 1/8" of th
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!