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
-
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. 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,...
-
Just Desserts buys cheesecakes from General Bakeries at $33.60 per cheesecake. It then cuts each cheesecake into 16 slices and sells them to customers at $6.50 per slice. Calculate the rate of markup...
-
A company currently has assets of $5 million. The firm is 100 percent equity financed. The company currently has net income of $1 million, and it pays out 40 percent of its net income as dividends....
-
Explain how schemata help us to understand why genetic algorithms work. What does the schema theorem tell us?
-
The following facts pertain to a noncancelable lease agreement between Lennox Leasing Company and Gill Company, a lessee. Inception date: .................. May 1, 2012 Annual lease payment due at...
-
Fredrick is an Australian resident and have recently purchased an established home in SA for a purchase price of $550,000, settlement date being 31st July 2022. They are the first home buyers and...
-
From January 2020 as CoViD-19 began to spread around the world, it became apparent that it may affect many businesses. Consider the context of online gaming and e-sports. The industry has seen a...
-
Identify 2 tools used for backup purposes that would support business continuity to ensure that the data can be accessed during the disaster. Explain who is responsible for the backup. How often...
-
The video about sign language demonstrated: A . Most sign languages are very similar. B . All sign languages use the same gesture for the word "what". C . English - speaking countries use the same...
-
Trying to break an encryption key by trying every possible combination of characters is called what? 1 point A social engineering attack A brute force attack A rainbow table attack A known cyphertext...
-
What two different types of firmware may be used on motherboards? a. POST b. UEFI c. CMOS d. BIOS
-
Try replacing Batch Normalization with SELU, and make the necessary adjustments to ensure the network self - normalizes ( i . e . , standardize the input features, use LeCun normal initialization,...
-
Write a paper on research and design a human resources succession plan for a health care organization. Support, work should be supported with at least 4 academic or professional peer-reviewed sources...
-
A company pledges their receivables so they may Multiple Choice Charge a factoring fee. Increase sales. Recognize a sale. Collect a pledge fee. Borrow money. Failure by a promissory notes' maker to...
-
(a) Among 880 smart phones sold by a retailer, 72 required repairs under the warranty. Estimate the probability that a new phone, which has just been sold, will require repairs under the warranty....
-
A car rental agency has 19 compact cars and 12 intermediate-size cars. If four of the cars are randomly selected for a safety check, what is the probability of getting two of each kind?
-
With reference to Exercise 3.34, suppose that the questionnaire filled in by one of the 150 persons is to be double-checked. If it is chosen in such a way that each questionnaire has a probability of...
Study smarter with the SolutionInn App