Question: LAB ASSIGNMENT Please could you use c++ programming language and Do it from scratch. thank you in advance. Please do both task. Thanks you so

LAB ASSIGNMENT

Please could you use c++ programming language and Do it from scratch.

thank you in advance.

Please do both task. Thanks you so much.

Task 1:

Create a program that will compare to unsorted integer arrays of varying length.

Compare the two arrays placing the unique integers which occur in each individual array into new array called unique.

Unique values are integers that appear in the a single array but not both.

For Example

int array1[] = {12, 4, 5, 19, 25, 100}

int array2[] = {908, 12, 19, 205, 4, 100, 6}

Output =

int unique[] = {908,5 25, 205,6}

Attach Source Code below

Task 2:

Implement the solution for Task 1 using a Hash_Map or Dictionary

You can use the C++ STD Library to solve the problem. We will work towards implementing a custom Hash, Hash_Map, class in future assignments.

Compare the two arrays placing the unique integers which occur in each individual array into new array called unique.

Unique values are integers that appear in the a single array but not both.

For Example

int array1[] = {12, 4, 5, 19, 25, 100}

int array2[] = {908, 12, 19, 205, 4, 100, 6}

Output =

int unique[] = {908,5 25, 205,6}

Attach Source Code below

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!