Exemple #1
0
        static void Ex2()
        {
            SetOfStudents students = new SetOfStudents();

            students.ShowAll();
            //todo dolozenie informacji o ilosci studentow w ShowAll
            //todo napisanie metody ktora oblicza ile jest studentow w danym zakresie wiekowym
        }
Exemple #2
0
        static void Ex2()
        {
            SetOfStudents students = new SetOfStudents();

            students.ShowAll();
            Console.WriteLine("=========================================================");
            Console.Write("Wybierz od jakiej sredniej wyswietlac?: ");
            double avg = Convert.ToDouble(Console.ReadLine());

            students.ShowAllAbove(avg);
            Console.WriteLine("=========================================================");
            students.ShowAllBelow(avg);
            //todo napisanie metody ktora oblicza ile jest studentow w danym zakresie wiekowym
            Console.WriteLine($"Ilosc z przedzialu: {students.CountAllBetween(16,22)}");
            //todo wyswietlic wszystkich studentow o nazwisko dluzszym niz arg funkcji ShowOver(6)
        }