Skip to content

NarianMambetov/js_task-transportation-on-vacation

 
 

Repository files navigation

Transportation on Vacation

Instructions

Read the guideline before start

❗️❗️❗️ DON'T FORGET TO PROOFREAD YOUR CODE WITH CHECKLIST BEFORE SENDING YOUR PULL REQUEST❗️❗️❗️

Task description:

After a hard quarter in the office you decide to get some rest on a vacation. So you will book a flight for you and your family and try to leave all the mess behind you.

You will need a rental car in order for you to get around in your vacation. The manager of the car rental makes you some good offers.

Every day you rent the car costs $40. If you rent the car for 7 or more days, you get $50 off your total. Alternatively, if you rent the car for 3 or more days,you get $20 off your total.

Implement calculateRentalCost function that returns the total amount for different number of days.

Examples:

calculateRentalCost(1); // 40
calculateRentalCost(3); // 100
calculateRentalCost(7); // 230

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%