Any person, call the driver
can book a car
for given dates/distance.
rental price = time + distance
- 10% after 1 day
- 30% after 4 days
- 50% after 10 days
30% of the rental price
- insurance → half of commission
- roadside assistance → 1€ per day
- drivy → the rest
4€/day
The driver is charged an additional 4€/day when he chooses the "deductible reduction" option.
- the driver must pay the rental price and the (optional) deductible reduction
- the owner receives the rental price minus the commission
- the insurance receives its part of the commission
- the assistance receives its part of the commission
- drivy receives its part of the commission, plus the deductible reduction
Some users want to modify the dates/distance for a given rental.
- Fork the project via
github
- Clone the project
git clone https://github.com/YOUR_USERNAME/drivy
- Solve each exercises inside
index.js
file with JavaScript - Once the exercise is solved, commit something like
git ac "decrease pricing for longer rentals (exo 2)"
- 6 exercises, so 6 commits
- Don't forget to push before 4 PM