-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
76 lines (36 loc) · 1.27 KB
/
Copy pathProgram.cs
File metadata and controls
76 lines (36 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// See https://aka.ms/new-console-template for more information
using LinqPractice;
using System.Security.Cryptography.X509Certificates;
using System.Xml.Schema;
var students = StudentService.populateArray();
List <string> firstName = new List<string>();
firstName = StudentService.ListAllUserFirstNames(students);
foreach (var name in firstName)
{
Console.WriteLine(name);
}
Console.WriteLine();
List<string> fullName = new List<string>();
fullName = StudentService.ListUserFullNames(students);
foreach(var name in fullName)
{
Console.WriteLine(name);
}
Console.WriteLine();
Console.WriteLine($"Number Of Students: {StudentService.NumberOfStudents(students)}");
Console.WriteLine();
Console.WriteLine($"Number Of Active Students: {StudentService.NumberOfActiveStudents(students)}");
Console.WriteLine();
foreach (var student in students)
{
Console.WriteLine($"{student.FirstName} {student.LastName}");
Console.WriteLine(student.Email);
Console.WriteLine("Phone: " + string.Join(", ", student.Number));
Console.WriteLine("Grades:");
foreach (var grade in student.Grades)
{
Console.WriteLine($" - {grade.Key}: {grade.Value}");
}
Console.WriteLine($"isActive: {student.isActive}");
Console.WriteLine();
}