Consider the binary file as “Emp.dat”. Suppose a file storing the details of an Employee's Information such as Emp Number, Name, Salary, Gender, and Designation.
a)Write a Function to search and display the details of a particular Employee whose EmpNo is passed as a parameter to the function.
b)Write a Function to search and display the names of all the Employees whose salary is in the range of 50,000 to 80,000
c)Write a Function to transfer all the records from “Emp.dat” to “Emp1.dat, where the Gender is Male.