I think I understand what you're asking here, but this seems like a much more roundabout method of doing it, if that makes sense. For instance, I could see using inequality operators to determine the size you'll need for a certain amount of doodles (30 doodles, I assume the constant values are doodles allowed per box, which is a medium box) then using the modulus to get the amount of doodles left over, and repeating the last process for the next size box you'll need for doodle shipment (doodles % 25 = 5 doodles), but with what you're saying the instructions are, and looking at it, it seems... more complicated than it should be.
I guess I would set up a variable for each size box (huge, large, med, small), and one method could be:
1 2 3 4 5 6
|
huge = doodles / huge_box;
doodles %= huge_box;
large = doodles / large_box;
doodles %= large_box;
//until you get to the last
small = doodles;
|
Well, if it's for a school/university assignment, I'm afraid you still need to follow the instructions given, but if it were me, I'd try to contact the instructor to verify that's what you're to do. It's entirely possible either you didn't understand, or they didn't explain it properly (or I'm not understanding).
Sorry man. That's all I got, but I'm trying to be helpful.