Write a C++ program that inside declares an array Alpha of 20 elements of double
ID: 3647576 • Letter: W
Question
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 0Explanation / Answer
#include //#include using namespace std; void SetArray(double Aray[]){ 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.