View difference between Paste ID: Cd2L0rTY and xiLgf82a
SHOW: | | - or go back to the newest paste.
1
import java.util.Scanner;
2
/**
3
 * Auto Generated Java Class.
4
 */
5
public class examstats {
6-
  
6+
    public static void main(String[] args) {
7-
  
7+
        
8-
  public static void main(String[] args) { 
8+
        double A = 100; 
9-
 
9+
        double B = 90;
10-
    
10+
        double C = 80;
11-
double A = 100; 
11+
        double D = 70;
12-
double B = 90;
12+
        double F = 60;
13-
double C = 80;
13+
        double Acount, Bcount, Ccount, Dcount, Fcount, TotalCount, terminate;
14-
double D = 70;
14+
        Acount = Bcount = Ccount = Dcount = Fcount = TotalCount = terminate = 0;
15-
double F = 60;
15+
        Scanner keyboard;
16-
double Acount, Bcount, Ccount, Dcount, Fcount, TotalCount, terminate;
16+
        keyboard = new Scanner(System.in);
17-
Acount = Bcount = Ccount = Dcount = Fcount = TotalCount = terminate = 0;
17+
        int input = keyboard.nextInt();
18-
18+
        
19-
Scanner keyboard;
19+
        while (input > terminate) {
20-
keyboard = new Scanner(System.in);
20+
            if (input > B) {
21-
int input = keyboard.nextInt();
21+
                Acount ++;
22-
22+
                TotalCount++;
23-
while (input > terminate)
23+
            }
24-
{
24+
            if (input > C && input < B ) {
25-
  if (input>B)
25+
                Bcount++;
26-
{Acount ++;
26+
                TotalCount++;
27-
  TotalCount++;}
27+
            }
28-
if (input >C && input < B )
28+
            if (input > D && input < C) {
29-
{Bcount++;
29+
                Ccount ++;
30-
  TotalCount++;}
30+
                TotalCount++;
31-
if (input >D && input< C)
31+
            }
32-
{Ccount ++;
32+
            if (input > F && input < D) {
33-
  TotalCount++;}
33+
                Dcount ++;
34-
if (input> F && input <D){
34+
                TotalCount++;
35-
 Dcount ++;
35+
            }
36-
TotalCount++;}
36+
            if (input > F && input < terminate) {
37-
if (input > F && input < terminate){
37+
                Fcount++;
38-
 Fcount++;
38+
                TotalCount++;
39-
TotalCount++;}
39+
            }
40-
input = keyboard.nextInt();}
40+
            input = keyboard.nextInt();
41-
if (input < terminate)
41+
        }
42-
{
42+
        
43-
 System.out.println(Acount);
43+
        if (input < terminate) {
44-
 System.out.println (Bcount); 
44+
            System.out.println(Acount);
45-
 System.out.println (Ccount);
45+
            System.out.println (Bcount); 
46-
 System.out.println (Dcount);
46+
            System.out.println (Ccount);
47-
 System.out.println (Fcount);
47+
            System.out.println (Dcount);
48-
 System.out.println (Acount+Bcount+Ccount+Dcount+Fcount/TotalCount);
48+
            System.out.println (Fcount);
49-
}
49+
            System.out.println (Acount+Bcount+Ccount+Dcount+Fcount/TotalCount);
50-
 
50+
        }
51-
  }
51+
    }
52-
  
52+
    /* ADD YOUR CODE HERE */  
53-
  /* ADD YOUR CODE HERE */
53+