Question: Help me with a JavaScript function to calculate the cost of a hotel stay. Three or fewer nights is $125 per night. Up to seven

Help me with a JavaScript function to calculate the cost of a hotel stay. Three or fewer nights is $125 per night. Up to seven nights is $105 per night. Eight to ten nights is $95 per night and up to fifteen nights is $85 per night. Display the price and the total. Format your output.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!