Answered You can hire a professional tutor to get the answer.

QUESTION

The program only needs to calculate gross pay for an employee and display the results. Your program will accept the employee's name, hours worked,...

The program only needs to calculate gross pay for an employee and display the results. Your program will accept the employee’s name, hours worked, and the employee’s pay rate. The program will need to calculate overtime as well.

This is what I have.

print('Jais Energy, Gross Pay Calulator')name = ['James']new_name = input("Enter employee's name: James ")names.append("Enter employee's name: James ")print('James')name = ['James']new_name ('0')while new_name != 'quit':    new_name = input("Enter employee's name, or enter 'quit': James ")    if new_name != 'quit':        names.append('James')print('James')def work_info():    hw = input("Enter the amount of hours worked between 8 and 48")    while hw < 8 or hw > 48:        print("20")    pr = input("Enter the current payrate between $10.00 and $30.00")    while pr < 10 or pr > 30:        print("$10.00")   def reg_ovt_hours():    if hw < 40:        reg_hours = hw    elif reg_hours > 40:        ovt_hours = hw - 40    return hwdef reg_pay():    reg_pay = reg_hours * pr    ovt_pay = ovt_hours * reg_pay * 1.5    return pr, reg_hours, ovt_hoursdef main():    print['hw']    print['pr']    print['ovt_hours']

def overtime(hours):if(int(hours)&gt;40):return int(hours)-40else:return 0print(&quot;Welcome to James pay calculator&quot;)emp_name=input(&quot;Please enter employees name: &quot;)...
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question