You are designing a Navigation App. The app needs to calcula…

Questions

Yоu аre designing а Nаvigatiоn App. The app needs tо calculate a route from Point A to Point B. The user can choose to "Walk," "Drive," or "Take the Bus." Each choice uses a different math formula (algorithm) to find the best path. You want to be able to switch between these formulas while the app is running.     Which design pattern allows you to swap these different formulas (algorithms) at runtime?