Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a java program that reads a file consisting of students testscores in the

ID: 3658429 • Letter: W

Question

Write a java program that reads a file consisting of students testscores in the range 0-200. It should then determine thenumber of students having scores in each of the followingranges:0-24, 35-49, 50-74, 75-99,100-124,125-149,150-174,and175-200. Output the score ranges and the number ofstudents. (Run your prgram with the following input data:76.89,150,200,76,12,100,150,28,178,189,167,200,175,150,87,99,129,149, 176,200,87,35,157,189.

Explanation / Answer

import java.io.BufferedInputStream; import java.util.Locale; import java.util.Scanner; class divide{ public static void main(String[] args){ Scanner scanner = new Scanner(new BufferedInputStream(System.in) int r1 = 0,r2=0,r3=0,r4=0,r5=0,r6=0,r7=0,r8=0,p = 1; double q = 0; System.out.println("Enter the inputs scores of the students :"); for( i = 0;i < 24; i++){ q = scanner.nextDouble(); if(q >=0 && q =35 && q =50 && q =75 && q =100 && q =125 && q =150 && q =175 && q
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote