Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package br.teste;
- public class MediaAlunos {
- public static void main(String[] args) {
- final double NOTA_MINIMA=7.0;
- String []nomeAlunos= {"Joao","Ana","Carlos","Antonio"};
- double []nota_Joao= {5.0,5.0,5.0,5.0};
- double []nota_Ana= {6.0,6.0,6.0,6.0};
- double []nota_Carlos= {7.0,7.0,7.0,7.0};
- double []nota_Antonio= {8.0,8.0,8.0,8.0};
- //mostras o nome dos alunos e suas notas
- for(int i=0;i<nomeAlunos.length;i++) {
- System.out.println(nomeAlunos[i]);
- for(int j=0;j<nota_Joao.length;j++){
- {System.out.println(nota_Joao[j]);
- if(j==nota_Joao.length){
- break ;}}
- }
- for(int z=0;z<nota_Ana.length;z++){
- {System.out.println(nota_Ana[z]);
- if(z==nota_Ana.length){
- break ;}}
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment