logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

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

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

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

 

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

970 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

615 Answers

Hire Me
expert
Husnain SaeedComputer science

802 Answers

Hire Me
expert
Atharva PatilComputer science

794 Answers

Hire Me