Read the behavior at packet boundaries

A seed-packing program uses full_packets(items, packet_size). It accepts a nonnegative whole number of seeds and a positive whole-number packet size. It returns the number of completely filled packets that can be made; leftover seeds do not count as another packet. The procedure does not change either argument or produce other visible effects.


Complete the return-value table for packets holding six seeds. Enter exact integers in all answer cells.

Seeds suppliedSeeds per packetReturned full packets
06
176
186
196

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 Procedural and Data Abstraction Questions: