4-(30) Consider the following main function.
int main ()
{
int A[6];
int Smallest = 0;
int ReadArray ( int A[]);
int FindSmallest ( int A[] );
void PrintResults (smallest);
ReadArray (A);
Smallest = FindSmallest (A);
PrintResults (Smallest);
Return 0;
}
a) Write the function intReadArray ( intA[] ) to read 6 intergers andstores them into one
b) Write the function intFindSmallest (int A [] ) to find the smallestnumber that is stored into the array.
c) Write the function voidPrintResults(int Smallest)to print the results (that you find in b).
5-(30) Consider the following class definition and the mainfunction:
#include <cstdlib>
#include <iostream>
using namespace std;
PayPal Gateway not configured
PayPal Gateway not configured