Write a menu-driven C program with appropriate functions that allows the user to fill an array of 50 integers with random numbers on the range 1...999, inclusive, sort it, and then find search it to determine if a given random number was generated. The menu is shown below:
Select one of the following options:
1. Fill array with random numbers
2. Print the array
3. Search the array
4. Sort the array
5. Quit
Each time the fill option is executed, the array will be re-filled with a new random number series. The search will locate the first matching number and will print a message that a match was located and the index location where it was found. If no match was found it will print a message to indicate no matches found.
Sort, provides an ascending sort of the array numbers. User can select the "print the array" option to get the sorted print out of all array numbers.