Matching contracts at an integration boundary

A bottom-up design reuses a speed component whose contract requires distance in metres and elapsed time in seconds, and returns speed in metres per second. A measurement source supplies distance in metres and elapsed time in milliseconds.


For a test measurement, the source supplies 24 m24\ \text{m} and 3000 ms3000\ \text{ms}. Which integration choice respects the speed component's documented input contract and produces the correct reported units?

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 Top-down and Bottom-up Design Questions: