Complete Using C 1 Declares Randarray 10 Integers 2 Implements Following Functions Fillarr Q37125829

complete using C++

1. Declares an randArray with 10 integers. 2. Implements thefollowing functions:
ü fillArray(…) The entire array needs to be initialized withrandom numbers. Assign each of the 20 values with a random valuefrom 0 to 99. Hint: to pass the test case, please use srand(18) inmain function.

ü display(…) A function that displays the contents of thearray. Essentially this function should be invoked after each ofthe functions described below returns control to the caller.

ü duplicates (…) A function that determines whether there areduplicates in the array.

ü deleteAtPos(…) A function that removes an element at aspecified location in the array. Note: You

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.