Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

int Function1(double []); void PrintArray(const double [], int); const int MAXSI

ID: 3614599 • Letter: I

Question

int Function1(double []);

void PrintArray(const double [], int);

const int MAXSIZE = 100;

int main()

{

        doublearray1[100];

        int count;

        count =Function1(array1);

        cout << "Therewere " << count << " numbers entered into the array."<< endl;

        PrintArray(array1,count);                                          return 0;

}

int Function1(double myarray[])

        cout << "Please Enter a Number. The maximum amount allotted it 100numbers. " << endl;

        cout << " Tostop early, enter a negative number. " << endl <<endl;

        do

    {

              i++;

              cout << "Enter a Positive Integer: ";

           cin >> myarray[i];

    } while( myarray[i] >= 0 && i <MAXSIZE-1);

              if(i == MAXSIZE-1 && myarray[i] >= 0)

              i++;

              return i;

}

void PrintArray(const double a1[], int size)

{

        for (int i = 0; i< size; i++)

              cout << " The array is as follows: " << a1[i] <<" " << endl;

}

Explanation / Answer

please rate - thanks #include using namespace std; int Function1(double []); void PrintArray(const double [], int); int search(double [],int,double); const int MAXSIZE = 100; int main() {         doublearray1[100],key;         int count,found;         count =Function1(array1);         cout