PRN212_-_PE_-_SU_2024_2166.webp
Hương Giang1

PRN212_-_PE_-_SU_2024_2166.webp

Group<Student> group new Group<Student>("SE1824");
");Console.WriteLine(Environment.NewLine+
group.Add(new Student(2, "Nguyen Van B", new DateTime(1999, 10, 20), "SE"));
group.Add(new Student(3, "Nguyen Van C", new DateTime(1989, 11, 15), "IA"));
group.Add(new Student(4, "Nguyen Van D", new DateTime(2000, 4, 2), "GD"));
group. Show(DisplaysFullInfo0fStudent);
Console.WriteLine(Environment.NewLine -");
Console.WriteLine("Requirement 3:");
Student removeStudent = new Student(3, "Nguyen Van C", new DateTime(1989, 11, 15), "IA");group. Remove (removeStudent);
group.Show(DisplaysFullInfo0fStudent);
10
Console.WriteLine(s);
11
12
13
Console.WriteLine("Requirement 2:");
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
}
30
31
32
{
33
34
}
35
36
37
38
39
}
40
Console.WriteLine(Environment.NewLine + ");
Console.WriteLine("Requirement 4:");
group.Show(DisplaysBriefInfo0fStudent);
private static void DisplaysFullInfoOfStudent(Student student)
Console.WriteLine($"{student.Id} {student. Name} {student. Dob. ToLongDateString()} {student. Major}");
private static void DisplaysBriefInfoOfStudent(Student student)
Console.WriteLine($"{student.Id} {student.Name}");
Figure 1: class Program
(You can find this code in the Given Materials.)
The output should be the same as below
Zoom
+ 115%
Close
Chưa có bình luận nào.

Thông tin

Category
PRN212
Thêm bởi
Hương Giang1
Ngày thêm
Lượt xem
3,202
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN212_-_PE_-_SU_2024_2166.webp
File size
212.1 KB
Dimensions
1920px x 991px

Share this media

Back
Bên trên Bottom