#include "cargo.h"
bool canLoad(int current, int amount, int capacity) {
  return current >= 0 && amount >= 0 && capacity >= 0 && current <= capacity &&
         amount <= capacity - current;
}
