Question: 9 4 4 . 0 0 1 0 2 0 . 0 0 7 8 9 1 7 2 5 . 0 0 0 .
Second, you need to formulate and show your test plan. In other words, how do you know that the output of the program is correct?
Finally, are there any errors in the logic of the program that were found by using the test plan? If there were, what were they and what needs to be done to fix the program?
NOTE: There are different approaches to doing this. The brute force method would be to write down the variables and update these are you trace through each step of the program. Using this method, when you get to the end you should have the values that will be entered into the table. Make sure you take into account the two ways that an employee can get overtime.
Employee Number
Regular Pay
OT Pay
Gross Pay
Taxes Due
Statement of the Problem
I have a small company with employees. I need a payroll system that calculates the pay and taxes for each employee. I have the following input files:
Employee Data Contains the employee information with their hourly pay rate.
Tax Table A lookup table that specifies the taxes to be withheld for ranges of values, starting at zero and ending at
Time Card Data Each line is a sum of the hours that the employee worked each day.
Employees can also earn overtime
If the total hours in a day is more than the OT rate is times their hourly rate.
If the total hours in a week is more than the OT rate is times their hourly rate. Saturday is a regular work day and OT is only counted if it meets one or both of the above conditions
After processing, I need an output file called Weekly Payroll. There should be one line in the
file for
each employee that contains these fields:
Employee Number
Regular Pay earnings without overtime OT Pay overtime earnings
Gross Pay total pay due
Taxes Due value from lookup
Net Pay Gross Taxes
Example:
Net Pay
Employee Number
Regular Pay
OT Pay
Gross Pay
Taxes Due
Note: Employees are scheduled on an as needed basis and employees may have zero hours for the week.
TEST DATA INPUT FILES
Employee Data EmployeeNumber EmployeeName HourlyRate
Time Card Data
EmpNum DayofWeek TotalDailyHours
MON MON MON MON MON MON MON MON MON TUE TUE TUE TUE TUE TUE TUE TUE TUE WED WED WED WED WED WED WED WED WED THU THU THU THU THU THU THU THU FRI FRI FRI FRI FRI FRI FRI SAT SAT SAT SAT
Please provide a table of the program output and a test plan that shows how you verified the program output and a statement of any logic errors found and how to correct them
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
