Employees are paid time-and-a-half for any time worked over 40 hours in a week. For example,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Employees are paid time-and-a-half for any time worked over 40 hours in a week. For example, if your hourly wage is $10.00 and your worked 45 hours/week, then your overtime pay for the extra 5 hours would be ($10.00 / hour) x 5 hours x 1.5. Overtime pay is 0 if you work 40 hours or less per week. Write a C program wages.c with a void function weekly Pay (hours, hourly wage) that calculates the weekly pay based on hours work and hourly wage. Your function should display total pay before tax and after tax. Assume an income tax rate of 5.06%. Hint: See examples overtime.c, wages.c, wages2.c and wages3.c in the zipped files of unit 3. Here is a skeleton program /File: wages.c * Describe the purpose of this program blablabla #include #define STANDARD 40.0 #define TAX 5.06 void weekly Pay (double hours, double hourly wage) { // declaration } // check hours and computer pay accordingly //output gross pay, income tax and net pay int main(void) { } double hours, hourly wage; // declarations //prompt user to enter hours and hourly wage //call the void type function weekly Pay and pass to it the hours and hourly wage return 0; Sample output: Enter total hours:40 Enter hourly wage: 10 Gross pay before tax: $400.00 Income tax: $20.24 Net pay: $379.76 Enter total hours:45 Enter hourly wage:10 Gross pay before tax: $475.00 Income tax: $24.03 Net pay: $450.96 Employees are paid time-and-a-half for any time worked over 40 hours in a week. For example, if your hourly wage is $10.00 and your worked 45 hours/week, then your overtime pay for the extra 5 hours would be ($10.00 / hour) x 5 hours x 1.5. Overtime pay is 0 if you work 40 hours or less per week. Write a C program wages.c with a void function weekly Pay (hours, hourly wage) that calculates the weekly pay based on hours work and hourly wage. Your function should display total pay before tax and after tax. Assume an income tax rate of 5.06%. Hint: See examples overtime.c, wages.c, wages2.c and wages3.c in the zipped files of unit 3. Here is a skeleton program /File: wages.c * Describe the purpose of this program blablabla #include #define STANDARD 40.0 #define TAX 5.06 void weekly Pay (double hours, double hourly wage) { // declaration } // check hours and computer pay accordingly //output gross pay, income tax and net pay int main(void) { } double hours, hourly wage; // declarations //prompt user to enter hours and hourly wage //call the void type function weekly Pay and pass to it the hours and hourly wage return 0; Sample output: Enter total hours:40 Enter hourly wage: 10 Gross pay before tax: $400.00 Income tax: $20.24 Net pay: $379.76 Enter total hours:45 Enter hourly wage:10 Gross pay before tax: $475.00 Income tax: $24.03 Net pay: $450.96
Expert Answer:
Related Book For
Thomas Calculus Early Transcendentals
ISBN: 9780321884077
13th Edition
Authors: Joel R Hass, Christopher E Heil, Maurice D Weir
Posted Date:
Students also viewed these programming questions
-
pleas help me answer this question, thanks. Michael owns and manages a small business which sells organic beauty products to high street shops. Michael sells to the shops on credit at 30 days credit...
-
The first payroll in October covered the two workweeks that ended on September 26 and October 3. This payroll transaction has been entered for you in the payroll register, the employees' earnings...
-
1 Sandwich Shop Simulation Results 2 Element Element Overal 3 Types Names Statistics 4 Entrance(s) Door Objects entering process 48.43 5 6 7 8 Work Station(s) Order/Pay 9 10 Final status Objects...
-
1. Consider a local department store which only sells jeans (J) and sweaters (S). Jeans cost $20 and sweaters cost $30. For each of the examples below, graph the budget constraint our consumer faces,...
-
The Annapolis Rotary Club sells hot dogs for $1.95 each at the annual Annapolis Fall Fair. The Rotary Club buys wieners at $3.95 per package of 10 wieners, and hot dog buns at $2.90 per dozen. It...
-
The trial balance of Vail Co. does not balance. Each of the listed accounts should have a normal balance per the general ledger. An examination of the ledger and journal reveals the following errors....
-
How do professional organizations emphasize group identity for healthcare professionals?
-
This problem continues the Draper Consulting, Inc., situation from Problem 6-45 of Chapter 6. Draper performs systems consulting. Draper's February Cash from its general ledger is as follows:...
-
Exercise 1 0 - 1 0 ( Algo ) Keep or replace LO P 5 Lopez Company is considering replacing one of its old manufacturing machines. The old machine has a book value of $ 4 7 , 0 0 0 and a remaining...
-
The machining department of Wildhorse Manufacturing had a busy year! Management evaluated the stage of completion of ending WIP Inventory and recorded the following in Step 1 of its process costing...
-
Most organizations use budget control as the primary means of corporate internal controls, it provides a comprehensive management platform for efficient and effective allocation of resources....
-
13. Find the first 3 powers of the transition matrix. Then determine the probability that state 1 changes to state 2 after 3 repetitions of the experiment. Current Next repetition: State 1 State 1...
-
Suppose that Greensboro Development Corp. (GDC) defaults on a $30,000 loan from FCB, meaning that this loan is written off (valued at $0). Show in T-account how FCB writes off the defaulted loan to...
-
Discuss leader's perspective on financial management connecting with course concepts, include citations. Reflect on what you learned, connecting with course concepts. I recommend a paragraph...
-
Leela and Nansingh were married for 20 years before they separated this year. As part of the separation agreement, Nansingh transferred 2 stocks with a fair market value of $100,000 and acb of...
-
. Allocating Joint Costs Using the Weighted Average Method Sunny Lane, Inc., purchases peaches from local orchards and sorts them into four categories. Grade A are large blemish-free peaches that...
-
Before the latest financial crisis and recession, when was the largest recession of the past 50 years, and what was the cumulative loss in output over the course of the slowdown?
-
Why may a focus on operating revenue be preferable to a focus on total revenue?
-
Which approach do you think is best for valuing a business: the DCF approach or the market multiple approach? Explain the rationale behind your answer. p7
-
Why is EVA a better measure of financial performance than are accounting measures such as net income or earnings per share?
Study smarter with the SolutionInn App