Choose a contract-compatible replacement

DeliveryPlanner requires a Quote interface. Its existing provider accepts distance in metres and returns an integer cost in cents. The team wants a direct replacement without modifying clients or adding adapters.


All four candidates offer the same operation names and parameter types. Their error behavior and all other relevant contract conditions are identical. The table gives the remaining differences. The environment supplies no RateFeed service.


Candidate

Distance interpreted as

Cost returned in

Additional boundary interfaces

SwiftQuote

Kilometres

Cents

None

RateQuote

Metres

Cents

Requires RateFeed

DollarQuote

Metres

Dollars

None

StableQuote

Metres

Cents

Provides optional History


Which replacement is supported by the stated information?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Package, Component, and Deployment Diagrams Questions: