You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`this trip will require ${Math.round(totalGallons * 100) / 100} gallons of gas which will cost $${Math.round(priceOfGas * 100) / 100}`,
);
let myCost = (hotelOne + hotelTwo) / 2 + priceOfGas;
let herCost = (hotelOne + hotelTwo) / 2;
let grandTotal = hotelOne + hotelTwo + priceOfGas;
console.log(
`the total cost of this trip will be $${Math.round(grandTotal * 100) / 100}. Sarah will pay $${Math.round(herCost * 100) / 100}, Chason will pay $${Math.round(myCost * 100) / 100}`,
);
console.log(
`the cost for just the hotels per person will be $${Math.round(((hotelOne + hotelTwo) / 2) * 100) / 100}`,