Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

11.02- Payroll Fall 2021 Employee Payroll Save your work as 11.02 Employee Payroll.py, download it, and attach it to your assignment Create a class named

image text in transcribed
image text in transcribed
11.02- Payroll Fall 2021 Employee Payroll Save your work as 11.02 Employee Payroll.py, download it, and attach it to your assignment Create a class named Employee that has the following attributes: FirstName LastName IDNumber Hours Worked Wage Create an initializer that accepts the FirstNamo, LastName, IDNumber, and Wage and assigns them to the appropriate attribute. Set HoursWorked Create a method called WeeklyPay, which calculates the weekly pay Weekly pay is defined as 1 times the wage for hours 0-40, and 1.5 times wage for hours greater than 40 . In your main program, create the following function - find_employee - which has the Employee list and the Employee as the arguments. This function searches the list and look for a match on the Employeeld. The function returns the index of the employee. If the item is not found atis returned. See the find_ball function in 11.01 Creating a List of Objects Using instantiation Read the 11.02 Employees.txt file and create a list of employee objects . Read the 11.02 Hours.txt file update the hour worked for the appropriate employee Print the results to 0 Copy paste and save the fo below as 11.02 Employees.txt . Read the 11.02 Employees.txt file and create a list of employee objects Read the 11.02 Hours.txt file, update the hour worked for the appropriate employee Print the results Copy, paste and save the file below as 11.02 Employees.txt Susan, Meyers, 47899, 15.64 Mark, Jones, 39119, 14.46 Joy, Rogers, 41774, 15:28 Copy, paste and save the file below as 11.02 Hours.txt 47899, 41 19119, 37 41774, 43 Expected Output First Last 10 Hour's Hourly Weekly Namember worked Nace Pay Susan Heyers 47899 41.00 15.64 6.09.06 Mark Jones 39119 37.00 14.46 535.02 Joy Roces 4124 43.00 15.28670.90 11.02- Payroll Fall 2021 Employee Payroll Save your work as 11.02 Employee Payroll.py, download it, and attach it to your assignment Create a class named Employee that has the following attributes: FirstName LastName IDNumber Hours Worked Wage Create an initializer that accepts the FirstNamo, LastName, IDNumber, and Wage and assigns them to the appropriate attribute. Set HoursWorked Create a method called WeeklyPay, which calculates the weekly pay Weekly pay is defined as 1 times the wage for hours 0-40, and 1.5 times wage for hours greater than 40 . In your main program, create the following function - find_employee - which has the Employee list and the Employee as the arguments. This function searches the list and look for a match on the Employeeld. The function returns the index of the employee. If the item is not found atis returned. See the find_ball function in 11.01 Creating a List of Objects Using instantiation Read the 11.02 Employees.txt file and create a list of employee objects . Read the 11.02 Hours.txt file update the hour worked for the appropriate employee Print the results to 0 Copy paste and save the fo below as 11.02 Employees.txt . Read the 11.02 Employees.txt file and create a list of employee objects Read the 11.02 Hours.txt file, update the hour worked for the appropriate employee Print the results Copy, paste and save the file below as 11.02 Employees.txt Susan, Meyers, 47899, 15.64 Mark, Jones, 39119, 14.46 Joy, Rogers, 41774, 15:28 Copy, paste and save the file below as 11.02 Hours.txt 47899, 41 19119, 37 41774, 43 Expected Output First Last 10 Hour's Hourly Weekly Namember worked Nace Pay Susan Heyers 47899 41.00 15.64 6.09.06 Mark Jones 39119 37.00 14.46 535.02 Joy Roces 4124 43.00 15.28670.90

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Investors Guidebook To Fixed Income Investments

Authors: Stuart R. Veale

1st Edition

0735205310, 978-0735205314

More Books

Students also viewed these Finance questions