Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function payments(input){
- let chemicalsPrice = 5.80;
- let markersPrice = 7.20;
- let preparationPrice = 1.20;
- let chemicals = Number(input[0]);
- let markers = Number(input[1]);
- let preparation = Number(input[2]);
- let discount = Number(input[3]);
- let price = ((chemicals * chemicalsPrice) + (markers * markersPrice) + (preparation * preparationPrice));
- let sum = (price - (price * (discount / 100)));
- console.log(sum);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement