Applying print-request conditions

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.

RequestAuthorizedPages requestedStatusCredits remaining
Ayes9
Byes10
Cno4
Dyes0

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 Functional Requirements Questions: