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
Get step-by-step solutions from verified subject matter experts
