Created
January 14, 2012 03:32
-
-
Save coderunner/1610134 to your computer and use it in GitHub Desktop.
Revisions
-
coderunner created this gist
Jan 14, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ public class SalaryFunctions { public int computeBonus(Employee employee, float factor) { return Math.round(employee.salary * factor * employee.targetBonus); } public int getWeeklySalary(Employee employee) { return Math.round(employee.salary / 52f); } }