Question: 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.
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 tedminates 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.
Submit the Python source code file and a Word document that contains a screen shot of input and display for one employee and a screen shot of the display of totals. A minimum of five employees must be entered to receive full credit. Include a sentence reflection on the successes andor challenges you had with this assignment.
Part
Ensure all functionality is working correctly and code is written efficiently. For purposes of this assignment, writing code efficiently is defined as:
Using correct naming conventions for all variables and objects.
Using correct naming conventions for functions and methods.
Using builtin functions whenever possible.
Using the fewest lines of code needed to return multiple values from functions.
Using the fewest lines of code needed to complete the functionality
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
