2018-09-30 23:01:58 +01:00
---
id: 5900f52d1000cf542c510040
title: 'Problem 449: Chocolate covered candy'
2020-11-27 19:02:05 +01:00
challengeType: 5
2019-08-05 09:17:33 -07:00
forumTopicId: 302121
2021-01-13 03:31:00 +01:00
dashedName: problem-449-chocolate-covered-candy
2018-09-30 23:01:58 +01:00
---
2020-11-27 19:02:05 +01:00
# --description--
2019-07-18 17:32:12 +02:00
2021-07-30 17:20:31 +02:00
Phil the confectioner is making a new batch of chocolate covered candy. Each candy centre is shaped like an ellipsoid of revolution defined by the equation: $b^2x^2 + b^2y^2 + a^2z^2 = a^2b^2$.
2018-09-30 23:01:58 +01:00
2021-07-30 17:20:31 +02:00
Phil wants to know how much chocolate is needed to cover one candy centre with a uniform coat of chocolate one millimeter thick.
2018-09-30 23:01:58 +01:00
2021-07-30 17:20:31 +02:00
If $a = 1$ mm and $b = 1$ mm, the amount of chocolate required is $\frac{28}{3} \pi$ mm< sup > 3</ sup >
2018-09-30 23:01:58 +01:00
2021-07-30 17:20:31 +02:00
If $a = 2$ mm and $b = 1$ mm, the amount of chocolate required is approximately 60.35475635 mm< sup > 3< / sup > .
2018-09-30 23:01:58 +01:00
2021-07-30 17:20:31 +02:00
Find the amount of chocolate in mm< sup > 3< / sup > required if $a = 3$ mm and $b = 1$ mm. Give your answer as the number rounded to 8 decimal places behind the decimal point.
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
# --hints--
2018-09-30 23:01:58 +01:00
2021-07-30 17:20:31 +02:00
`chocolateCoveredCandy()` should return `103.37870096` .
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
```js
2021-07-30 17:20:31 +02:00
assert.strictEqual(chocolateCoveredCandy(), 103.37870096);
2018-09-30 23:01:58 +01:00
```
2020-11-27 19:02:05 +01:00
# --seed--
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
## --seed-contents--
2018-09-30 23:01:58 +01:00
```js
2021-07-30 17:20:31 +02:00
function chocolateCoveredCandy() {
2020-09-15 09:57:40 -07:00
2018-09-30 23:01:58 +01:00
return true;
}
2021-07-30 17:20:31 +02:00
chocolateCoveredCandy();
2018-09-30 23:01:58 +01:00
```
2020-11-27 19:02:05 +01:00
# --solutions--
2018-09-30 23:01:58 +01:00
```js
// solution required
```