Question: In C++ write a function called fillarray() to fill an array with integers with size given by user, the entire array and its size are

In C++ write a function called fillarray() to fill an array with integers with size given by user, the entire array and its size are the parameters of the function. Write another function repeat() to take in an array, its size and a target number as parameters and return true or false after checking if the target number is repeated in the given array. Write a function called delete() to take in an array and its size as parameters and overwrite the array with only the elements after deleting the repeated elements of the array. Write a print function that takes in an array and its size that prints all the elements of the array. In the main() get the size of an array from the user and fill the array with fillArray(), print the array and output the array with repeated elements deleted by delete() Example case: Enter the number of elements in your array (1-25): 0 Invalid entry! Enter the number of elements in your array (1-25): 26 Invalid entry! Enter the number of elements in your array (1-25): 10 Enter 10 numbers: 1 1 2 2 3 3 4 4 5 6 Array Entered: 1 1 2 2 3 3 4 4 5 6 Array with repeated numbers deleted: 1 2 3 4 5 6
Step by Step Solution
There are 3 Steps involved in it
cpp include include using namespace std Function to fill an array with integers v... View full answer
Get step-by-step solutions from verified subject matter experts
