Question: CoSC: 1437 Python Progrumaing Assignueat 2 COSC. 1437 Python Progrumming Assignment 2 3. Greate a list of Employee objects and add those objects you created




CoSC: 1437 Python Progrumaing Assignueat 2 COSC. 1437 Python Progrumming Assignment 2 3. Greate a list of Employee objects and add those objects you created into the list 4. Call total_pay') to get total weekly pay 5. Call print_employee_list to display all objects Assignment instructions: 1. Create a python file to store all dasses and name it employees.py 2. Create a python file which contains the main program to test your classes and name it assignment2_yourFirstName_yourlastWame.py. (Make sure to import your class file.) 3. Add comments on top of your program to document your code. Include Program description, your name and date. 4. Create the required structures for the classes described above. Make sure to follow the method/function name, return type and parameter list as described. 5. You can create extra methods/functions to enhance your program, but make sure to create the required methods/functions first before adding any helper functions. 6. Use the following data to test your code. cormissianpaid object: Fnare1 Lnaro1, narketine departuent, hase pay: ssaa, sales: \$3ie, bee Corrissionpald object: Fnare2 Lnare2, Sales oepartrint, base pay: $1008, sales: 58,080 Hourlypaid object! Fnaxes Lnare3, heceunting departnent, hourly rate: 526.5 , hours: Hourlypald object: Fnare4 Lnare4, Finance departnsnt, hourly rate: $39, hours: 35.8 7. Summarize your data to display each employee information, and total payroll for the week. See program output below. B. Make sure your program is easier to read by adding comments and spaces, etc 9. Your program grade will be based an the following criteria: a. Program code and output accuracy 70% b. Following program instructions for required identifiers/functions/classes/file names if there are any 15% C. Program documentation 10% d. Program output display 5% 10. You will reccive a 0 if you copy others' code or let others eopy your code. Please refer to Academy Integrity in course syllabus. 11. Submit two python files and a screen shot of your output in Canvas for grading Program Output: COSC 1437 Python Programming Assignment 2 Payroll Classes - Inheritance and Polymorphism Specification: ABC Corp. has a staff of employees and needs to calculate weekly pay for all of its employees. Below is a class hierarchy of the employees Class Name: Employee - Superclass Members in the Employee class: *All data fields are private members Class Name: CommissionPaid - Subclass of Employee Payroll Classes - Inheritance and Polymorphism Specification: ABC Corp. has a staff of employees and needs to calculate weekly pay for all of its employees. Below is a class hierarchy of the employees Class Name: Employee - Superclass Members in the Emplovee class: *All data fields are private members Class Name: CommissionPaid - Subclass of Employee COSC: 1437 Python Progrurming Assigument 2 Class Name: Hourlypaid - Subclass of Employee Members in the HourlyPaid class: "All data fields are prtvate members Functions in the main program: \begin{tabular}{|l|l|l|} \hline \begin{tabular}{l|l|l|} Function Name & Retum Type & Parameter List \\ \hline total_pay & float & Parameter:alistofemployeeobjectsPetumtotalweeklypayforallemployees \\ \hline print_employee_list & None & Parameter:alistofemployeeobjectsDisplaytheemployeeinformation.(SeeProgramOutput) \\ \hline mainy & Nane & 1. Create 2. CommissionPaid objects \\ 2. Create 2 HourlyPaid objects \end{tabular} \\ \hline \end{tabular} 2 COSC: 1437 Pythoo Programming Assigrment 2 Assignment instructions: 1. Create a python flle to store all classes and name it employees.py 2. Create a python flle which contains the main program to test your classes and name it assignment2_yourFirstName_youriastName.py. (Make sure to import your class file.) 3. Add comments on top of your program to document your code. Include Program deseription, your name and diate. 4. Create the required structures for the classes described above. Make sure to follow the method/function name, retum type and parameter list as destribed. 5. You can create extra methods/functions to enhance your program, but make sure to create the required methods/functions first before adding any helper functions. 6. Use the following data to test your code. corvissianbald object: Faated Laane1, Nurketing dopertant, bact pay: ssaa, sales: s3e, eee Hourlypaid abject: Eaarou Lnatu3, Acceunting depertint, hour1y rate: s2a,5, haurs: 55.e Hourlypald object: Fnare4 Lnare4, Finance departnont, hourly rate: \$30, hours! 35.8 7. Summarize your data to display each employee information, and total payroll for the week. See program output below. B. Make sure your program is easier to read by adding comments and spaces, etc 9. Your program grade will be based on the following criteria: a. Program code and output accuracy 70% b. Following program instructions for required identifiers/functions/classes/file names if there are any - 15% c. Program documentation 10% d. Program output display 5% 10. You will receive a 0 if you copy others' code or let others copy your code. Please refer to Academy Integrity in course syllabus. 11. Submit two python files and a screen shot of your output in Canvas for grading Program Output: CoSC: 1437 Python Progrumaing Assignueat 2 COSC. 1437 Python Progrumming Assignment 2 3. Greate a list of Employee objects and add those objects you created into the list 4. Call total_pay') to get total weekly pay 5. Call print_employee_list to display all objects Assignment instructions: 1. Create a python file to store all dasses and name it employees.py 2. Create a python file which contains the main program to test your classes and name it assignment2_yourFirstName_yourlastWame.py. (Make sure to import your class file.) 3. Add comments on top of your program to document your code. Include Program description, your name and date. 4. Create the required structures for the classes described above. Make sure to follow the method/function name, return type and parameter list as described. 5. You can create extra methods/functions to enhance your program, but make sure to create the required methods/functions first before adding any helper functions. 6. Use the following data to test your code. cormissianpaid object: Fnare1 Lnaro1, narketine departuent, hase pay: ssaa, sales: \$3ie, bee Corrissionpald object: Fnare2 Lnare2, Sales oepartrint, base pay: $1008, sales: 58,080 Hourlypaid object! Fnaxes Lnare3, heceunting departnent, hourly rate: 526.5 , hours: Hourlypald object: Fnare4 Lnare4, Finance departnsnt, hourly rate: $39, hours: 35.8 7. Summarize your data to display each employee information, and total payroll for the week. See program output below. B. Make sure your program is easier to read by adding comments and spaces, etc 9. Your program grade will be based an the following criteria: a. Program code and output accuracy 70% b. Following program instructions for required identifiers/functions/classes/file names if there are any 15% C. Program documentation 10% d. Program output display 5% 10. You will reccive a 0 if you copy others' code or let others eopy your code. Please refer to Academy Integrity in course syllabus. 11. Submit two python files and a screen shot of your output in Canvas for grading Program Output: COSC 1437 Python Programming Assignment 2 Payroll Classes - Inheritance and Polymorphism Specification: ABC Corp. has a staff of employees and needs to calculate weekly pay for all of its employees. Below is a class hierarchy of the employees Class Name: Employee - Superclass Members in the Employee class: *All data fields are private members Class Name: CommissionPaid - Subclass of Employee Payroll Classes - Inheritance and Polymorphism Specification: ABC Corp. has a staff of employees and needs to calculate weekly pay for all of its employees. Below is a class hierarchy of the employees Class Name: Employee - Superclass Members in the Emplovee class: *All data fields are private members Class Name: CommissionPaid - Subclass of Employee COSC: 1437 Python Progrurming Assigument 2 Class Name: Hourlypaid - Subclass of Employee Members in the HourlyPaid class: "All data fields are prtvate members Functions in the main program: \begin{tabular}{|l|l|l|} \hline \begin{tabular}{l|l|l|} Function Name & Retum Type & Parameter List \\ \hline total_pay & float & Parameter:alistofemployeeobjectsPetumtotalweeklypayforallemployees \\ \hline print_employee_list & None & Parameter:alistofemployeeobjectsDisplaytheemployeeinformation.(SeeProgramOutput) \\ \hline mainy & Nane & 1. Create 2. CommissionPaid objects \\ 2. Create 2 HourlyPaid objects \end{tabular} \\ \hline \end{tabular} 2 COSC: 1437 Pythoo Programming Assigrment 2 Assignment instructions: 1. Create a python flle to store all classes and name it employees.py 2. Create a python flle which contains the main program to test your classes and name it assignment2_yourFirstName_youriastName.py. (Make sure to import your class file.) 3. Add comments on top of your program to document your code. Include Program deseription, your name and diate. 4. Create the required structures for the classes described above. Make sure to follow the method/function name, retum type and parameter list as destribed. 5. You can create extra methods/functions to enhance your program, but make sure to create the required methods/functions first before adding any helper functions. 6. Use the following data to test your code. corvissianbald object: Faated Laane1, Nurketing dopertant, bact pay: ssaa, sales: s3e, eee Hourlypaid abject: Eaarou Lnatu3, Acceunting depertint, hour1y rate: s2a,5, haurs: 55.e Hourlypald object: Fnare4 Lnare4, Finance departnont, hourly rate: \$30, hours! 35.8 7. Summarize your data to display each employee information, and total payroll for the week. See program output below. B. Make sure your program is easier to read by adding comments and spaces, etc 9. Your program grade will be based on the following criteria: a. Program code and output accuracy 70% b. Following program instructions for required identifiers/functions/classes/file names if there are any - 15% c. Program documentation 10% d. Program output display 5% 10. You will receive a 0 if you copy others' code or let others copy your code. Please refer to Academy Integrity in course syllabus. 11. Submit two python files and a screen shot of your output in Canvas for grading Program Output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
