Question: Create a program that performs the following tasks: Define a macro arraySize of size n Create two arrays of size n . Pass these arrays

Create a program that performs the following tasks:

Define a macro arraySize of size n

Create two arrays of size n.

Pass these arrays to a function fillArrays that randomizes enough integers between 1-100 (inclusive) to fill both arrays.

Print both of these arrays.

Pass the filled arrays to a second function mergeArrays that creates a third array of size 2n.

Still in mergeArrays, store the values from the original two arrays into your new array in reverse.

Print out your sorted array.

Click here for a demo of what is expected.

https://www.youtube.com/watch?v=a5Hdw4uH5aw

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!