コード例 #1
0
 public static void SyntheticStudents(PrivateSchool CodingBootcamp)
 {
     CodingBootcamp.AddStudent("Alex", "Psychoson", new DateTime(1995, 12, 10), 2500);
     CodingBootcamp.AddStudent("Nikos", "Papas", new DateTime(1997, 7, 10), 2500);
     CodingBootcamp.AddStudent("Dimitris", "Doykas", new DateTime(1990, 8, 20), 2500);
     CodingBootcamp.AddStudent("Stelios", "Pyrgaki", new DateTime(1985, 2, 10), 2500);
     CodingBootcamp.AddStudent("Hektor", "Kontoes", new DateTime(1975, 9, 1), 2500);
     CodingBootcamp.AddStudent("Argyris", "Koukounasoulis", new DateTime(1965, 2, 12), 2500);
     CodingBootcamp.AddStudent("Manos", "papadakakis", new DateTime(1955, 3, 21), 2500);
     CodingBootcamp.AddStudent("Kwstas", "gkikas", new DateTime(1987, 4, 12), 2500);
     CodingBootcamp.AddStudent("Mpampis", "panago", new DateTime(1987, 1, 16), 2500);
     CodingBootcamp.AddStudent("Artemis", "psycho", new DateTime(1967, 2, 19), 2500);
 }
コード例 #2
0
 public static void SyntheticStudents(PrivateSchool CodingBootcamp, int times)
 {
     for (int i = 0; i < times; i++)
     {
         CodingBootcamp.AddStudent("Alex", "Psychoson", new DateTime(1995, 2, 1), 2500);
     }
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: alekoundas/Assignment
        //-----------------Intput For User------------------\\
        static void add_student(PrivateSchool CodingBootcamp)
        {
            string   name         = CommonTools.NameStudentInput();
            string   lname        = CommonTools.LastnameStudentInput();
            DateTime dateOfBirth  = CommonTools.DateOfBirthStudentInput();
            double   tuition_fees = CommonTools.TuitionStudentInput();


            CodingBootcamp.AddStudent(name, lname, dateOfBirth, tuition_fees);
        }