Question: use a random number generator to generate a unique ID for each employee. This should be accomplished within a stand alone function called genID() which

use a random number generator to generate a unique ID for each employee. This should be accomplished within a stand alone function called genID() which also checks to make sure the ID is unique within the array of 5000 employees. The fact that this function accesses the entire array is part of why it is a standalone function and not a member function of the struct employee in C++.

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 Databases Questions!