- DoNOT change anything in main() except for adding the one functioncall -hint:
ID: 3614455 • Letter: #
Question
- DoNOT change anything in main() except for adding the one functioncall
-hint: Use do-while and for loops.
------------------------------------------------------------------------------
The tamplet:
//add generalprogram comments here
#include <iostream>
using namespace std;
int Function1(double []);
void PrintArray(const double [], int);
const int MAXSIZE =100;
int main()
{
double array1[100];
int count;
count = Function1(array1);
cout<<"There were "<<count<<"numbers entered into the array."<<endl;
//function call to function that will print thearray
return 0;
}
//Write the function here to read in numbers into the array. The array is called myarray.
//add comments describing what this function does, what is passedto it, what it sends back, etc.
int Function1(double myarray[])
{
}
//Write the new function here along with comments
//add comments describing what this function does, what is passedto it, what it sends back, etc.
void PrintArray(const double a1[], int size)
{
}