static void Main(string[] args) { Alumnos Jose = new Alumnos("Jose", "ING. Sistemas"); Licenciatura Sofia = new Licenciatura("Sofia", "ING. Sistemas", "ITT", "SONY"); Posgrado Ernesto = new Posgrado("Ernesto", "Ciencias en Tecnologias Avanzadas", "Inteligencia Artificial"); Jose.Print(); Sofia.Print(); Ernesto.Print(); }
static void Main(string[] args) { Licenciatura Martin = new Licenciatura("Martin", "Sistemas", "Samsung", "INVOLVE"); Posgrado Jesus = new Posgrado("Jesus", "Sistemas", "Inteligencia artificial"); Alumnos Veranda = new Alumnos("Veranda", "Sistemas"); Martin.Print(); Jesus.Print(); Veranda.Print(); }
static void Main(string[] args) { Alumnos Juan = new Alumnos("Juan"); Juan.Saluda(); Licenciatura Pedro = new Licenciatura("Pedro", "hacer Servicio social y residencia"); Pedro.Saluda(); Posgrado Paquito = new Posgrado("Paquito", "hacer una invetigación de un tema"); Paquito.Saluda(); }
static void Main(string[] args) { //Creacion de tres objetos //el primero siendo el de Licenciatura Licenciatura Jerry = new Licenciatura("Jerry", "Sistemas", "CENIDE", "Planatronics"); //el segundo siendo el de posgrado Posgrado Tom = new Posgrado("Tom", "Ciencias computacionales", "Inteligencia artificial"); //el tercero siendo el de un alumno en general Alumnos Jeff = new Alumnos("Jeff", "TICS"); //Impresion por medio del print creado en las tres clases Jerry.Print(); Tom.Print(); Jeff.Print(); }
static void Main() { Alumnos Rodo = new Alumnos("Rodolfo Hernandez"); Licenciatura Rodolfo = new Licenciatura("Rodolfo", "Cruz Roja ", "Eco Comercializadora"); Posgrado Ivan = new Posgrado("Ivan Hernandez", "Inteligencia Artificial"); List <Alumnos> alumn = new List <Alumnos>(); alumn.Add(Rodo); alumn.Add(Rodolfo); alumn.Add(Ivan); foreach (Alumnos a in alumn) { a.Presentate(); } }
static void Main(string[] args) { Alumnos alumnos = new Alumnos(); Grupo grupo = new Grupo(); Carreras carreras = new Carreras(); Institucion institucion = new Institucion(); Console.WriteLine("--------------------------------------------"); Console.WriteLine("Alumnos consultado"); RegAlumnos resultadoConsulta = alumnos.ConsultarAlumnos(2000); Console.WriteLine(resultadoConsulta.nombres + " " + resultadoConsulta.Aplleidos + " " + resultadoConsulta.matricula); Console.WriteLine("Matricula: " + resultadoConsulta.matricula); Console.WriteLine("--------------------------------------------"); Console.WriteLine(); Console.WriteLine("Totalidad de alumnos de la institucion"); Console.WriteLine("Nombre completo Alumnos / Matricula"); for (int i = 0; i < alumnos.listaAlumnos.Count; i++) { Console.WriteLine(alumnos.listaAlumnos[i].nombres + " " + alumnos.listaAlumnos[i].Aplleidos + " " + " / " + alumnos.listaAlumnos[i].matricula); } Console.WriteLine("--------------------------------------------"); Console.WriteLine("Alumnos de Segundo Semestre:"); foreach (var key in grupo.segundoM.Keys) { Console.WriteLine(key.nombres + " " + key.Aplleidos + " " + "(" + "Matricula:" + key.matricula + ")" + ":" + grupo.segundoM.GetValueOrDefault(key)); } foreach (var key in grupo.segundoA.Keys) { Console.WriteLine(key.nombres + " " + key.Aplleidos + " " + "(" + "Matricula:" + key.matricula + ")" + ":" + grupo.segundoA.GetValueOrDefault(key)); } Console.WriteLine("--------------------------------------------"); Console.WriteLine("Alumnos de Cuarto Semestre:"); foreach (var key in grupo.cuartoM.Keys) { Console.WriteLine(key.nombres + " " + key.Aplleidos + " " + "(" + "Matricula:" + key.matricula + ")" + ":" + grupo.cuartoM.GetValueOrDefault(key)); } foreach (var key in grupo.cuartoA.Keys) { Console.WriteLine(key.nombres + " " + key.Aplleidos + " " + "(" + "Matricula:" + key.matricula + ")" + ":" + grupo.cuartoA.GetValueOrDefault(key)); } Console.WriteLine("--------------------------------------------"); Console.WriteLine("Alumnos de Sexto Semestre:"); foreach (var key in grupo.sextoM.Keys) { Console.WriteLine(key.nombres + " " + key.Aplleidos + " " + "(" + "Matricula:" + key.matricula + ")" + ":" + grupo.sextoM.GetValueOrDefault(key)); } foreach (var key in grupo.sextoA.Keys) { Console.WriteLine(key.nombres + " " + key.Aplleidos + " " + "(" + "Matricula:" + key.matricula + ")" + ":" + grupo.sextoA.GetValueOrDefault(key)); } Console.WriteLine("--------------------------------------------"); Console.WriteLine("Alumnos de octavo Semestre:"); foreach (var key in grupo.octavoM.Keys) { Console.WriteLine(key.nombres + " " + key.Aplleidos + " " + "(" + "Matricula:" + key.matricula + ")" + ":" + grupo.octavoM.GetValueOrDefault(key)); } foreach (var key in grupo.octavoA.Keys) { Console.WriteLine(key.nombres + " " + key.Aplleidos + " " + "(" + "Matricula:" + key.matricula + ")" + ":" + grupo.octavoA.GetValueOrDefault(key)); } Console.WriteLine("--------------------------------------------"); Console.WriteLine("Informacion General de la institucion"); Console.WriteLine("--------------------------------------------"); Console.WriteLine(" "); Console.WriteLine("Carreras disponibles "); for (int i = 0; i < institucion.listaCarreras.Count; i++) { Console.WriteLine(institucion.listaCarreras[i].nombres); } Console.WriteLine("--------------------------------------------"); Console.WriteLine("Grupos actuales "); for (int i = 0; i < carreras.IngenieriaMultiMedia.Count; i++) { Console.WriteLine(carreras.IngenieriaMultiMedia[i].Grupo); } for (int i = 0; i < carreras.LicenciaturaArtesVisuales.Count; i++) { Console.WriteLine(carreras.LicenciaturaArtesVisuales[i].Grupo); } }