04. Tailoring Workshop / Шивашки цех
Колеги, можете ли да погледнете и да кажете какво под ягодите изпускам, че ми дава 50/100?
function tailoringWorkshop(input){
let numberOfTables = Number(input.shift());
let tableLenght = Number(input.shift());
let tableWidth = Number(input.shift());
let areaPokrivka = numberOfTables * ((tableLenght + 0.60) * (tableWidth + 0.60));
let areaPokrivkaFixed = areaPokrivka.toFixed(2);
let areaKareta = numberOfTables * ((tableLenght/2) * (tableLenght/2));
let areaKaretaFixed = areaKareta.toFixed(2);
let priceInUsd = areaPokrivkaFixed * 7 + areaKaretaFixed * 9;
let priceInUsdFixed = priceInUsd.toFixed(2);
let priceInBgn = priceInUsdFixed * 1.85;
let priceInBgnFixed = priceInBgn.toFixed(2);
console.log(`${priceInUsdFixed} USD`)
console.log(`${priceInBgnFixed} BGN`)
}