using System;
using System.Collections.Generic;
using System.Text;
namespace Lab_Eleven
{
class Program
{
static void Main(string[] args)
{
int[] load = {34, 56, -12, 45, 67, -876, 341};
MyArray ma = new MyArray(load);
//Use the methods you wrote in MyArray to
// report the smallest, the largest, the sum
// and the average of the members of ma.
}
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Lab_Eleven
{
class MyArray
{
private int[] arr;
public MyArray(int[] arrIn)
{
arr = arrIn;
}
//Write a method GetLowest() which returns the smallest
//member of arr.
//write a method GetHighest() which returns the largest
//member of arr.
//Write a method GetTotal() which returns the sum of the
//members of arr.
//Write a method GetAverage() which returns the average
//of the members of arr.
}
}