public static void FindOutMinAndMax(ODArray a) { var min = a.Array.Min(); var max = a.Array.Max(); Console.WriteLine($"Array {a.SerialNumber}:\nminimal element = {min}, maximum element = {max}"); }
public static void CheckForNegative(ODArray a) { if (a) { Console.WriteLine($"Array {a.SerialNumber} doesn't contain negative element(s)"); } else { Console.WriteLine($"Array {a.SerialNumber} contains negative element(s)"); } }
public static void Compare(ODArray a1, ODArray a2) { if (a1 > a2) { Console.WriteLine($"Array {a1.SerialNumber} is longer than array {a2.SerialNumber}"); } else { Console.WriteLine($"Array {a1.SerialNumber} is less than array {a2.SerialNumber}"); } }
public Date(ODArray parent) { dateOfCreation = DateTime.Now; this.parent = parent; }