Originally posted by Ray Stojonic:
The good news: your mask is just fine.
The bad news: Your algorithm is not doing what you are expecting it to do. Try outputting the value of percentGirls without formatting it to see what I mean.
//Here is my output without the mask:
Percent Females: 41.66666666666667
//Heres the algorithm:
//percentages by gender
double percentGirls=(((double)totalGirls/totalStudents)*100);
System.out.println("Percent Females:"+" "+percentGirls);