Question: 3. Write a C++ program that declares an array alpha of 50 components of the type double. a Initialize the array so that the first

3. Write a C++ program that declares an array alpha of 50 components of the type double. a Initialize the array so that the first 25 components are equal to the index to power 3 (index) and the last 25 components are equal to ten times of square root of index (10*sqrt (index). The program prints the array as 10 elements per line, fixed and precision (2) for element. The program contents a function selectionSort to display the sorted array from the smallest to biggest elements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
