Write a complete c++ programs that use functions accomplish the following tasks:
ID: 3626003 • Letter: W
Question
Write a complete c++ programs that use functions accomplish the following tasks:-1.Print the array elements in this style : (printArray)
[1 , 2 , 3 , 4 , 5]
2.Print the array elements in a reverse order similar to the following: (printReverse)
[ 5 , 4 , 3 , 2 , 1 ]
3.Prints the factorial of all elements of the A array. The function should take the entire array as a parameter not individual array elements. (printFact)
4.Fill the cubes array with the cube values of the corresponding elements in the A array. The function should take individual elements from the A array and return its cube value to the main program which places the returned value in the cubes array. Print the cubes array using the printArray function. (getCube)