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

Please post entire code, including any driver.java You can use pastebin.com for

ID: 3528416 • Letter: P

Question


Please post entire code, including any driver.java
You can use pastebin.com for the code.

Thanks

Henry is a teacher who needs to know how many students passed a quiz based on a certain cut-off point. He wants you to write a program that reads in 10 scores, then prints a listing of how many students would pass or fail based on cut-off points between 60 and 70 (in 1 point increments). For example, a cut-off point of 60 means anyone with 60 or higher passes; anyone with less than 60 fails. An example run follows: Enter the 10 grades: 100 87 55 69 67 88 96 60 93 67 Goal: Your task is to write a program named Cutoff that reads in 10 grades and prints the number passes and fails based on cut points between 60 and 70.

Explanation / Answer

import java.util.*;
import java.lang.*;

class Main
{
public static void main (String[] args) throws java.lang.Exception
{
int[] a = new int[10];
Scanner in = new Scanner(System.in);
System.out.println("Enter the 10 grades");
for(int i=0; i<10; i++)
{
a[i] = in.nextInt();
}
System.out.println("Cutoff pass fail");
for(int cut=60; cut<71; cut++)
{
int count = 0;
for(int i=0; i<10; i++)
{
if(a[i] >= cut) count++;
}
System.out.println(" " + cut + " "+ count + " " + (10-count));
}
}
}

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