Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a c++ program to create a payroll based on these assumptions and requirements: A company called Data Housing Corp. employs a number of employees

Write a c++ program to create a payroll based on these assumptions and requirements:

A company called Data Housing Corp. employs a number of employees (say 5) all employees are paid on hourly base, any employee who works more than 40 hours is entitled to be paid overtime (1.5 for every hour exceeding 40).

Calculate : 1. The Gross income=(Rate*hours worked )+ overtime 2. The overtime= No. of hours exceeding 40 * Rate *1.5 3. State tax= gross*6% 4.Federal tax=gross*12% 5. Union fees= gross*2% 6. Net= Gross-(State Tax+Federal tax +Union fees) 7. Total Gross for all employees. 8. Average gross

Directions:

MUST USE:

a) Arrays

b) MUST 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 constansts

-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 than 50)

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

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

What is meant by marking a position to market?

Answered: 1 week ago