I used your suggestion of using an array. It worked. Thanks you so much for the suggestion!
-Can you help me figure out why percent[x] is giving me 0.00? Thanks
int total = 0 ;
for(int i = 0 ; i < rate.length; i++)
total += rate[i];
double  percent = new double;
System.out.println("Total is "+total);
System.out.println("Rate at  is " + rate);
for(int x = 0 ; x < rate.length;x++)
percent[x] = (rate[x] / total);
System.out.println("Percent at  is "+percent);
Total is 52
Rate at  is 7
Percent at  is 0.0
** It work when I cast rate to an int but why does this occur? Isn't the percent is a double so wouldn't it result in a double without me casting the rate?