-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
36 lines (26 loc) · 914 Bytes
/
Program.cs
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
using System.Net.NetworkInformation;
namespace ProyectoIntegrador;
class Program
{
static void Main(string[] args)
{
Student student = new Student();
List<Course> courses = new List<Course>
{
new Course("Programación .Net", "3 Meses"),
new Course("Programación Java", "4 Meses"),
new Course("Programación PHP", "3 Meses"),
new Course("Programación C++", "5 Meses"),
new Course("Diseño Web", "2 Meses")
};
student.SignUp();
char reply;
do
{
student.SignUpToCourse(courses);
Console.WriteLine("¿Desea seleccionar otro curso? - 'S' para sí, 'N' para no");
reply = char.ToUpper(Console.ReadKey().KeyChar);
} while (reply == 'S');
student.ShowInscriptions();
}
}