Hotel costs in the trip


Just a thought - taking vacation - COST OF HOTEL

If the trip is X days, the stay at hotels should be at least ONE NIGHT LESS!
so if one's trip is 10 days - only 9 nights at the hotel should be counted!

That is why I calculated the total hotel costs as total_cost += hotel_cost(days-1)

best to all


well, good challenge isn't it?

You are free to expand on programs you build in the exercise.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.