Write a C++ program main function which will prompt the user for the number of elements called N desired for an array which has the capacity to store 50 elements and performs the following:
1. calls a void function, createArray which creates an array of N random numbers from 1 to 100 using the system functions srand() and rand() and returns the newly created array.
2. calls a void function, printArray which prints an array of N numbers.
3. calls a value-returning function, avgArray which finds the average of an array of N numbers.
4. calls a value-returning function, greaterElements which finds the percentage of array elements greater than the average of the array
5. calls a value-returning function, lesserElements which finds the percentage of array elements less than the average of the array
The main function will print the result of the percentages. All output should be labeled. Your program should (better) contain comments as appropriate for each call/function.