From 1123e5b3dddeb9e57b802835285a886b4428bfcc Mon Sep 17 00:00:00 2001 From: jagdish-15 Date: Wed, 27 Nov 2024 05:01:28 +0530 Subject: [PATCH] Fix formatting in salary calculator exemplar solution (#2875) --- .../.meta/src/reference/java/SalaryCalculator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/concept/salary-calculator/.meta/src/reference/java/SalaryCalculator.java b/exercises/concept/salary-calculator/.meta/src/reference/java/SalaryCalculator.java index c6e6ea140..fac9e15c3 100644 --- a/exercises/concept/salary-calculator/.meta/src/reference/java/SalaryCalculator.java +++ b/exercises/concept/salary-calculator/.meta/src/reference/java/SalaryCalculator.java @@ -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; }