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:
public статическое пустое (examPoints двойника [], двойные [] gradeLimits) { int Acounter = 0; int Bcounter = 0; int Ccounter = 0; int Dcounter = 0; int Ecounter = 0; int Fcounter = 0; счетчик int = 0; для (int iий = 0; iий < examPoints.length; i++) { если (<= examPoints [I] (Math.rint (gradeLimits [0] * 100.0d) >= /100.0) examPoints && [I] (Math.rint (gradeLimits [1] * 100.0d) /100.0)), то { Acounter++; } еще если (<= examPoints [I] (Math.rint (gradeLimits [1] * 100.0d) >= /100.0) examPoints && [I] (Math.rint (gradeLimits [2] * 100.0d) /100.0)), то { Bcounter++; } еще если (<= examPoints [I] (Math.rint (gradeLimits [2] * 100.0d) >= /100.0) examPoints && [I] (Math.rint (gradeLimits [3] * 100.0d) /100.0)), то { Ccounter++; } еще если (<= examPoints [I] (Math.rint (gradeLimits [3] * 100.0d) >= /100.0) examPoints && [I] (Math.rint (gradeLimits [4] * 100.0d) /100.0)), то { Dcounter++; } еще если (<= examPoints [I] (Math.rint (gradeLimits [4] * 100.0d) /100.0)), то { Fcounter++; } } //Calculations двойное Apercent = ((Acounter/examPoints.length) *100); двойное Bpercent = ((Bcounter/examPoints.length) *100); двойное Cpercent = ((Ccounter/examPoints.length) *100); двойное Dpercent = ((Dcounter/examPoints.length) *100); двойное Epercent = ((Ecounter/examPoints.length) *100); двойное Fpercent = ((Fcounter/examPoints.length) *100); пропуск int = (Acounter+Bcounter+Ccounter+Dcounter); двойное passPercent = ((пропуск/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 (пропуск); System.out.println (passPercent); }