Write a cpp program to create a payroll report

Assignment Help C/C++ Programming
Reference no: EM131834004

Assignment: Payroll Project

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

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:

a) ARRAYS

b) 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
  First Name       MI         Last name     Rate per hour      Hours worked
 ========    ===       ========  ==========    =========
   Joe                Y             Smith             $10.99                    40
:
:
:

Reference no: EM131834004

Questions Cloud

Analyze how the slippery slope theory contributes : How does the slippery slope contribute to illegal and unethical decision-making in policing or corrections?
Natural selection and genetic drift : What is the difference between Natural Selection and Genetic Drift?
What type of chemical reaction is this : Many smaller glucose molecules are put together to form a large glycogen molecule. What type of chemical reaction is this?
How does data recovery differ from computer forensics : Did the tool recover the deleted files? What other files were recovered, if any? How does data recovery differ from computer forensics?
Write a cpp program to create a payroll report : Write a C++ program to create a payroll report based on the following assumptions and requirements.
Find a case from kroll ontracks website that deals : Find a case from Kroll Ontrack's website that deals with one of the following the Federal Rules of Civil Procedure.
Who gets to san francisco first : Alan leaves Los Angeles at 8am to drive to San Francisco 400 miles away. He travels at a constant 50 mph. Beth leaves Los Angeles at 9am and travels
Describe the type of computer crime : How the evidence was analyzed - including the processes and what tools were used.How the crime scene was secured.
Average chirp rate of a cricket at temperatures : The colder the temperature, the slower the rate of chirping. The table below shows the average chirp rate of a cricket at temperatures.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Strategies for successful health care marketing

Describe three different strategies for successful health care marketing and public relations.  Which is your personal favorite?  Why?

  Program that asks user to enter text and show given output

Write a program that asks the user to enter some text and then displays that text with all e's and E's replaced with 3's and all s's and S's replaced by 5's.

  Determine the larger and smaller integers

Determine the larger and smaller integers. Write out every second integer, starting with the larger one and stopping at the lower one. (note: if one number is even and one is odd, the lower value will not show up in the output).

  Loops and nested loops

Loops and Nested Loops- Suggest one (1) example of a problematic programming situation or scenario that nested loops could at least partially resolve. Justify your response

  What is the process of enumeration

Listed next is a code skeleton for an interface called Enumeration and a class called Name Collection. Enumeration provides an interface to sequentially.

  Prompts the user to input the shipping cost per liter

Write a program that does the Prompts the user to input the dimensions (in feet) of the container (radius the container (radius of the base and the height)

  Write a program that uses a file for input

Write a program that uses a file for input and a file for output. Input file has ten rows and 7 numbers per row. The program should find the highest number, lowest number, total, and average of every row

  Write a class called adder that stores the sum

Write a class called  Adder that stores the sum of all the  ints given to it. Your  Adder class should allow you to write the following code (and code like it):

  Implement a version of the zombiedash

For this assignment you must implement a version of the 'ZombieDash' video game on the Teensy LCD board. The game is to be written in the C programming language. The implementation will make use of the LCD screen, buttons, LEDs, potentiometer, and..

  Write a function named dietoss that simulates the tossing

Write a function named dieToss that simulates the tossing of two dice. When you call the function, it should generate two random numbers ranged in 1 to 6 and return the sum of the die's numbers. In the mail program, ask user how many times the dice s..

  Build a table of reynolds numbers at flow velocities

Write a program code to compute and build a table of Reynolds numbers at flow velocities varying from 100 to 1000 ft/sec (at increments of 100)

  Describe your experiences on writing your first c program

Describe your experiences on writing and testing your first C program. Gives examples of where you got stuck?. What difficulties you faced? What did you learn from this experience?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd