Write a single function that takes the hours worked, and hourly rate of pay and returns...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a single function that takes the hours worked, and hourly rate of pay and returns the amount of regular pay, and overtime pay. Assume that all federal labor laws and rules apply. If you do not know these laws and rules then research them. If an employee works more than 40 hours then the employee gets paid 1.5 or time and a half for all work above 40 hours. Write a single function that calculates a deduction for Federal Income Taxes. You can assume all employees pay 28% of their income to the Federal government Federal Taxes equals the gross pay times the Federal Tax Rate Write a single function that calculates a deduction for Social Security Taxes. You can assume all employees pay 7.5% of their income towards Social Security Taxes. Social Security Taxes equals the gross pay times the Social Security Tax Rate Write a single function that calculates the net pay for the employee. Net Pay equals the gross pay minus the taxes. Write a single function that outputs the paycheck stub for the employee. Sample PayCheck Stub Hourly Rate: Hours Worked: Regular Pay: OT Pay: Gross Pay: Federal Tax: Soc Sec Tax: Net Pay: $10.00 41.0 $400.00 $15.00 $415.00 $116.20 $31.13 $267.67 Write a single function that takes the hours worked, and hourly rate of pay and returns the amount of regular pay, and overtime pay. Assume that all federal labor laws and rules apply. If you do not know these laws and rules then research them. If an employee works more than 40 hours then the employee gets paid 1.5 or time and a half for all work above 40 hours. Write a single function that calculates a deduction for Federal Income Taxes. You can assume all employees pay 28% of their income to the Federal government Federal Taxes equals the gross pay times the Federal Tax Rate Write a single function that calculates a deduction for Social Security Taxes. You can assume all employees pay 7.5% of their income towards Social Security Taxes. Social Security Taxes equals the gross pay times the Social Security Tax Rate Write a single function that calculates the net pay for the employee. Net Pay equals the gross pay minus the taxes. Write a single function that outputs the paycheck stub for the employee. Sample PayCheck Stub Hourly Rate: Hours Worked: Regular Pay: OT Pay: Gross Pay: Federal Tax: Soc Sec Tax: Net Pay: $10.00 41.0 $400.00 $15.00 $415.00 $116.20 $31.13 $267.67
Expert Answer:
Answer rating: 100% (QA)
1def calculatepayhoursworked hourlyrate if hoursworked 40 regularhours 40 overtimehours ... View the full answer
Related Book For
Posted Date:
Students also viewed these law questions
-
Emils son Kaffir suffers from a rare illness. During the last six months of 2018, Emil drove Kaffir to a specialist in another state 15 times. Each trip was 314.5 miles each way and required an...
-
SLS MACHINERY CO. LTD. (SLS) is engaged in the manufacture of specialized machinery. The company has been asked to provide a quotation for building a machine for a large textile industrial unit. SLSs...
-
Suppose that you purchase an investment at a price of $456. If this investment provides a cash benefit of $850 at the end of five years and the interest rate is compounded monthly, find the yield to...
-
DTG agreed to merge with the SPQ. The total equity purchase price of $45,000 is going to be 50% financed issuing DTGs common shares and 50% financed with cash raised by DTG issuing long-term debt....
-
A well-known charity is interested in conducting a television campaign to solicit contributions. The campaign will be conducted in two metropolitan areas. Past experience indicates that, in each...
-
Consider two estimators for the probability, \(p\), that a tossed coin will land on "heads", based on a iid random sample of size \(n\) from whatever Bernoulli distribution governs the probability of...
-
The balance sheets for Red Oak Inc. and Birch Co. reflect the following: Required Calculate the following ratios and comment on the results. a. Current ratio b. Quick ratio Red Oak Birch Current...
-
Fallon Company uses flexible budgets to control its selling expenses. Monthly sales are expected to range from $170,000 to $200,000. Variable costs and their percentage relationship to sales are...
-
A company invests $40,000 in a project with the following net cash flows: Year 1: $3,000 Year 2: $8,000 Year 3: $14,000 Year 4: $19,000 Year 5: $22,000 Year 6: $28,000 In what year does payback...
-
Complete the 2019 federal income tax return for Sarah Hamblin. Be sure to include only required tax forms when completing the tax return. For purposes of this assignment, unless instructed otherwise,...
-
Given a situation where a control chart with 3-sigma limits is being constructed to monitor the percentage of defective items produced by a process, if samples of 100 units each are taken from the...
-
The question that this paper lacks is - what do want I address in this paper? The most important aspect of research is the ability to ask meaningful questions. It is essential for researchers to be...
-
ABC purchases a piece of equipment of January 1, 2016. The cost of the equipment is $46,000. The company expects to use the equipment for 6 years and that the salvage value at the end of 6 years will...
-
Research various types of stereotyping such as racial, ethnic, religious, and gender. Based on your research and understanding, respond to the following: How will you conduct the investigation? What...
-
The life of a highly paid professional athlete would seem to be all positive, but evidence shows that many elite athletes are exposed to a range of workplace stressors that are both similar to and...
-
Sometimes we have incomplete information, or we make mistakes. Often people follow a set approach because they are afraid of trial and error. Part of critical thinking involves looking at opposing...
-
Question #9 [10 pts] A fruit grower wants to test a new spray that a manufacturer claims will reduce the loss due to insect damage. To test the claim, the grower sprays 200 trees with the new spray...
-
The Alert Company is a closely held investment-services group that has been very successful over the past five years, consistently providing most members of the top management group with 50% bonuses....
-
How are product costs determined in an activity-based costing system?
-
What is a mixed cost? If the activity level increases, what happens to the total cost incurred? Give three examples of a mixed cost.
-
If a product has a positive segment margin but isnt as profitable as other products, what should managers do?
-
Joytan Ltd has a trading profit, before dealing with any of the undermentioned items, for the year ended 31 December 2004 of 500,000. Prepare the profit and loss account for the year. (a) The...
-
The following information relates to Kemp plc for the year to 31 March 2009: Required: Write up the following accounts for the year to 31 March 2009, being careful to insert the appropriate date for...
-
The following figures appeared in W Ltds balance sheet at 31 March 2002: During the year ended 31 March 2003, W Ltd made a payment of 520,000 to the Collector of Taxes in settlement of the companys...
Study smarter with the SolutionInn App