Answer:
#include <iostream>
using std::cout;
using std::endl;
double maxValue(
double arr,
const int arrSize);
int main()
{
const int arrSize = 10;//Size of the array you are going to use
double arr[arrSize] = {0.0};
cout << endl << "Enter the array elements..."
for ( int i = 0; i < arrSize; i++ )
{
cout << endl << "Enter " << (i + 1) << " element:";
cin >> arr[i];
}
cout << endl << "Max value is: " << maxValue;
system("PAUSE");return 0;