concept gettippercentage function in category functional programming

appears as: The getTipPercentage function
Grokking Functional Programming

This is an excerpt from Manning's book Grokking Functional Programming.

2.11   Coffee Break Explained: refactoring to a pure function

It looks like the TipCalculator class suffers from some problems we are very familiar with. We know exactly what we should do.