00:01
Hello student, python implementation of the employee and employee demo classes according to the description are 1.
00:08
Class employee, here i have used constructor, definite, self, first and last and id name, number, wage and weekdays.
00:23
So all these are provided by the user.
00:25
So here first name will be entered into the class data, self .first and last name will be entered into the class data, self .last and id number will be entered into the self .id number, wage will be entered into the self .wage, weeks, hours, weekday, these will be entered in the self .week, hours, week, wkd and here the fixed amount of the regular array 40 which is given to us.
00:51
So here self .regulararray amount is fixed which is 40.
00:56
So that i have entered.
00:58
Now i have to calculate the pay.
01:00
So to calculate the pay if self .week, hours is less than or equal to self .regulararray amount then regular pay will be equal to self .week, hours, wkd into self .wage and overtime pay will be equal to zero here.
01:20
Else if week, hours, wkd is not less than self .regulararray means these are greater than it means overtime payment has been done.
01:32
So regular pay will be calculated similar self .regulararray amount into the self .wage.
01:38
So here self .regulararray will be taken.
01:42
In that case we take week, hours this.
01:45
So here now we have to calculate the overtime pay.
01:50
So overtime pay will be the self .week, hours, wkd minus self .hours amount into 1 .5 into self .wage.
01:59
So this amount we have to multiply with the self .wage and in this way we will calculate the overtime pay and now return which we have calculated as a regular pay and the overtime pay.
02:11
Now the class employee demo second class.
02:14
So here i have used the constructor this and here self .num underscore employee here user will enter this it is user prompted enter the number of the employees in the company so it will be stored into the class data self .num underscore employee.
02:32
Now self .employees we have created a list because there are a lot of the employee.
02:37
So here i have taken the date i have defined the function getemployeeinfo...