Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program to create a payroll report based on the following assumptions and requirements: MUST USE: ARRAYS, FUNCTION & STRUCTURES. A company called

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
  • YourFORMATTEDOutput 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 NameMILast nameRate per hourHours worked..........................

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

JoeYSmith$10.9940

:

:

:

:

Don't use classes and pointers

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions

Question

1 What kind of mindsets is the firm most likely to experience?

Answered: 1 week ago

Question

Types of cultural maps ?

Answered: 1 week ago

Question

Discuss the various types of leasing.

Answered: 1 week ago

Question

Define the term "Leasing"

Answered: 1 week ago

Question

What do you mean by Dividend ?

Answered: 1 week ago