write a program that calculates and displays the Take-Home Pay of different individuals.C++ Programming

Assignment Details: - 

  • Upload your assignment on the Link provided in Moodle.

  • You are going to submit both your plan (MS-Word) and your source code (DevC++).

  • You will need to compress first before you submit.

 

The Task: -

You are going to write a program that calculates and displays the Take-Home Pay of different individuals.

The output should display the individual’s: -               

  1. Worker-Id –two (2) letters followed by three (3) digits (0-9).

  2. The full name of the worker.

  3. The total number of hours the individual logged in at work.

  4. The gross pay in $FDollars. (Hours-worked * Pay Rate)

  5. The tax deduction for the actual individual. (Gross * Tax-rate)

  6. The Take-Hom pay which is the amount left after Tax has been deducted.

 

The following should be provided by the user running the program.               

  1. The Worker-ID

  2. The worker’s First name.

  3. The worker’s Middle names.

  4. The worker’s Surname

  5. The total number of hours worked.

  6. The extra minutes that were recorded by the Time Book.

  7. The Pay-Rate for each of the individual worker.

Other Details: -

  1. There legitimate number of hours worked should be between seventy (70) and eighty-four (84); inclusive.

  2. The legitimate pay-rate should be between $10.50/hour and $41.20/hour; inclusive.

  3. The tax table is shown below

Gross Pay

Tax- Rate(%)

<$1150.00

0

<$2300.00

5

<$3400.00

10

>=$3400.00

15

Program Specifications

 

  • The Gross-Pay thresholds should be declared as constants.

  • The Rate-should be declared as constants.

  • Exception-handling – the program should allow only legitimate Pay-Rate and Hours-worked

  • $FDollars show two decimal places every time they are displayed.

  • The user should be able to process as many pays as they wish to, before exiting.

  • The program should have at least three functions declared, implemented/defined and called from the main

  • The declaration and implementation/definition files should be separate from the main file.

 

Plan: - 

Your plan should contain a: -

  • Structure Chart

  • Abstraction

  • Sequence

  • Decision tress

    • Conditions

    • Actions

 

  • Loop Diagram

    • Test Condition

C++ Codes: -

 The codes and comments in your Dev C++ file should correspond very well to what you had in your plan.

 

MARKING-SCHEME

Criteria

Mark

Criteria

Mark

 

Compile

3

Separation of Files

4

 

Run accurately

4

Structure Chart

5

 

Documentation

3

Decision Tree

4

 

Style

3

Loop Diagram

4

 

Exception Handling

4

Correspondence

6

 

TOTAL

17

 

23

40

 

Attachments:

Instructions Files

C++ Programming Experts

expert
Dinh Hong P.
C++ Programming

20 Answers

expert
Eric Bell
C++ Programming

88 Answers

View More Experts
Disclaimer

The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.

Get Free Quote!

262 Experts Online