Question: Programming Section functions ( cpp ) , Methods for java A company employes 7 5 employees, and assigned a unique id number for each employee

Programming Section
functions(cpp), Methods for java
A company employes 75 employees, and assigned a unique id number for each employee ranges between 1 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 and how you would resolve it.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!