Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone please help me with program 3? Thank you Program 2: You need a program to maintain information about your employees' payroll. Assume that

image text in transcribedCan someone please help me with program 3? Thank you

Program 2: You need a program to maintain information about your employees' payroll. Assume that you have the following employees Name Hours Worked State Tax Rate Hourly Rate Federal Tax Rate $55.16 19.7% $49.77 16.3% 6.8% 9.88% Durant, Steph Curry, Kevin Green, Clay Thompson, Draymond 42.5 38.75 24.3 54.35 $49.99 $66.66 16.7% 20.5% 6.95% 8.53% Write a C program that will perform the following tasks: Task 1: Allow the user to enter in the data for each employee. (The user will not enter the 5 or % symbols.) Task 2: For each employee, calculate the gross pay, the federal tax owed, the state tax owed, and the net pay. The formulas to use are as follows: gross pay = hours worked * hourly rate (do not worry about overtime pay for this program.) federal tax owed = gross pay * federal tax rate / 100 state tax owed = gross pay* state tax rate / 100 net pay = gross pay - federal tax owed-state tax owed Task 3: Print out the name for each employee followed by the results of your four calculations from Task 2. Task 4: Calculate and print the total gross pay, the total federal tax owed, the total state tax owed, and the total net pay for all four of the employees. Please make sure that you only use one set of variable names for this program. For example, for the Hours Worked, do not use variable names such as hw1, hw2, hw3, hw4. Use only the variable name hw for each of the Hours Worked. Program 3: Rewrite Program 2 by paying overtime hours at time and a half. For example, if an employee's hourly rate is $20 then the first 40 hours should be paid at an hourly rate of $20 per hour and any hours over 40 should be paid at $30 per hour. Also, print out the total of the overtime paid and the total number of overtime hours for the four employees. (That is, total up the overtime pay and number of overtime hours for the employees who worked above 40 hours.) In addition, find and print the number of employees who did work overtime. (For the data given, 2 employees worked overtime, that is over 40 hours.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

Ray's pool can hold 3,750hL. What is this volume is L

Answered: 1 week ago

Question

What is dividend payout ratio ?

Answered: 1 week ago

Question

Explain the factors affecting dividend policy in detail.

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago