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 |
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme