Write a program that allows the user to enter students\' namefollowed by their t
ID: 3607919 • Letter: W
Question
Write a program that allows the user to enter students' namefollowed by their test scores and outputs the following information(assume that the maximum number of students in the class is50): . A. Class average B. Names of all the students whose test scores are below theclass average, with an appriate message. C. Highest test score and the names of all the students havingthe highest score. Write a program that allows the user to enter students' namefollowed by their test scores and outputs the following information(assume that the maximum number of students in the class is50): . A. Class average B. Names of all the students whose test scores are below theclass average, with an appriate message. C. Highest test score and the names of all the students havingthe highest score.Explanation / Answer
please rate - thanks any questions message me import java.util.*; public class Malik9averagearray {public static void main(String args[]) {double[]average=new double[50]; //atmost 50 students String[]name=new String[50]; String[]highname=new String[50]; char more='y'; String temp; int i=0,count=0,grade,j, highgrade=0,highcount=-1; double classaverage,sum=0; Scanner input= new Scanner(System.in); while(more=='y'||more=='Y') {System.out.print("Enter name " + (i+1)+":"); name[i]=input.next(); System.out.print("Enter grade (Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.