Repairing a composition that loses required information

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

A power-monitoring program must report the arithmetic mean and the largest value of four original power readings, all in watts.


An existing block-summary component consumes exactly two readings, returns their arithmetic mean in watts, and then permanently discards those original readings. Another existing component formats a report when given an overall mean and a peak, both in watts. You may add surrounding components, but you cannot change the block-summary component. Each original reading is accessible before it enters that component.


A proposed bottom-up assembly processes consecutive pairs and reports the mean and maximum of the two returned block means.


For a test, the original readings are 36 W36\ \text{W}, 60 W60\ \text{W}, 24 W24\ \text{W}, and 84 W84\ \text{W}.


Evaluate and repair the design:

  • Decompose the reporting requirement into calculation responsibilities.
  • Calculate the proposed outputs and determine which requirements they satisfy.
  • Explain why the block means are insufficient for recovering the original peak, and propose a corrected design that combines top-down requirements with available components.

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: