Question: Part 1 Create a new function that will input and return the from date and to date for the hours worked and is called inside
Part
Create a new function that will input and return the from date and to date for the hours worked and is called inside the loop. This should be the first function called. Dates must be in the format mmddyyyy
Store the from date, to date, employee name, total hours, hourly rate and income tax rate in a list object. Note: multiple list objects may be needed to complete this functionality
After the user terminates the loop, call a function that will:
Read through the lists and for each employee calculate the income tax and net pay.
Display the from date, to date, employee name, hours worked, hourly rate, gross pay, income tax rate, income taxes and net pay for the employee.
Increment the total number of employees, total hours, total tax, total net pay and store the values in a dictionary object.
Modify the function that displays totals to read the data from the dictionary object and then display the totals.
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
