Esempio n. 1
0
        public static void run()
        {
            Console.Write("Path: ");
            var         path = Path.GetFullPath($"Task 7/{Console.ReadLine()}");
            WeatherDays w    = new WeatherDays();

            try {
                w.LoadFromFile(path);
                Task7 t = new Task7(w);
                t.CountFoggyDays();
                t.CountNoPrecipitationDays();
                t.MaximalAtmosphericPressure();
                t.MinimalAtmosphericPressure();
            } catch (Exception) {
                Console.WriteLine($"Invalid path {path}");
            }
        }
Esempio n. 2
0
 public Task7(WeatherDays weatherDays)
 {
     this.weatherDays = weatherDays;
 }