Question: Using Arrays, write a C++ program to calculate the Gross, Tax, Net for 10 employees. Assuming: The input is First Name, Middle Initial, Last Name,

Using Arrays, write a C++ program to calculate the Gross, Tax, Net for 10 employees.

Assuming:

The input is First Name, Middle Initial, Last Name, Id number, Hours worked, Rate per Hour.

constant state tax percentage 7%, Fed tax percentage 15%

hours worked must be between 0 and 60 hours

Rate per hour must be between $15.00 and $35.00

Gross calculations:

If hours worked are 0 to 40 (Gross= Hours worked * Rate per Hour)

If hours greater than 40 (Gross= 40 * Rate per Hour + ( Hours worked - 40 )* Rate per Hour hours * 1.5))

State Tax = Gross * State Tax percentage

Fed Tax = Gross * Fed Tax percentage

Net = Gross - (State Tax + Fed Tax)

calculate the total gross and the gross average (need an accumulator)

average = total gross / number of employees (SIZE)

Output:

Display: MUST BE FORMATTED and as a table

Last Name First Name MI Id# Rate Per Hour Hours Worked State Tax Fed tax Gross Net

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!