Example #1
0
int main()
{
	int* firstArray = makeArray(); //create array

	for (int n = 0; n < 8; n++) //display contents of array
	{
		cout << firstArray[n] << "  ";
	}
	cout << endl;

	cout << "Smallest number in array: " << smallestNumber(firstArray, 8) << endl; //display smallest number in array
}
 void statistician::print() const {
     cout<<"The length of the sequence is: "<<lengthSequence() << endl<< "The largest number is: " << largestNumber()<<endl<< "The smallest number is: "<<smallestNumber() << endl<< "The last number is: "<<lastNumber() << endl<< "The sum is: "<< sumOfSequence()<<endl<< "The mean of the sequence: "<<meanOfSequence()<<endl;
 }