What are you looking to get your percentage of? This would end up going into the class for the specified method. public double percent(double num1, double num2){ double sum = num1 + num2; double percentage = 0; // Add code here to get percentage of whatever it is you need. return percentage; }
1.05% would be 0.0105
if it was 98% it would be 0.98 therfore move the decimal place (behind the 8) two spots to the left. same with 1.05%... move the decimal two spots to the left.