1 Package com.java1995;2 3 import Java.util.Scanner;4 5 Public classArray6 {7 Public Static voidMain (string[] args)8 {9 //int[] array1=new int[10];Ten //System.out.println (array1.length); One //Student Performance Management System A intstudent; - Doublesum=0, avg=0;//Average score - Double[] temp=New Double[Ten]; the //creates an object of the scanner class that is used to obtain the object entered by the user. -Scanner sc=NewScanner (System.inch);//input to Java. -System. out. println ("Please enter the top 10 results"); - for(student=0; student<temp.length;student++) + { -Temp[student]=sc.nextdouble ();//input to Java. +sum+=Temp[student]; A } atavg=sum/Ten; -System. out. println ("average is"+avg); - for(student=0; student<temp.length;student++) - { - if(temp[student]<avg) - { inSystem. out. println ("The student's performance is lower than the average score"); - } to Else + if(temp[student]>avg) - { theSystem. out. println ("The student's performance is higher than the average score"); * } $ ElsePanax Notoginseng { -System. out. println ("The student's achievement is equal to the average score"); the } + } A } the}
arrays and inputs for Java