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: -
Worker-Id –two (2) letters followed by three (3) digits (0-9).
The full name of the worker.
The total number of hours the individual logged in at work.
The gross pay in $FDollars. (Hours-worked * Pay Rate)
The tax deduction for the actual individual. (Gross * Tax-rate)
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.
The Worker-ID
The worker’s First name.
The worker’s Middle names.
The worker’s Surname
The total number of hours worked.
The extra minutes that were recorded by the Time Book.
The Pay-Rate for each of the individual worker.
Other Details: -
There legitimate number of hours worked should be between seventy (70) and eighty-four (84); inclusive.
The legitimate pay-rate should be between $10.50/hour and $41.20/hour; inclusive.
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 |
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
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. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
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
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