Write a C++ program to create a payroll report based on the following assumptions and requirements: MUST USE: ARRAYS, FUNCTION & STRUCTURES. A company called Data Housing Corp. employs several employees, all employees are paid on hourly base, any employee who works over than 40 hours is entitled to be paid overtime (1.5 for every hour exceeding 40). Calculate: The Gross income: Gross income = (Rate * hours worked) + over time. The Overtime: Overtime = number of hours exceeding 40 * Rate* 1.5 State Tax:     State Tax = gross * 6% Federal Tax:     fed Tax = Gross * 12% Union fees:    Union fees = Gross * 2% Net:              Net = Gross – (state tax + fed tax + Union fees). Total Gross for all employees. Average Gross for all employees. Directions:       MUST USE: ARRAYS Functions Structures Your input consists of Employee First Name, Middle Initial, Last name, Hours worked, Rate per Hour. State tax, Fed tax and Union fees are 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) Document your program (add comments) NO CLASSES OR POINTERS Submit: The source code program and the output The output in the following format: . Data Housing Corp. Weekly Payroll ~~~~~~~~~~~~~~~~~~~~~~~~~~~ First Name    MI                     Last name     Rate per hour     Hours worked   …………………….. ========     ===                   ========    ==========       =========    Joe                Y                      Smith             $10.99                 40 :   :         : : Don’t use classes and pointers

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write a C++ program to create a payroll report based on the following assumptions and requirements:

MUST USE: ARRAYS, FUNCTION & STRUCTURES.

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

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 * 6%
  4. Federal Tax:     fed Tax = Gross * 12%
  5. Union fees:    Union fees = Gross * 2%
  6. Net:              Net = Gross – (state tax + fed tax + Union fees).
  7. Total Gross for all employees.
  8. Average Gross for all employees.

Directions:      

MUST USE:

  1. ARRAYS
  2. Functions
  3. Structures
  • Your input consists of Employee First Name, Middle Initial, Last name, Hours worked, Rate per Hour.
  • State tax, Fed tax and Union fees are
  • 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)
  • Document your program (add comments)
  • NO CLASSES OR POINTERS
  • Submit:
  • The source code program and the output
  • The output in the following format:

.

Data Housing Corp. Weekly Payroll

~~~~~~~~~~~~~~~~~~~~~~~~~~~

First Name    MI                     Last name     Rate per hour     Hours worked   ……………………..

========     ===                   ========    ==========       =========

   Joe                Y                      Smith             $10.99                 40

:  

:        

:

:

Don’t use classes and pointers

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY