Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Banana programming challenge: Utilitarianism

Name: Adam 2013-01-19 23:31

Hello everyone. My name is Adam. For as long as I can remember, my sister and I have loved eating bananas. We do not share the same banana eating habbits however. I typically like eating the bananas earlier, when they are more green. My sister likes to eat the bananas later. You might think to yourself that we have ourselves a nice setup. I can buy a bunch of bananas and we can share, me eating the bananas earlier ones and her eating the later ones. But it turns out to be not so simple.

Suppose that the value I get from eating a banana can be given by ceil(.22*d^3-2.7*d^2+7.7*d+3.8) for integer values of d between 0 and 6 inclusive and d represents the number of days passed since purchasing the bananas. Also suppose that the value my sister gets from eating a banana is given by a graph that is symmetrical to mine about 3. As far as the cost of the bananas, the value of a dollar is worth 5 units of value to us.

On days that a banana is not eaten either of us, our little brother takes one for himself. This is to be avoided as he does not contribute money towards the bananas.

Maximize the combined value my sister and I can get from a bunch of bananas using the number of bananas bought and when they are eaten as variables. Bananas can only be bought at most one bunch per week and at most each person can eat one banana in a given day. The number of bananas consumed by my sister and I cannot differ by more than 1 for a given week. Bananas are sold in bunches of between 6-8 inclusive. Assume each banana weighs the same (.48 lb) and cost $1.42/lb.

Name: Anonymous 2013-01-28 12:08

Suppose that the value I get from eating a banana

value? It is a banana, you eat it for pleasure.... "value"? Are you a jew?

Name: Anonymous 2013-01-28 15:54

>>81
Utilitarianism is not Jewish.

Name: Anonymous 2013-01-28 16:51

>>82
Jews invented mathematics, and since everything is mathematics, and utilitarianism is in the set everything, utilitarianism is jewish.

Name: Anonymous 2013-01-28 16:52

>>83
Muslims are in the set everything too.

Time to make those C-4 blocks kosher.

Name: Anonymous 2013-01-28 16:53

>>83
Jews invented mathematics
lel

Name: Anonymous 2013-01-28 16:54

>>84
C-4 is chemistry, which is just applied physics, which is just applied mathematics, which is just applied judaism.

Name: Anonymous 2013-01-28 16:58

>>83
There was no single person who invented mathematics. Mathematics was used, and technically invented, by many cultures around the world. These cultures used their own form of mathematics, which could be considered 'math' in their time and how they used it. These cultures include the Mayans, Indians, Greeks, and Chinese, India and Greece. These forms of math spread throughout the world, and eventually became the math we know today.

 However, there are many topics under 'math'. We do know the sole inventor of Algebra, but Algebra isn't math as a whole, so the inventor can only be credited for Algebra, the certain subject of math that helps people solve real world problems. The inventor was Arabic scholar Al-Khwarizmi (c. 780 - c. 850). He invented what is known today as 'Algebra'.

 Though many cultures before Al-Khwarizmi had used different forms of algebraic methods (such as the Babylonians), Al-Khwarizmi is still considered the "father of Algebra" because of his extensive work, knowledge, and wisdom to know that he was using, and inventing, Algebra.

Name: Anonymous 2013-01-28 16:59

>>87
Consider yourself trolled.

Name: Anonymous 2013-01-28 16:59

>>87
Arabic scholar Al-Khwarizmi
MATHEMATICS ARE AL-HALAALTM

Name: Anonymous 2013-01-28 17:30

>>88
Consider your dubs checked, sister

Name: Anonymous 2013-01-28 22:51

>>80
Contrary to popular belief on /prog/, Lisp code does not require smart people to write.

Name: Anonymous 2013-01-28 23:26

>>87
A-rabs are just self-hating Jews.

Name: Anonymous 2013-02-14 1:41

This problem is cool and all, but why can't you guys just buy more than a bunch of bananas?

Name: Anonymous 2013-02-14 1:46

>>93
they are poorfags

Name: Anonymous 2013-02-14 1:52

>>47
The number of bananas consumed by my sister and I cannot differ by more than 1 for a given week.
((M M M MS MS S) . 42.736000000000004))
3 from your sister and 5 for yourself. Fucking greedy little shit. This is not Utilitarianism at all.

Name: Anonymous 2013-04-20 20:17

>>92
Arabrahams

Name: Anonymous 2013-04-20 20:19

PUISSANT PROGRAMATORE

Name: Anonymous 2013-04-20 20:24

>>95
I should error check and edit everything I do. '(M M MS MS S S) has the same value if I recall this problem correctly.

Name: Anonymous 2013-04-20 21:08

>>1
My name is Adam
Why do you bear such a talmudic name, when there are great nordic names, like Adolf and Armin?

Name: Anonymous 2013-04-20 21:13

>>1
So God gave life to both Adam and Eva. Does that mean that the whole ugly tribe born out of incest?

Name: Anonymous 2013-04-20 22:40

>>99
It's not a talmudic name. Christians and Muslims use it as well.

Name: Anonymous 2013-04-20 23:44



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-21 1:59

>>102
oy schnitzel, gib me dat keys!

Name: Anonymous 2013-04-21 2:11

Write a program to demonstrate the number of bananas that Adam's sister can fit in her vagina.

Name: Anonymous 2013-04-21 8:06

>>101
Why would you follow abrahamic fanatics, responsible for the dark ages?

Name: Anonymous 2013-04-21 10:14

>>105
It feels good smoking that mj

Name: Anonymous 2013-04-21 13:28

>>105
Religion wasn't responsible for the dark ages moron.

Name: Anonymous 2013-04-21 13:36

>>107
Yeah! And abrahamists never burned books!

Name: Anonymous 2013-04-21 14:18

>>108
Why don't you go read up on the dark ages and the events leading up to it before you start running your mouth you pile of shit.

Name: Anonymous 2013-04-21 14:44

>>109
I don't wanna!

Name: Anonymous 2013-08-30 15:28

Wow this thread is bananas.

Name: Anonymous 2013-08-30 16:10

>>111
Holy shit! Sugoi trips!

Name: Anonymous 2014-02-09 18:59

>>112
thanks bro

Name: Anonymous 2014-02-09 22:19

Eat all of the bananas on day 0 and spend the rest of the time raping the brother and sister.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List