Audit delegated responsibilities

A school is reviewing a proposed equipment-loan program. Each requirement in the table should have exactly one terminal helper directly responsible for it.


The coordinating function prepareLoan delegates to readLoan, checkLoan, and showReceipt. The function checkLoan delegates to approveLoan and updateInventory. These two coordinating functions perform no other work.


The terminal helpers have these assigned responsibilities:

  • readLoan records the borrower ID and the selected item.
  • approveLoan rejects an unavailable item and reduces the stock count when a loan is approved.
  • updateInventory reduces the stock count when a loan is approved.
  • showReceipt displays the borrower ID and the selected item.


A proposed function hierarchy places two coordinating functions above four terminal helpers.


For each requirement, enter the exact integer number of terminal helpers directly assigned that responsibility. Then enter missing for zero owners, single for one owner, or overlap for two owners. Count only explicitly assigned responsibilities; displaying a value is different from recording it. Assess the written design rather than assuming that function names imply additional behaviour.

RequirementDirect ownersReview result
Record borrower ID
Record selected item
Reject unavailable item
Reduce stock count for an approved loan
Display due date

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 Design with Functions Questions: