Calculate with two import forms

An art supplier can divide 37.5 kg of clay among cartons, each holding at most 8.0 kg. The following Python code calculates packing quantities. Here floor rounds down to an integer and ceil rounds up to an integer.


Python
import math as m
from math import floor as complete

mass = 37.5
capacity = 8.0
full = complete(mass / capacity)
cartons = m.ceil(mass / capacity)
unused = cartons * capacity - mass


Find full, the number of completely filled cartons, and cartons, the total number needed, as exact integers. Find unused, the total unused capacity in kg, to one decimal place. Ignore carton mass and packing losses.

Your answers

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 Modules and import Questions: