package institucion ;
import java.io.BufferedReader ;
import java.io.IOException ;
import java.io.InputStreamReader ;
public class InstitucionTest {
int opcion;
Matricula matricula = new Matricula( ) ;
do {
System .
out .
println ( "1. Leer la informacion de cada estudiante" ) ; System .
out .
println ( "2. Matricular materias de un estudiante" ) ; System .
out .
println ( "3. Agregar o modificar notas de las asignaturas a cargo de un coente" ) ; System .
out .
println ( "4. Calcular el promedio de notas del semestre de un estudiante con respecto al n�mero de cr�ditos matriculados" ) ; System .
out .
println ( "5. Calcular el promedio general de toda la institucion" ) ; System .
out .
println ( "6. Imprimir los estudiantes con promedio inferior a 3.0" ) ; System .
out .
println ( "7. Buscar un estudiante y un docente por su numero de identificacion y/o numeros de contacto" ) ; System .
out .
println ( "8. Salir" ) ;
System .
out .
print ( "Digite la opcion: " ) ; opcion
= Integer .
parseInt ( lector.
readLine ( ) ) ;
switch ( opcion) {
case 1 : matricula.matriculardatos ( ) ; break ;
case 2 : matricula.matricular_materias ( ) ; break ;
case 3 : matricula.notas_docente ( ) ; break ;
case 8 : opcion = 8 ; break ;
default : break ;
}
} while ( opcion!= 8 ) ;
}
}
cGFja2FnZSBpbnN0aXR1Y2lvbjsKIAogCiAKaW1wb3J0IGphdmEuaW8uQnVmZmVyZWRSZWFkZXI7CmltcG9ydCBqYXZhLmlvLklPRXhjZXB0aW9uOwppbXBvcnQgamF2YS5pby5JbnB1dFN0cmVhbVJlYWRlcjsKIAogCnB1YmxpYyBjbGFzcyBJbnN0aXR1Y2lvblRlc3QgewogCiAgICAgICAgCiAgICAgICAgCiAgICAgICAgICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBJT0V4Y2VwdGlvbiB7CiAKICAgICAgICAgICAgICBCdWZmZXJlZFJlYWRlciBsZWN0b3IgPSBuZXcgQnVmZmVyZWRSZWFkZXIobmV3IElucHV0U3RyZWFtUmVhZGVyKFN5c3RlbS5pbikpOyAvLyBDcmVhciBsZWN0b3IgLy8KICAgICAgICAgICAgICBpbnQgb3BjaW9uOwogICAgICAgICAgICAgIAogICAgICAgICAgICAgIE1hdHJpY3VsYSBtYXRyaWN1bGEgPSBuZXcgTWF0cmljdWxhKCk7CiAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgIGRvewogCiAgICAgICAgICAgICAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigiMS4gTGVlciBsYSBpbmZvcm1hY2lvbiBkZSBjYWRhIGVzdHVkaWFudGUiKTsKICAgICAgICAgICAgICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCIyLiBNYXRyaWN1bGFyIG1hdGVyaWFzIGRlIHVuIGVzdHVkaWFudGUiKTsKICAgICAgICAgICAgICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCIzLiBBZ3JlZ2FyIG8gbW9kaWZpY2FyIG5vdGFzIGRlIGxhcyBhc2lnbmF0dXJhcyBhIGNhcmdvIGRlIHVuIGNvZW50ZSIpOwogICAgICAgICAgICAgICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oIjQuIENhbGN1bGFyIGVsIHByb21lZGlvIGRlIG5vdGFzIGRlbCBzZW1lc3RyZSBkZSB1biBlc3R1ZGlhbnRlIGNvbiByZXNwZWN0byBhbCBuw6/Cv8K9bWVybyBkZSBjcsOvwr/CvWRpdG9zIG1hdHJpY3VsYWRvcyIpOwogICAgICAgICAgICAgICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oIjUuIENhbGN1bGFyIGVsIHByb21lZGlvIGdlbmVyYWwgZGUgdG9kYSBsYSBpbnN0aXR1Y2lvbiIpOwogICAgICAgICAgICAgICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oIjYuIEltcHJpbWlyIGxvcyBlc3R1ZGlhbnRlcyBjb24gcHJvbWVkaW8gaW5mZXJpb3IgYSAzLjAiKTsKICAgICAgICAgICAgICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCI3LiBCdXNjYXIgdW4gZXN0dWRpYW50ZSB5IHVuIGRvY2VudGUgcG9yIHN1IG51bWVybyBkZSBpZGVudGlmaWNhY2lvbiB5L28gbnVtZXJvcyBkZSBjb250YWN0byIpOwogICAgICAgICAgICAgICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oIjguIFNhbGlyIik7CiAKICAgICAgICAgICAgICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludCgiRGlnaXRlIGxhIG9wY2lvbjogIik7CiAgICAgICAgICAgICAgICAgICAgICAgIG9wY2lvbiA9IEludGVnZXIucGFyc2VJbnQobGVjdG9yLnJlYWRMaW5lKCkpOwogICAgICAgICAgICAgICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oKTsKIAogICAgICAgICAgICAgICAgICAgICAgICBzd2l0Y2gob3BjaW9uKXsKICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgMTogbWF0cmljdWxhLm1hdHJpY3VsYXJkYXRvcygpO2JyZWFrOwogICAgICAgICAgICAgICAgICAgICAgICBjYXNlIDI6IG1hdHJpY3VsYS5tYXRyaWN1bGFyX21hdGVyaWFzKCk7YnJlYWs7CiAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgMzogbWF0cmljdWxhLm5vdGFzX2RvY2VudGUoKTticmVhazsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSA4OiBvcGNpb24gPSA4O2JyZWFrOwogICAgICAgICAgICAgICAgICAgICAgICBkZWZhdWx0OiBicmVhazsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oKTsKICAgICAgICAgICAgICAgIH13aGlsZShvcGNpb24hPTgpOwogICAgICAgIH0KIAp9
compilation info
Main.java:10: error: class InstitucionTest is public, should be declared in a file named InstitucionTest.java
public class InstitucionTest {
^
Main.java:19: error: cannot find symbol
Matricula matricula = new Matricula();
^
symbol: class Matricula
location: class InstitucionTest
Main.java:19: error: cannot find symbol
Matricula matricula = new Matricula();
^
symbol: class Matricula
location: class InstitucionTest
3 errors
stdout