1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64:
= dei /100.0) examPoints del && [i] (Math.rint (gradeLimits [1] * 100.0d) /100.0)) { Acounter++; } altrimenti se (<= dei examPoints [i] (Math.rint (gradeLimits [1] * 100.0d) un >= dei /100.0) examPoints del && [i] (Math.rint (gradeLimits [2] * 100.0d) /100.0)) { Bcounter++; } altrimenti se (<= dei examPoints [i] (Math.rint (gradeLimits [2] * 100.0d) un >= dei /100.0) examPoints del && [i] (Math.rint (gradeLimits [3] * 100.0d) /100.0)) { Ccounter++; } altrimenti se (<= dei examPoints [i] (Math.rint (gradeLimits [3] * 100.0d) un >= dei /100.0) examPoints del && [i] (Math.rint (gradeLimits [4] * 100.0d) /100.0)) { Dcounter++; } altrimenti se (<= dei examPoints [i] (Math.rint (gradeLimits [4] * 100.0d) /100.0)) { Fcounter++; } } //Calculations doppio Apercent = ((Acounter/examPoints.length) *100); doppio Bpercent = ((Bcounter/examPoints.length) *100); doppio Cpercent = ((Ccounter/examPoints.length) *100); doppio Dpercent = ((Dcounter/examPoints.length) *100); doppio Epercent = ((Ecounter/examPoints.length) *100); doppio Fpercent = ((Fcounter/examPoints.length) *100); passaggio di int = (Acounter+Bcounter+Ccounter+Dcounter); doppio passPercent = ((passaggio/examPoints.length) *100); System.out.println (Apercent); System.out.println (Bpercent); System.out.println (Cpercent); System.out.println (Dpercent); System.out.println (Epercent); System.out.println (Fpercent); System.out.println (passaggio); System.out.println (passPercent); }