Question: Using PYTHON and please make the code a user input functioning program. Payroll: Write a program that displays the weekly payroll for a company that

Using PYTHON and please make the code a user input functioning program.

Using PYTHON and please make the code a user input functioning program.

Payroll: Write a program that displays the weekly payroll for a company that hires both salaried and hourly employees. The program should contain a class named Employee having two subclasses named SalariedEmployee and HourlyEmployee. The Employee class should have instance variables for name rate of pay, and hours worked.(The rate of pay should be a fixed amount for salaried employees and the hourly wage for hourly employees.) Each subclass should have a calculatePay method. After the data for all of the employees has been entered, the program should display the week's pay for each employee, the number of employees, the number of salaried employees, the total payroll, and the average number of hours worked by the employees. Enter employees's name: Jane Enter employee's classification (Salaried or Hourly): Salaried Enter the number of hours worked: 40 Enter weokly salary: 1000 Do you want to continue (/N)? Y Enter employees's name: Fred Enter employee's classification (Salaried or Hourly): Hourly Enter the number of hours worked: 10 Enter hourly wage: 25 Do you want to continue (Y/N)?N Jane: $1,000.00 Fred: $250.00 Number of employees: Number of salaried employees:1 Total payroll: $1,250.00 Average number of hours worked per employee: 25 25.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!