Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Business P5.23 Write a program that prints a paycheck. Ask the program user for

ID: 3919124 • Letter: B

Question

Business P5.23 Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid "time and a half", that is, 150 percent of the hourly rate on the hours exceeding 40. Your check should look similar to that in the fig- ure below. Use fictitious names for the payer and the bank. Be sure to use stepwise refinement and break your solution into several functions. Use the intName function to print the dollar amount of the check WILEY-.... Publaber Bank Mn..o. MMBER 063331 ?sers Jonevilie MN 55400 Amount PAY 4659484 9/16 S274.15 TWO HUNDRED SEVENTY FOUR AND 15/100* TO THE ORDER OF JOHN DOE 1009 Frankin Blvd Sunnyvale, CA 95014 ':47aboa 24,01: 200620375- baai

Explanation / Answer

Here is the sample code:

user = str

end= False

workinghours= round (40,2)

print("This is Chegg Expert! Here's your code below: " )

while end == False:

user = input (" Please enter your name or type 'o' to exit : ")

if user == "0":

print("End of process") break

else:

wage=(float(input(" How much do you earn or make per hour : ? ",) ))

if workinghours<=40:

print ("Employee Name: ", user)

print("Overtime hours: 0")

print("Overtime pay: $0.00")

regularpay=round(workinghours * wage , 2)

print("Gross pay: ", regularpay)

elif workinghours> 40:

overtimehours=round(workinghours - 40.00,2)

print("Overtime hours: " overtimehours)

print("Employee name: ", user)

regularpay=round(workinghours * wage ,2)

overtimerate=round(wage *1.5,2)

overtimepay=round(overtimehours * overtimerate)

grosspay = round(regularpay + overtimepay , 2)

print("Regular pay: ", $(:0, .2f}.format(regularpay))

print("Overtime pay: ", $(:0, .2f}.format(overtimepay))

print("Gross pay: ", $(:0, .2f}.format(grosspay))

Hope this solution of mine works for you....feel free to revert if you need any more assistance on this. :) Happy Coding!