1. A small business has 5 employees with name, age and salary (AUD)…
Question Answered step-by-step 1. A small business has 5 employees with name, age and salary (AUD)… 1. A small business has 5 employees with name, age and salary (AUD) as follows:/Jane Brown, 23, 45000//Hannah Grime, 45, 67000//Philip Binnen, 67, 110000//John Hun, 32, 55000//Carl Smith, 55, 75000/.In order to automate some admin activities, you are requested to perform the following programming tasks using Python language. Please write the codes with proper indentation. Store the name, age and salary information in three separate lists.An alternative way to store the information is to use a dictionary. Also, create a “nested dictionary” to store the data using employee’s full name as keys in the outer dictionary. 2.Write a function, which returns: names of the employees with the highest and lowest salary as a tuple, and names of the employees with salary higher and lower than 52000 AUD, in two separate lists.The function should be general meaning that if the number of employees is increased, there will be no need to modify the function 3. The firm promotion policy is based on the age of employees: employees with age less than 30 years receive 10% increase, between 30 – 40 receive 15% increase, between 41 – 50 receive 20% increase and greater than 50 receive 25%. Write a function which takes an employee age and salary as inputs and returns the increased salary. 4. Write a function which creates the initial of all employees (for example for Jane Brown the initial is JB), and store them in separate lines of a text file named initials.txt.You may use string’s split method in the code. 5. Write an employee class in which objects have four attributes: first_name, last_name, age and salary, and two methods: email method which returns an employee email address as &..e@company.com update_name method which takes the new last name of an employee, if it is changed, and updates the employee last_name attribute. Create another class in which objects are the employees who knows a programming language identified by ‘language’ attribute. The class also has a method as described below. We would like to display the combined salary of any two employees when we apply + operator on the employee objects (for instance emp_1 + emp_2 would return the combined salary of them). Computer Science Engineering & Technology Python Programming BUS MISC Share QuestionEmailCopy link Comments (0)


