Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function repainting(input) {
- let nylon = Number(input[0]);
- let paint = Number(input[1]);
- let razreditel = Number(input[2]);
- let chasoveMaistori = Number(input[3]);
- let torbichki = 0.4;
- let nylonPrice = (nylon + 2) * 1.5;
- let paintPrice = paint * 14.5;
- let razreditelPrice = razreditel * 5;
- let sumOfMaterials = (nylonPrice + paintPrice + razreditelPrice) + ((paint * 0.1) * 14.5) + (torbichki);
- let rabotniciPayment = (sumOfMaterials * 0.30) * chasoveMaistori;
- let total = sumOfMaterials + rabotniciPayment;
- console.log(total);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement