Need help? We are here

Note: The assignments in this course are a series of

Note: The assignments in this course are a series of projects that build on one another.

Overview  

The purpose of this assignment is to demonstrate knowledge of advanced datatypes and the use of lists and dictionaries to store, retrieve process data.

Scenario

The company has approved the proof of concept provided in your week three assignment but wants to change some of the data as well as the processing.  In addition to the data input, you will need to include the “from date” and “to date” for the hours worked.  Detailed information will not be displayed until all the data has been entered, followed by the total summary for the payroll.   

  • All the coding will be maintained from your week three assignment and modified as needed to meet the new requirements.

Instructions  

Complete the following in Practice Labs:

  1. 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 mm/dd/yyyy.
  2. 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
  3. After the user terminates the loop, call a function that will:
    • Read through the list(s) 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.
  4. Modify the function that displays totals to read the data from the dictionary object and then display the totals.
  5. 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 1-2 sentence reflection on the successes and/or challenges you had with this assignment.     
  • 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 built-in 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 defined.

Table of Contents

Calculate your order
Pages (275 words)
Standard price: $0.00

Latest Reviews

Impressed with the sample above? Wait there is more

Related Questions

After reading chapter-11(attached textbook) and the below 3 links answer

After reading chapter-11(attached textbook) and the below 3 links answer question-1.  https://managementconsulted.com/about/dictionary/ https://www.forbes.com/sites/brettarends/2014/06/08/how-to-speak-mckinsey-15-key-phrases-to-pass-yourself-off-as-a-top-management-consultant/?sh=3fd7cbde6896 https://www.themuse.com/advice/do-you-speak-consultantese-20-buzzwords-to-know-now Question-1 Search TedTalks, YouTube or similar video platforms and locate a

New questions

Don't Let Questions or Concerns Hold You Back - Make a Free Inquiry Now!