Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

rite a C program to create a payroll report based on the following assumptions and requirements A company called D on hourly base, any employee

image text in transcribed

rite a C program to create a payroll report based on the following assumptions and requirements A company called D on hourly base, any employee who works over than 40 hours is entitled to be paid overtime (1.5 for every hour exceeding 40), ata Housing Corp. employs several employees, all employees are paid Calculate: 1. The Gross income: Gross income = (Rate * hours worked) + over time. 2. The Overtime: Overtime number of hours exceeding 40 Rate 1.5 3. State Tax: State Tax-gross . 690 4. Federal Tax: fed Tax-Gross * 12% Union fees: Net: Total Gross for all employees Average Gross for all employees. Union fees Net-Gross-(state tax + fed tax + Union fees). Gross . 2% 6. 7. 8. Directions: MUST USE: a) b) ARRAYS Typedef (for string data types) DO NOT USE functions Your input consists of Employee First Name, Middle Initial, Last name, Hours worked, Rate per Hour State tax, Fed tax and Union fees are constants. Your FORMATTED Output includes all input information and all calculated information such as (gross, net. etc.) . Apply (whatever is applicable): Loops, constants, data validation, if, else, switch, arrays, . . precision . Input validation (hours greater than 0 and less than 60, rate greater than 0 and less than50) . Document your program (add comments) . Submit . The source code program and the output . The output in the following format: Data Housing Corp. Weekly Payroll Last name Rate per hour Hours worked Smith $10.99 First Name MI oc 40

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_2

Step: 3

blur-text-image_3

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

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

Prepare a short profile of Henry words worth Longfellow?

Answered: 1 week ago

Question

What is RAM as far as telecommunication is concerned?

Answered: 1 week ago

Question

Question 1: What is reproductive system? Question 2: What is Semen?

Answered: 1 week ago

Question

Describe the sources of long term financing.

Answered: 1 week ago

Question

=+ Are unions company-wide, regional, or national?

Answered: 1 week ago

Question

=+j Explain the litigation risks in international labor relations.

Answered: 1 week ago