Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function christmasPreparation() {
- let rollsOfPaper = Number(arguments[0]);
- let rollsOfCloth = Number(arguments[1]);
- let littersOfGlue = Number(arguments[2]);
- let totalSum = Number(arguments[3]);
- let sum = Number(arguments[4]);
- let percent = 25;
- let paperPrice = rollsOfPaper * 5.80;
- let clothPrice = rollsOfCloth * 7.20;
- let gluePrice = littersOfGlue * 1.20;
- totalSum = paperPrice + clothPrice + gluePrice;
- sum = totalSum - (percent / 100);
- console.log(`${sum.toFixed(3)}`);
- }
Advertisement
Add Comment
Please, Sign In to add comment