Class 26 — Friday October 23

Tasty problem solving

To bean, not to bean? — That is the question we ask. – The answer, to bean!

jelly beans

Look both ways


Agenda


Buddying


Set up


Module of the day — beanery.py


Function volume( a, b )

jelly bean formula

volume( 1.3 , 0.7 ): 0.41691552507014545

volume( 2.0 , 1.0 ): 1.3089969389957472



Function count( s, j, f )

count( 0.42 , 125 , 0.7 ): 208

count( 1.31 , 500 , 0.6 ): 229


Function guess( a, b, j )

guess( 1.3 , 0.7 , 125 ): 209

guess( 2.0 , 1.0 , 500 ): 266

guess( 1.52 , 0.9 , 1550 ): 1342


To do

 


  © 2020 Jim Cohoon   Resources from previous semesters are available.