Update iPercentage.cpp

Added percent() method