A team is reviewing whether an order-processing class mixes responsibilities. Arrange these activities in dependency order. Each activity must have the evidence or proposal it uses before it begins. The review concerns responsibility boundaries rather than the mechanics of rewriting code.
1.
Create a catalogue of independently requested behaviour changes and identify the owner of each governing policy.
2.
Replay the catalogued changes against the proposed obligations and check whether any still require edits to unrelated policy decisions.
3.
Use the catalogue to map each requested change to the decisions implemented in the current class.
4.
Use the decision map to propose focused obligations, separating independently changeable policies while keeping cohesive decisions together.
Unlock full course notes by signing up
Count the change footprint
A software team records the complete edit map below for three independent requests: one from finance, one from communications, and one from the data platform team. Each arrow identifies a class that requires an edit for that request. No other classes require edits.
A class-edit event means editing one class for one request. Editing the same class for two requests counts as two events. Treat the three requests separately, even if the team could later combine its work.
Find the number of distinct classes edited across all three requests and the total number of class-edit events. Enter both counts as exact integers.
Evaluate proposed boundaries
A venue's BookingManager decides refund eligibility under finance policy and writes confirmation messages under communications policy. These policies change independently. Which statements correctly apply the Single Responsibility Principle? Select every correct statement.
Separate ownership from release timing
A university's scheduling department contains two independently authorized groups. One sets room-allocation rules; the other sets the wording and visual layout of timetable notices. A shared SchedulePolicy class implements both. Their changes have always been released together because the university permits only monthly deployments. What is the strongest assessment under the Single Responsibility Principle?
Find the discount decision hidden inside a fee
An event service sells a ticket with an undiscounted price of 96.00 US dollars. The sales team increases the discount from 25% to 30%. The fee policy remains unchanged: charge 1.20 US dollars plus 5% of the actual discounted ticket price.
A developer updates only DiscountPolicy. The current Python code is shown below. Both methods receive the undiscounted ticket price as price; the receipt display simply shows their returned values. There are no other adjustments or rounding operations.
Complete the table using exact decimal dollar amounts without units. For the final row, enter the class name outside DiscountPolicy that also contains a discount decision.