Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function easterLunch(arg1, arg2, arg3) {
- let cakesCount = Number(arg1);
- let eggsCount = Number(arg2);
- let cookies = Number(arg3);
- let cakesPrice = cakesCount * 3.20;
- let eggsPrice = eggsCount * 4.35;
- let cookiesPrice = cookies * 5.40;
- let eggPaintPrice = eggsCount * 12 * 0.15;
- let totalCost = cakesPrice + eggsPrice + cookiesPrice + eggPaintPrice;
- console.log(totalCost.toFixed(2));
- }
- easterLunch(3, 2, 3);
Advertisement
Add Comment
Please, Sign In to add comment