Compute the tax paid by the employee

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

Print the following heading at the top of the output page: Gang Corporation Payroll

Read an unknown number of employee data records as shown below. Each group of data will contain an employee's first and last name, hours worked, the rate of pay and age. A typical group of data will be:

Duck, Donald

45.0 3.25 51

Print the data as it is read; together with appropriate messages (e.g., the name is ..., the rate of pay is ..., etc.).

For each employee, compute and print the employee's base pay, which includes overtime (paid at one and a half times the normal rate) for each hour over 40. For example, if an employee earning $20.00 per hour works for 48 hours, then she will be paid for 40 hours at her normal rate plus 8 extra hours at $30.00 (one and a half times $20.00).

For each employee compute the tax paid by the employee, according to this formula: If the employee is 55 years old (or older), then the employee pays tax at a rate of 50% of the base pay; if the employee is below 55, then the tax is 10% of the base pay. Print the tax and the net pay after taxes.

Repeat this process until you have read the last employee. You must decide how to detect the end of the data (you should explain your method in a comment).

Print the age and name of the oldest employee. Do the same for the youngest employee.

Print the name and taxes of the employee who paid the most in taxes.

Print an alphabetically sorted list of all the company's employees.

Print a list of the employees sorted by net pay.

After all your results have been printed, print a message saying that the payroll program is complete.

Data:

Duck, Donald

45.0 3.50 60

Mouse, Mickey

35 6.50 55

Brown, Charlie

35 3.00 20

Oyle, Olive

40 4.50 60

Man, He

45 7.50 20

Ra, She

40 3.50 20

Jetson, George

45 3.50 55

Starr, Brenda

35 8.40 60

Woman, Wonder

40 3.50 55

Jets, Green

45 13.50 55

Barr, Jimmy

35 9.00 60

Evans, Robert

40 8.00 55

Reference no: EM132103829

Questions Cloud

Determine the consolidated balances as of january : At that time, the fair value of Standaround's net assets were equal to the book values. Determine the consolidated balances as of January 2, 2014
Compute the amount you spent in buying shares : The price, in dollars, of a certain stock over a 10-day period is given as: price = [19, 18, 22, 21, 25, 19, 17, 21, 27, 29].
How many bits of random padding are needed : Why would we like to minimize the amount of random padding? How many bits of random padding are needed? Justify your an- swer.
What will be the amount of accumulated depreciation : Assuming the asset's salvage value is $2,300, what will be the amount of accumulated depreciation on this asset on December 31, Year 3
Compute the tax paid by the employee : For each employee compute the tax paid by the employee, according to this formula: If the employee is 55 years old (or older).
Explain what are locality and spacial locality : Explain what are locality and spacial locality, and give an very simple example (in the area of computer architecture) to illustrate the point.
Describe the high-level business model of your company : Take this opportunity to describe the high-level business model of your company and the typical problems (at least 5) faced by users.
Discuss at least three different phone-based solutions : You want to be prepared to discuss the pros and cons, but you want to make sure you know and understand the various solutions available.
Compute the present value of the tax shield : An 10 percent discount rate is appropriate for this asset, Compute the present value of the tax shield resulting from depreciation

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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