Reuse instructions with new input

A warehouse uses a program to prepare shipping labels. Its input is the number of cartons supplied for one print job. The program multiplies that number by 24, then adds 2 spare labels for the entire job.


The instructions stay unchanged for every job. Complete the table with exact whole numbers. Label counts include the spares.


A carton count enters a program that calculates the total number of labels.


Print jobInput cartonsOutput labels
Morning4
Noon6
Afternoon290

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 What Is Programming? Questions: