A binary file “emp.dat” has structure [EID, Ename, designation,
salary].
i. Write a user defined function CreateEmp() to input data for
a record and create a file emp.dat.
ii. Write a function display() in Python to display the detail of
all employees whose salary is more than 50000.