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)
Explanation / Answer
please rate....thanks #include #include void printArray(int[]); void printReverse(int[]); void printFact(int[]); int getCube(int a); void main() { clrscr(); int a[5]; for(int i=0;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.