You're accepting a job in a new town and have a lot of furniture to move. Write a function named getMaxMovingDistance that receives 3 numbers as parameters:
budgetweightcostThe function should return the maximum number of kilometers that we can afford to move the all furniture.
budget
=weight
=cost
=We can afford to move all our 440kg of furnite for 31.8181km with a budget of $700
Unlock all functions
The first 10 functions are free. Get lifetime access to all 100 with a one-time payment — no subscription.
Upgrade to Pro