IPA PYTHON EMPLOYEE 1 SOLVED QUESTION 1
#ipa #python #coding
Create a class Employee with the below attributes:
emp_id of type Number
emp_name of type String
emp_role of type String
emp_salary of type Number
Create the __init__ method which takes all parameters in the above sequence. The method
should set the value of attributes to parameter values inside the method.
Create a method inside the class with the name increase_salary . This method takes a Number
value as arguments which is the percentage by which the salary should be incremented and
increases the salary of the employee by the given percentage amount. If the employee salary is
10000 and the given percentage is 10, then the updated salary of the employee should be
11000.
Create another class Organisation with the below attributes:
Create another class Organisation with the below attributes:
org_name of type String
emp_list of type List having Employee objects
Create the __init__ method which takes all parameters in the above sequence. The method
should set the value of attributes to parameter values inside the method.
Create another method inside the class with the name calculate_increment. This method takes
a String value and a Number value as argument which is the employee role and the increment
percentage respectively. The method checks all the employees in the employee list of the
organisation whose role is same as the given role and increase their salary by the given
increment percentage. The method returns a list of employees containing all the employees
whose salary was incremented.
Note: use the method increase_salary defined in the Employee class to calculate the
incremented salary of the employees whose role is same as the given role.
You can use the below given sample input and output to verify your solution. The 1st input
taken in the main section is the number of Employee objects to be added to the list of
Employees.
The next set of inputs are the employee id, employee name, employee role and employee
salary for each employee taken one by one.
Sample Input:
4
100
Rajesh
Developer
40000
101
Ayesha
Developer
41000
102
Hari
Analyst
45000
103
Aman
Manager
60000
Developer
5
Output:
Rajesh 42000.0
Ayesha 43050.0
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «IPA PYTHON EMPLOYEE 1 SOLVED QUESTION 1», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.