Write a C++ program that inside declares an array Alpha of 20 elements of double data type. Inside main pass array Alpha to a function SetArray() that will assign the first ten elements equal to square of subscript of the elements and the last ten elements equal to three times of subscript of the elements. Inside main 0, pass array Alpha to a function Display that will display all the elements of the array. Inside main 0, pass array Alpha to a function Returnsum that will return and display the sum of the elements of the array inside main 0
Explanation / Answer
#include //#include using namespace std; void SetArray(double Aray[]){ for(int i=0;i