A school printing service shall accept a print request only if the account is authorized and the requested page count is a positive integer no greater than its remaining credits. Each printed page uses one credit. For acceptance, the service shall return accepted and subtract the requested pages from the credits. Otherwise, it shall return rejected and leave the credits unchanged. Each independent request below starts with 9 credits. Complete the status and remaining-credit cells using accepted or rejected and exact integer credit counts.
Unlock full course notes by signing up
Tracking mailing-list changes
A repair shop's mailing-list system begins with 18 subscribed accounts. Its functional requirements say that subscribing an absent account shall add it, subscribing an already subscribed account shall leave membership unchanged, unsubscribing a subscribed account shall remove it, and unsubscribing an absent account shall leave membership unchanged. During one batch, 5 subscription requests concern absent accounts, 3 concern already subscribed accounts, 4 unsubscribe requests concern subscribed accounts, and 2 concern absent accounts. Each description gives the account's status when its request is processed. Find the final number of subscribed accounts and the number of requests that leave membership unchanged. Give both as exact integers.
Sequencing a submission requirement's behavior
A course website must meet this functional requirement for assignment uploads. The student ID arrives together with the uploaded file. The submission is marked late when the server arrival time is after the deadline. An upload from a student who is not enrolled in the course must be rejected with no record stored and no lateness evaluated. The receipt shown to the student must display the arrival time and late status exactly as they were stored. Arrange the system's required steps in the order the requirement forces.
Computing fees from a grace-period rule
A library system has this functional requirement: "When a member returns an item after its due date, the system shall charge 0.30 dollars for each day late beyond a grace period of 2 days, up to a maximum of 6.00 dollars per item, and shall display each item's fee and the total." One member returns three items at once: item A is 2 days late, item B is 9 days late and item C is 25 days late. Find the fee the system must charge for each item and the total it must display, each in dollars to two decimal places.
Interpreting overlapping booking conditions
A shuttle has 12 seats. Its booking system stores the number already reserved as sss, an integer from 0 to 12, and receives a request for qqq seats, an integer from 1 to 12. Two proposed functional clauses state: if s+q≤12s+q\leq12s+q≤12, accept the request and set the reserved count to s+qs+qs+q; if s+q≥12s+q\geq12s+q≥12, reject the request and leave the reserved count unchanged. Acceptance and rejection are mutually exclusive responses. Which statements correctly describe these clauses or the proposed changes? Select all that apply.