Formato adsi
Enviado por CARMI1224 • 18 de Octubre de 2015 • Resumen • 1.279 Palabras (6 Páginas) • 88 Visitas
package matrices;
import java.util.*;
public class matriz2 {
static void main(String[] args) {
Scanner m=new Scanner(System.in);
String j="";
String id,nombres,apellidos,programa,trimestre,nota1,nota2,nota3,nota4;
float promedio;
int e,n1,n2,n3,n4;
double n=0;
System.out.println("*************MENU************");
System.out.println("marque 1 para el reporte semestral: ");
System.out.println("marque 2 para el promedio");
System.out.println("marque 3 para salir \n");
e=m.nextInt();
for (int r=0;r<e;r++);
{
System.out.println("ingrese el nombre\n");
nombres=m.next();
System.out.println("ingrese los apellidos\n");
apellidos=m.next();
System.out.println("ingrese el programa\n");
programa=m.next();
System.out.println("ingrese el trimestre\n");
trimestre=m.next();
System.out.println("ingrese la nota1\n");
nota1=m.next();
System.out.println("ingrese le nota2\n");
nota2=m.next();
System.out.println("ingrese le nota3\n");
nota3=m.next();
System.out.println("ingrese le nota4\n");
nota4=m.next();
if (nota1.charAt (0)=='f')
{
n1++;
n1=n1+m.nextDouble();
}
else
{
n2++;
n2=n2+m.nextDouble();
}
System.out.append("el resultado es:");
System.out.println();
System.out.println();
String datos[][]={
{"51662369","Sandra Milena Castellanos Marín","Medicina","VI","3.5","4.0","3.3","3.5"},
{"80223220","Luis Andrés Montoya Montoya","Ingeniería de Telecomunicaciones","IV","3.0","3.3","4.2","4.5"},
{"79444555","Francisco Martínez Marin","Ingeniería de Alimentos","III","3.4","4.5","4.4","3.0"},
{"79001003","Luis Francisco Castañeda Roa","Ingeniería de Sistemas","VIII","3.3","3.4","4.5","4.4"},
{"79003003","Pedro José Pineda Pineda","Odontología","VI","4.0","4.1","3.9","4.5"},
{"52900901","Ruth Paola Mahecha Mahecha","Odontología","VII","3.6","3.6","3.8","3.9"},
{"26900345","Lucia Valderrama Pineda","Fisioterapia","VIII","4.4","4.5","4.1","3.1"},
{"35676900","Mariela Lucia Olguín Ramírez","Medicina","V","3.0","3.1","4.6","3.7"},
{"27101234","Lucila Peñaranda Peñaranda","Enfermería","II","2.5","4.6","3.4","4.6"},
{"80231678","Milena Palacios Palacios","Ingeniería Mecánica","III","3.6","3.4","3.5","4.5"},
{"1030617979","Luis Alberto Castellanos Frias","Odontología","VI","4.0","4.1","3.9","4.5"},
{"1019066342","Nercy Aleidis Rengifo Rengifo","Fisioterapia","VII","3.6","3.6","3.8","3.9"},
{"1014249436","Fabián Raúl Moreno Carvajal","Medicina","VIII","4.4","4.5","4.1","3.1"},
{"1022380843","Jonathan
...