How to solve the given problem?
NArshad
narshad.380 at gmail.com
Thu Feb 10 01:40:48 EST 2022
Assume that there is a pattern of feeding for a special fish in a day (10 hours a day) as below:
150 100 30 30 30 20 20 10 5 5
Today, the fish is fed in the second hour 60 unit instead of 100 unit Accidently. Implement some methods to distribute the remaining 40 unit in the rest of the day and propose the new patterns. Try to keep the distribution similar to the current feeding pattern.
Note: pay attention that the total feeding amounts should be fix in a day.
More information about the Python-list
mailing list