You should round percentages to the nearest integer. You can use the Math.round method to do so, but you will have to cast the result to an int, as in:
int percent = (int) Math.round(percentage);
One of the things to keep in mind for this program is that you are transforming data from one form to another.
If you work through this step by step, the problem will be easier to solve. The following diagram summarizes the different transformations: