Computer Science

An advertising agency wants to send a letter to all of its clients announcing a new fee schedule. The clients' names are in several different lists (arrays). The company merges the various lists to form one array, but clients could be listed in the array more than once. Design a program that creates a new array that contains the same client information as the original, but with duplicates removed. Clinets rae identified by a four digit client code and client name. Write an algorithm to solve the problem.

Answers

1. Set up an empty array to serve as the output array/list. 2. Loop through each array given and look at each item. 3. Check to see if the item is already in the output array. 4. If it is not already in the output array, add the item to the output array. 5. When done looping through all the given arrays, the output array has all the clients with duplicates removed.

Answered by qlopez

We have mentors from

Contact support