tax; should be integer; min: 100, max: 100000
tax: "15%" // tax percent; presented as string with template {tax}% where
// 'tax' is integer; min: "0%", max: "99%"
},
Tester: {
salary: 1000,
tax: "10%"
}
}
[
{
name: "Masha", // name of team member
specialization: "Progger", // specialization should be picked from salaries
// otherwise member should be ignored in report
},
{
name: "Vasya",
specialization: "Tester",
},
{
name: "Taras",
specialization: "Tester",
},
];
{
totalBudgetTeam: 3398, // total salaries with tax of entire team; should be integer
(truncate the fractional part after all calculations)
totalBudgetProgger: 1176, // total salaries with tax for all members by 'Progger'
specialization; should be integer (truncate the fractional part after all calculations)
// totalBudgetTester: 2222, // total salaries with tax for all members by 'Tester'
specialization; should be integer (truncate the fractional part after all calculations)
}
Каким образом здесь получаются такие числа? 3398, 1176, 2222
https://codesandbox.io/s/kkkk-951zi7?file=/src/index.js
А где само задание то? Что надо сделать?
The accounting department turned to the IT department with a request to help with the financial report on the work of teams on the vendor side. It is known that the teams consist of a different number of specialists in different categories. It is also known that each category of specialists has its own fixed salary after taxes and this tax rate. Accounting must calculate the cost of the services for each specialty and the entire team. Your team leader has prepared a function template that will perform the task. You need to implement this function.
но здесь абстрактно описано, по сути всё они описали в комментах, но как дойти до такого вывода как у них не понимаю
Обсуждают сегодня