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 thinner = Number(input[2]);
- let hours = Number(input[3]);
- let nylonPrice = (nylon + 2) * 1.50;
- let paintPrice = ((paint * 0.10) + paint) * 14.50;
- let thinnerPrice = thinner * 5.00;
- let finalSum = nylonPrice + paintPrice + thinnerPrice + 0.40;
- let workersSum = finalSum * 0.30 * hours;
- let total = finalSum + workersSum;
- console.log(total);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement