Reference no: EM13741907
This assignment should be done individually. The assignment consists of 4 parts:
1) Writing a test plan;
2) Writing a C program with reasonable comments and sensible variable names;
3) Test and documenting the testing of your c program
4) A report
The day field is a number with the following meaning
Number
|
Meaning
|
1
|
Sunday
|
2
|
Monday
|
3
|
Tuesday
|
4
|
Wednesday
|
5
|
Thursday
|
6
|
Friday
|
7
|
Saturday
|
8
|
The worker Died while Picking
|
9
|
The worker has 9 or more children
|
NOTE-1: Each file has between 2 and 10 lines
NOTE-2: Each file has a last line with a day of 0 the remainder of that line should be ignored (it will always have four fields of which the first and last are numeric)
NOTE-3: Times are in fractional hours (not HH:MM)
NOTE-4: Day 8 and 9 are special conditions for students wishing to get a grade of more than 74% for the assignment
NOTE-5: If you choose to process day 9 then you need to store the necessary vales in a suitable variable (eg array)for later processing. You may not read the file twice in the processing of a single menu option.
NOTE-6: Day 8 and day 9 records can occur anywhere in the file
Rates of pay:
The first 40 hours of work for the week is paid at minimum pay rate of $18.70 per hour worked
All pay on Sunday is paid at $33.73per hour worked
The overtime rate is $27.79per hour worked; Overtime must be paid for any hours over 40 worked in the period Monday to Saturday.
Rates of pay (special conditions DI/HD extension part):
Due to the union agreement of 1827, and its amendment in 1932 (part B clause 57, 2nd dot point, paragraph 2) "any worker who dies while picking fruit shall receive payment of 500 silver coins of the realm as funeral expenses, delivered to next of kin.
In Australia in 1988 the $2 coin was minted and it became the official silver coin of the realm. Traitors are therefore paid $60 equivalent to 30 silver coins of the realm.
Under the hopelessly unfathomable fair work policy of successive governments and the union agreement of 1215 (See British Law - after all Australia is far too small to have its own laws). "it is necessary to pay a bonus of 5 silver coins of the realm to fruit pickers if it be that they have more than 8 dependent children; and that they labour 7.5 hours or more of toil in a single day."
Plain English translation
- If you die while apple picking you get $1000;
- If you have 9 or more kids at home you get a 10$ bonus any day you work 7.5 hours or more;
He needs the program to have the following options:
Option
|
Program Function
|
Notes
|
1 -Print a pay Cheque
|
Ask to enter file name:
Print out a nicely formatted cheque
|
|
2 - Payroll Report
|
Ask to enter file name:
Echo the input file data:
Sum the hours:
Display hours at minimum wage and total paid
Display overtime and payment
Display Sunday rate and payments
Print out a meaningful set of information to help explain how the pay cheque was calculated
Print out the cheque total
|
|
3 - Special Case processing (optional)
|
special rules for the following conditions:
a) Apple pickers that die while working.
b) Apple pickers that have 9 or more children if they workfor 7.5 or more hours on any day.
Ask to enter file name:
Compute and print out a pay slip and a nicely formatted cheque that includes death and children bonuses
|
This is the HD/DI extension its optional
|
4-exit
|
Exits the program cleanly
|
|
Who accused john quincy adams of corrupt bargain maintained
: Those who accused John Quincy Adams of a "corrupt bargain" maintained? Gibbons v. Ogden and Charles River Bridge v. Warren Bridge both centered on what issue?
|
Monopolist estimated that the own-price elasticity of demand
: A monopolist estimated that the own-price elasticity of demand for its product is -4.5 and its advertising elasticity of demand is 1.5. Assuming these elasticities are constant, what fraction of the firm's revenues should the firm "reinvest" in adver..
|
What is the fm modulation index
: What is the FM modulation index if deviation in carrier frequency is +/- 60 KHz, and maximum modulating frequency is 15 KHz?
|
Genentech owns a patent on tissue plasminogen activator
: Genentech owns a patent on tissue plasminogen activator (TPA), which is an enzyme that helps the body break down blood clots. TPA is particularly valuable to cardiac patients, since it often allows heart problems to be treated with medication rather ..
|
Documenting the testing of c program
: Writing a test plan and writing a C program with reasonable comments and sensible variable names - Test and documenting the testing of your c program
|
How to find two variables by cramer''s rule
: What is Cramer's Rule and how to Find Two Variables by Cramer's Rule (need the answer Step by Step with Solved Examples
|
What toll needs to be charged to break even
: A 100 KM toll way costs $5M per km to build. The bonds are for 20 years and pay 10 percent per year [(A/P, 10%,20) = 0.1175]. If annual maintenance costs are $1000 per km, and 20000 vehicles use the toll away every day, what toll needs to be charged ..
|
Npv on project of riggs corp
: Riggs Corp. management is planning to spend $650,000 on a new marketing campaign. They believe that this action will result in additional cash flows of $286,333 over the next three years.
|
Report named tax planning considerations for employees
: Write a report named Tax Planning Considerations for Employees. The report will involve tax planning issues related to the organization’s employees. USco designs and manufactures specialized equipment used in various manufacturing applications.
|