Question

In: Computer Science

An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular...

An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular hours plus any overtime pay. Overtime pay equals the total overtime hours multiplied by 1.5 times the hourly wage. Write a python program that takes as input the hourly wage, total regular hours, and total overtime hours and displays an employee’s total weekly pay.

The script must start with comments about the author, assignment and submission date. Save the script using the following naming convention: Name_SID_Assignment#.py. Please submit pseudocode, flow chart and screenshot of the output.

Solutions

Expert Solution

Answer: Hey! Kindly find your solution here. This program is working well, output screenshot attached. If you have any queries, feel free to ask me. Thanks

Python program

print("Enter the hourly wage")                    #print this text on screen

hourlywage = float(input())                          #takes input for hourly wage

print("Enter regular hours:")                        #print this text on screen

regularHours = int(input())                            #takes input for regular hours

print("Enter overtime hours: ")                    #print this on screen

overtimeHours = int(input())                         #takes input overtime hours

weekPay = hourlywage * regularHours     #calculate weekpay for regular hours

overtimePay = overtimeHours * 1.5 * hourlywage               #calculate overtime pay

weekPay = weekPay + overtimePay                          #add overtime pay into weekpay

print("Total week pay: $" + str(weekPay)) #display week pay

Pseudocode-

Function Main

    Declare Real hourlywage, weekPay, overtimePay

    Declare Integer overtimeHours, regularHours

   

    Output "Enter the hourly wage"

    Input hourlywage

    Output "Enter regular hours:"

    Input regularHours

    Output "Enter overtime hours: "

    Input overtimeHours

    Assign weekPay = hourlywage*regularHours

    Assign overtimePay = overtimeHours*1.5*hourlywage

  Assign weekPay = weekPay+overtimePay

    Output "Total week pay: $"&weekPay

End


Related Solutions

- The average total cost of production a) equals total cost of production multiplied by the...
- The average total cost of production a) equals total cost of production multiplied by the level of output. b) equals total cost of production divided by the level of output. c) equals the explicit cost of production. d) is the extra cost required to produce one more unit. - The law of diminishing marginal returns a) ultimately explains why production displays diseconomies of scale. b) sets in because not all workers are equally productive c) applies only in the...
PSc 2-5 Determine Hourly Regular and Overtime Wage Rates Determine both the regular and overtime wage...
PSc 2-5 Determine Hourly Regular and Overtime Wage Rates Determine both the regular and overtime wage rates for each of the following employees. All are paid an overtime wage rate 1.5 times their respective regular wage rates. NOTE: For simplicity, all calculations throughout this exercise, both intermediate and final, should be rounded to two decimal places at each calculation. 1: Alice Rhoades earns a weekly wage of $1,200. During the most recent week, she worked 48 hours. Regular Wage Rate...
Margaret Strand’s regular hourly wage rate is $24, and she receives an hourly rate of $36...
Margaret Strand’s regular hourly wage rate is $24, and she receives an hourly rate of $36 for work in excess of 40 hours. During a January pay period, Margaret works 45 hours. Margaret’s federal income tax withholding is $91, and she has no voluntary deductions. Compute Margaret Strand’s gross earnings and net pay for the pay period. Assume that the FICA tax rate is 7.65%. (Round answers to 2 decimal places, e.g. 15.25.) Margaret’s gross earnings $ Margaret’s net pay...
Kimberly Strand’s regular hourly wage rate is $30, and she receives an hourly rate of $45...
Kimberly Strand’s regular hourly wage rate is $30, and she receives an hourly rate of $45 for work in excess of 40 hours. During a January pay period, Kimberly works 48 hours. Kimberly’s federal income tax withholding is $98.00, and she has no voluntary deductions. Assume that the FICA tax rate is 7.65%. Prepare the employer’s journal entries to record (a) Kimberly’s pay for the period and (b) the payment of Kimberly’s wages. Use January 15 for the end of...
3. Joy Lee’s regular hourly wage rate is $15, and she receives a wage of 2...
3. Joy Lee’s regular hourly wage rate is $15, and she receives a wage of 2 times the regular hourly rate for work in excess of 40 hours. During a June weekly pay period, Joy worked 50 hours. Joy’s federal income tax withholding is $90 and state income tax is $25 and FICA is 8%. Her only voluntary deduction is for retirement savings at $30 per week. Compute the following amounts for Joy’s wages for the current week. 1. Gross...
Maria Garza's regular hourly wage rate is $16, and she receives a wage of 1 1/2...
Maria Garza's regular hourly wage rate is $16, and she receives a wage of 1 1/2 times the regular hourly rate for work in excess of 40 hours. During a March weekly pay period, Maria worked 42 hours. Her gross earnings prior to the current week were $6,000. Maria is married and claims three withholding allowances. Her only voluntary deduction is for group hospitalization insurance at $25 per week. a. Compute the following amounts for Maria's wages for the current...
What is his hourly rate of pay if a regular workweek is 42 hours and overtime is paid at time-and-a-half the regular rate of pay?
A wage earner receives a gross pay of $699.93 for 52.5 hours of work. What is his hourly rate of pay if a regular workweek is 42 hours and overtime is paid at time-and-a-half the regular rate of pay?
A company is trying to decide to pay employees a fixed salary or an hourly wage....
A company is trying to decide to pay employees a fixed salary or an hourly wage. If the company decides to pay salaries, which statement is true? (2pts) Paying salaries would have no affect on fixed costs or the contribution margin. Salaries decrease the total fixed costs and the contribution margin would be lower. Salaries increase total fixed costs and the contribution margin would be higher. 2) A company is trying to decide to pay employees a fixed salary or...
Many universities pay their teaching assistants (TA) or associate instructors (AI) as weekly workers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the first 10 hours they work and “time-and-a-half”
Needs to be written in CMany universities pay their teaching assistants (TA) or associate instructors (AI) as weekly workers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the first 10 hours they work and “time-and-a-half”- i.e., 1.5 times their hourly wage - for overtime hours worked), commission workers (who receive $250 plus 7.1 times their gross weekly work hours), or pieceworkers (who receive a fixed amount of money for each of...
Beth Corbin’s regular hourly wage rate is $16, and she receives an hourly rate of $24 for work in excess of 40 hours.
Beth Corbin’s regular hourly wage rate is $16, and she receives an hourly rate of $24 for work in excess of 40 hours. During a January pay period, Beth works 45 hours. Beth’s federal income tax withholding is $95, she has no voluntary deductions, and the FICA tax rate is 7.65%. Compute Beth Corbin’s gross earnings and net pay for the pay period.    
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT