private static void IsvedaIEkranaMetiniVidurki(Studentas item) { double metVidurkis = item.PaskaiciuojaMetiniVidurki(item.Trimestras1, item.Trimestras2, item.Trimestras3); Console.WriteLine("METINIS VIDURKIS: {0} ({1})", Math.Round(metVidurkis, 0), Math.Round(metVidurkis, 2)); Console.WriteLine("*****************************************"); Console.WriteLine(); Console.WriteLine(); }
public static Studentas[] SukuriaStudentuMasyva() { Studentas[] studMasyvas = new Studentas[5]; studMasyvas[0] = new Studentas(12345987, new int[] { 10, 6, 9, 9, 9, 10, 5, 8 }, new int[] { 7, 5, 9, 7, 9, 10, 10, 6, 8 }, new int[] { 10, 5, 9, 8, 9 }); studMasyvas[1] = new Studentas(54125131, new int[] { 5, 8, 10, 9, 5, 7 }, new int[] { 5, 9, 8, 10, 6, 8, 7 }, new int[] { 10, 9, 9, 10, 8, 6 }); studMasyvas[2] = new Studentas(78651326, new int[] { 10, 10, 9, 8, 9, 10, 8, 9 }, new int[] { 9, 9, 8, 9, 10, 7, 10, 10 }, new int[] { 7, 10, 10, 9, 8, 10, 10 }); studMasyvas[3] = new Studentas(75324185, new int[] { 6, 7, 6, 5, 6, 6, 7 }, new int[] { 6, 7, 8, 7, 9, 10 }, new int[] { 7, 6, 8, 7, 9, 9 }); studMasyvas[4] = new Studentas(32510555, new int[] { 10, 8, 8, 9, 8, 7, 8, 10 }, new int[] { 7, 8, 9, 9, 8, 5, 9 }, new int[] { 10, 10, 9, 9, 8, 9, 10 }); return(studMasyvas); }