MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply TodayGiven hole diameter a, and outermost diameter b, determine the volume y of the resulting donut.

117 correct solutions
238 incorrect solutions

Last solution submitted on Jul 18, 2016

1 player likes this problem

1 Comment

eggart
on 29 Feb 2016

I wonder whether it it adequate to test correctness of double answers by equality. To do so discounts rounding errors and the fact that IEEE 754 does not guarantee the laws of arithmetic.

1 Comment

William
on 24 Jan 2016

So, when you say "diameter" you mean "radius"? And when you say "outer" you mean "inner"?

1 Comment

CC
on 3 Jun 2012

If a is the hole diameter and b is the outermost diameter, how can a>b in the test cases?

9 Comments