Skip to content

Commit

Permalink
Fix formatting in salary calculator exemplar solution (#2875)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagdish-15 authored Nov 26, 2024
1 parent 109a4c2 commit 1123e5b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ public int bonusMultiplier(int productsSold) {
return productsSold < 20 ? 10 : 13;
}

public double bonusForProductsSold (int productsSold) {
public double bonusForProductsSold(int productsSold) {
return productsSold * bonusMultiplier(productsSold);
}

public double finalSalary (int daysSkipped, int productsSold) {
public double finalSalary(int daysSkipped, int productsSold) {
double finalSalary = 1000.0 * salaryMultiplier(daysSkipped) + bonusForProductsSold(productsSold);
return finalSalary > 2000.0 ? 2000.0 : finalSalary;
}
Expand Down

0 comments on commit 1123e5b

Please sign in to comment.