1)[Link] , a manager at a tech company needs to maintain records of employees.
Each
record should include:
Employee_ID,Employee_Name,Department and salary.
Write python functions to:
i)Input employee data and append it to a binary file.
ii)Update the salary of employees in the “IT” department to 200000.
2)Write a python function count_python_lines() that reads from a text file named “[Link]”
and counts the number of lines that contain the word “Python” (case sensitive).
3)Ravi is the HR manager of a company. To maintain employee records, he has created
a csv file named [Link],which stores the details of each employee.
The columns of the CSV file are: Employee_ID,Employee_Name, Department and salary.
Help him efficiently maintain the data by creating the following user defined functions.
a)accept()-to accept an employee record from the user and add it to the file
[Link].
b)CalculateTotalSalary()-to calculate and return the total salary expense by summing the
salary of all employees in the file.