Question: Make two arrays to hold 10 integer numbers each Make a function to fill an array with 10 random numbers - the function signature should

Make two arrays to hold 10 integer numbers each

Make a function to fill an array with 10 random numbers - the function signature should be: void fillArray(int arr[], int size, int min, int max). This function should call your randBetween function.

Make a printArray function that prints the arrays neatly.

in main, call printArray to print the first array.

From main, call the fillArray function to fill your first array with random numbers between -100 and 100.

Make a function (doubleArray). doubleArray takes two arrays as input. The first array has values, the second array is the same size as the first array, but is empty. The function takes each value in the first array, doubles it, and enters it into the corresponding value in the second array. The value in the first array is not modified.

from main, call the doubleArray function to fill the array.

in main, call printArray to print the second array.

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