Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function seaTrip(input) {
- let foodPrice = Number(input[0]) * 3;
- let souvenirPrice = Number(input[1]) * 3;
- let dayHotelPrice = Number(input[2]);
- let hotelPrice = dayHotelPrice * 0.90 + dayHotelPrice * 0.85 + dayHotelPrice * 0.80;
- let transportPrice = 210.0 * 2 / 100 * 7 * 1.85;
- console.log(`Money needed: ${(foodPrice + souvenirPrice + hotelPrice + transportPrice).toFixed(2)}`);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement