Pergunta : Porcentagem da classe da contagem

Ajudar-me para fora here.
What são mim que faço erradamente. Tem que ser algo com o dobro I think
class= > " desobstruído " do
> do " codeSnippet " do class= do
class= " lineNumbers " do
class= do
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:
gradeDistibution vago de estática >public notpretty " do class= " do id= " codeSnippet847988 do
= de /100.0) examPoints do && [i] (Math.rint (gradeLimits [1] * 100.0d) /100.0))
				{
					Acounter++;					
				}
					
				mais se (<= dos examPoints [i] (Math.rint (gradeLimits [1] * 100.0d) >= de /100.0) examPoints do && [i] (Math.rint (gradeLimits [2] * 100.0d) /100.0))
				{					
					Bcounter++;		
				}	
				
				mais se (<= dos examPoints [i] (Math.rint (gradeLimits [2] * 100.0d) >= de /100.0) examPoints do && [i] (Math.rint (gradeLimits [3] * 100.0d) /100.0))
				{					
					Ccounter++;					
				}				
				
				mais se (<= dos examPoints [i] (Math.rint (gradeLimits [3] * 100.0d) >= de /100.0) examPoints do && [i] (Math.rint (gradeLimits [4] * 100.0d) /100.0))
				{					
					Dcounter++;					
				}				
				
				mais se (<= dos examPoints [i] (Math.rint (gradeLimits [4] * 100.0d) /100.0))
				{					
					Fcounter++;					
				}						
		}
		
		
		
		//Calculations 		
		Apercent dobro = ((Acounter/examPoints.length) *100);	
		Bpercent dobro = ((Bcounter/examPoints.length) *100);	
		Cpercent dobro = ((Ccounter/examPoints.length) *100);	
		Dpercent dobro = ((Dcounter/examPoints.length) *100);	
		Epercent dobro = ((Ecounter/examPoints.length) *100);
		Fpercent dobro = ((Fcounter/examPoints.length) *100); 	
		passagem do int = (Acounter+Bcounter+Ccounter+Dcounter);	
		passPercent dobro = ((passagem/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 (passagem);
		System.out.println (passPercent);
		
		

	}
class= do

Resposta : Porcentagem da classe da contagem

usar dobros para ints da aritmética não


            dobrar a passagem = (Acounter+Bcounter+Ccounter+Dcounter);      
            dobrar passPercent = ((passagem examPoints.length (dobro)) *100.0);
Outras soluções  
 
programming4us programming4us