LoriU LoriU
  • 01-03-2021
  • Computers and Technology
contestada

Create a Python program to solve a simple pay calculation.

Respuesta :

josiaharnold24 josiaharnold24
  • 01-03-2021

Answer:

def weeklyPaid(hours_worked, wage):  

   if hours_worked > 40:  

       return 40 * wage + (hours_worked - 40) * wage * 1.5

   else:  

       return hours_worked * wage  

 

 

hours_worked = 50

wage = 100

 

pay = weeklyPaid(hours_worked, wage)  

 

print(f"Total gross pay: Rs.{pay:.2f} ")

Explanation:

provides gross pay

Answer Link

Otras preguntas

What does this paragraph connect to the world with?
When Raymond left for work at 6:30 a.m., the outside temperature was -5° F. If the outside temperature dropped steadily by d degrees each hour, which expression
y friends, I have been asked to show you my heart. I am glad to have a chance to do so. I want the white people to understand my people. Based on the tone of th
Isolate variable a in a given mathematical formula ax + by =c a =
here is the next math problem I need help with -7y^2-2y^2+y^3-3y-2y+5y^3-2y
sqrt(11) + 3 sqrt(11)
Calculate the Molarity of 15.4 g of sucrose (C12H22O11) in 74.0 mL of solution
3,000 + 128 + 350 + 4,038​
br.uh help!!!!!!!!! 2u+10=22+u
if ab=5 and a^2+b^2=25,then (atb)^2=​