Mayin S.

asked • 07/25/17

Calculating number of seed bags need for planting

Assuming that i have seed bag sizes of 1kg, 2 kg, and 5kg. And my clients typically have a land size between 0.25 and 5 acres and will plant 10kgs per acre.

What formualar can i use to calculate for each client the number of 5kg, 2kg and 1kg seed bags they need for planting. In the calculation, i want to try to assign the larger bags first while avoiding to assign half bags to a client as much as possible.

Andy C.

The only stipulation mentioned regarding the number of acres,
is that they are TYPICALLY between 0.25 and 5. They COULD be BIGGER than 5.
 
NOW, Let's suppose the # of acres is 3 and 1/3, which as a decimal number is 3.33333.....
Then they need 33 and 1/3 kg of seed.
 
That's 6 x 5 kg bags, 1 x 2 kg bag, 1 x 1 kg bag.
Now you have a problem. You need 1/3 of a bag,
but the only precision you have is half bags.
The spreadsheet shows a result of 2/3=0.666666.... of  a half bag
  which is really correct because 1/2 x 2/3 = 2/6 = 1/3
So pray tell then, how will you distribute this fraction of a bag?
 
Keep in mind, almost ANY type of fraction can happen that WILL
NOT be evenly countable by half precision. The protocol for 
handling it is not explicitly stated in the problem.
 
As a suggestion, if the fraction is less than 1/2, then we
sell the extra half bag to the customer. If the fraction is
bigger than 1/2, then we sell an extra 1 kg bag to the 
customer. So the algorithm must determine if the fractional portion
is bigger or less than 1/2.
Again this is just a suggestion, but somewhat implied in the problem
when stated "avoid assigning half bags to the client as much as possible."
The only reason to sell the half bag is to satisfy the fractional part if it
is less than 1/2. So you will need the half bag ONCE IF THAT.
 
Is this acceptable to you?
 
Report

07/26/17

1 Expert Answer

By:

Andy C. answered • 07/26/17

Tutor
4.9 (27)

Math/Physics Tutor

Mayin S.

thank you very much Andy, would kindly share with the spreadsheet you saved.
Report

07/26/17

Andy C.

I posted it in the resources/files.
As described in the comments discussion,
I changed the formula so that it rounds the number of 1 kg bags up
if the fractional part is greater than 1/2 and
includes 1/2 kg if the fractional part is less than 1/2
 
Report

07/26/17

Andy C.

My apologies,
 
The file name is seeds.xlsx
Report

07/26/17

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.