Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //el mayor problema no imprime como corresponde, a
- veces ok, pero otras mal, no encuentro el error
- }for(int i = 0; i < alumnos.length; i++){
- if(notas[i][7] > mayor){
- mayor = notas[i][7];
- mejor = i;
- System.out.print(String.format(" Nota mayor: %.1f
- ",mayor)); {
- System.out.println("Mejor: " + alumnos[i]);
- }
- }
- }
- run:
- Notas alumno: Diego [2.9][1.4][4.3][3.7][2.4][1.1][4.8] Nota final -->
- 3,1
- Notas alumno: Martina [3.0][1.5][3.3][6.9][1.5][2.0][4.0] Nota final --
- > 3,0
- Notas alumno: Monse [6.9][2.2][4.3][6.1][6.7][2.0][5.1] Nota final -->
- 4,6
- Notas alumno: Gustavo [2.5][3.8][1.2][2.9][3.2][2.2][7.0] Nota final --
- > 4,4
- Nota mayor: 3,1 Mejor: Diego
- Nota mayor: 4,6 Mejor: Monse
- Promedio general del curso : 3,8 Ingrese un nombre para buscar:
- Nota mayor: 4,6 Mejor: Monse
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement