0% found this document useful (0 votes)
12 views2 pages

Java Student Enrollment System

Uploaded by

Aanrb
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

Java Student Enrollment System

Uploaded by

Aanrb
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

package ejemplo2;

import [Link];
public class inscripcion
{

public static void main(String[] args)


{

String alumno[][]={{"11030678","JuanPerez"},{"11030679","PEdro JuanPerez"}};


String materia[][]={{"A1","Programacion"},{"A2","Qu�mica"},{"A3","Matematicas"},
{"A4","Desarrollo Sustentable"}};
String inscri[][]= new String[3][7];
String texto="",texto2="";
for(int i=0;i<[Link];i++){
texto+="No. :" + alumno[i][0]+" Nombre: "+alumno[i][1]+"\n";
//[Link](texto);
for(int j=0;j<alumno[i].length;j++){
//[Link](null, alumno[i][j]);
}
}

for(int i=0;i<[Link];i++){
texto2+="Clave :" + materia[i][0]+" Nombre: "+materia[i][1]+"\n";
//[Link](texto);

}
for(int i=0;i<[Link];i++){

inscri[i][0]=[Link]( texto+"DAme el num control");


inscri[i][1]=[Link](texto2+"DAme la materia");
inscri[i][2]=[Link]("DAme la calificacion1");
inscri[i][3]=[Link]("DAme la calificacion 2");
double var= [Link](inscri[i][2]) ;

[Link](null,[Link](inscri[i][2]) +
[Link](inscri[i][3]));
}
int ar[]={0,0,0,0};
for(int i=0; i<[Link];i++){
if ("A1".equals(inscri[i][1]))
ar[0]++;
else if ("A2".equals(inscri[i][1]))
ar[1]++;
else if ("A3".equals(inscri[i][1]))
ar[2]++;
else if ("A4".equals(inscri[i][1]))
ar[3]++;

for(int i=0; i<[Link];i++){


[Link](materia[i][1] + " no alumnos: " + ar[i] );
}

for(int i=0; i<[Link];i++){


int total=0;
for(int j=0; j< [Link];j++){
if(materia[i][0].equals(inscri[j][1]))
total++;
}
[Link](materia[i][1] + " no alumnos: " + total );

}
}

You might also like