Functions(cpp), Methods for Java: A company employs 75 employees, and assigns a unique ID number for each employee ranging between 101 to 999. The employees' records are to be stored in a file using the modules hashing method, the file size is 100.
a) Write a function/method which receives the employee ID from main and finds the hashed key using the modulus % approach.
b) Explain what happens when a collision occurs.