public override void Update()
        {
            double sum = 0;

            foreach (double number in _ns.GetNumbers())
            {
                sum += number;
            }
            Console.WriteLine("Sum: " + sum.ToString());
        }
        public override void Update()
        {
            double        sum     = 0;
            List <double> numbers = _ns.GetNumbers();

            foreach (double number in numbers)
            {
                sum += number;
            }
            Console.WriteLine("Avg: " + (sum / numbers.Count).ToString());
        }
 public override void Update()
 {
     using (StreamWriter sw = File.AppendText(filePath))
     {
         sw.WriteLine();
         sw.Write("Numbers: ");
         foreach (double number in _ns.GetNumbers())
         {
             sw.Write(number.ToString() + " ");
         }
         sw.WriteLine();
         sw.WriteLine("Time and date " + DateTime.Now.ToString());
     }
 }
        public override void Update()
        {
            List <double> numbers = _ns.GetNumbers();

            numbers.Sort();
            if (numbers.Count % 2 == 0)
            {
                int    index = numbers.Count / 2;
                double mean  = (numbers[index] + numbers[index - 1]) / 2;
                Console.WriteLine("Mean: " + mean.ToString());
            }
            else
            {
                double n     = (double)numbers.Count / 2;
                int    index = Convert.ToInt32(Math.Floor(n));
                Console.WriteLine("Mean: " + numbers[index].ToString());
            }
        }