Tracing maintenance work through reusable components

A laboratory compares two program designs for the four workflows shown below.


Proposal A began with a top-down decomposition into workflows. Each workflow has its own separate implementations of every routine it uses, including indirectly called routines. No implementations are shared between workflows.


Proposal B began by assembling reusable building blocks from the bottom up. It has one shared implementation each of Validate, Calibrate, Summarize, and Offset. Its workflows use those implementations according to the same logical dependencies.


Four workflows call validation, calibration, and summary routines in different combinations, and calibration calls an offset routine.


A specification change requires revised behaviour in Offset and Summarize. All routine inputs and outputs remain compatible. Only implementations of these two routines need editing; their callers need checking but no code changes.


Use this maintenance model:

  • Revising and unit-testing each separate Offset implementation takes 12 min.
  • Revising and unit-testing each separate Summarize implementation takes 16 min.
  • Run one complete check for each workflow that depends directly or indirectly on a revised routine. Count a workflow once even if it uses both revised routines.
  • Complete workflow checks take 14 min for Daily, 10 min for Alarm, 12 min for Archive, and 8 min for Audit.
  • Total maintenance time includes only the revisions with their unit tests and the required complete workflow checks. Ignore scheduling and parallel execution.

Complete the table with exact integers. Count separate implementations revised, complete workflow checks required, and total maintenance time in minutes for each proposal.

ProposalImplementations revisedWorkflow checksTotal time (min)
A
B

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: