HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <p>The boss liked the mile calculator and this is why he entrusted you with automating what he values the most: his accounting!</p>
1 <p>The boss liked the mile calculator and this is why he entrusted you with automating what he values the most: his accounting!</p>
2 <p>He needs to hire a few new employees, since local idlers no longer suffice. The accounting department has allocated a budget for salaries, but it includes taxes, and in job advertisements, salary should be indicated without taxes. Anyway, here is the technical assignment:</p>
2 <p>He needs to hire a few new employees, since local idlers no longer suffice. The accounting department has allocated a budget for salaries, but it includes taxes, and in job advertisements, salary should be indicated without taxes. Anyway, here is the technical assignment:</p>
3 <blockquote><p>Meow! I need a program that will use the gross salary (salary before tax) to calculate an approximate take-home salary (that is given out).</p>
3 <blockquote><p>Meow! I need a program that will use the gross salary (salary before tax) to calculate an approximate take-home salary (that is given out).</p>
4 <p>Design the program as calculateSalary function with one parameter: gross salary amount. The function must return the take-home salary.</p>
4 <p>Design the program as calculateSalary function with one parameter: gross salary amount. The function must return the take-home salary.</p>
5 <p>I do not need great accuracy, we just take into account that 35% of the gross salary amount are taxes, and if gross salary is greater than or equal to 100 thousand, then taxes are already 45%.</p>
5 <p>I do not need great accuracy, we just take into account that 35% of the gross salary amount are taxes, and if gross salary is greater than or equal to 100 thousand, then taxes are already 45%.</p>
6 </blockquote><p>Depending on how you calculate, the final result may have a fractional part. You can use Math.round to round the calculation results.</p>
6 </blockquote><p>Depending on how you calculate, the final result may have a fractional part. You can use Math.round to round the calculation results.</p>
7 <p>This program will be tested by Muffin himself. He’ll call your function (<em>you’re going to write the function, right?</em>) with different arguments and will check the result. To call the boss to check the program, press the Hey boss, here’s your program! button located in the console.</p>
7 <p>This program will be tested by Muffin himself. He’ll call your function (<em>you’re going to write the function, right?</em>) with different arguments and will check the result. To call the boss to check the program, press the Hey boss, here’s your program! button located in the console.</p>