Files
gikf a2b2ef3f75 fix(curriculum): clean-up Project Euler 441-460 (#43068)
* fix: clean-up Project Euler 441-460

* fix: corrections from review

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-07-30 08:20:31 -07:00

47 lines
1.2 KiB
Markdown

---
id: 5900f52d1000cf542c510040
title: 'Problem 449: Chocolate covered candy'
challengeType: 5
forumTopicId: 302121
dashedName: problem-449-chocolate-covered-candy
---
# --description--
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$.
Phil wants to know how much chocolate is needed to cover one candy centre with a uniform coat of chocolate one millimeter thick.
If $a = 1$ mm and $b = 1$ mm, the amount of chocolate required is $\frac{28}{3} \pi$ mm<sup>3</sup>
If $a = 2$ mm and $b = 1$ mm, the amount of chocolate required is approximately 60.35475635 mm<sup>3</sup>.
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.
# --hints--
`chocolateCoveredCandy()` should return `103.37870096`.
```js
assert.strictEqual(chocolateCoveredCandy(), 103.37870096);
```
# --seed--
## --seed-contents--
```js
function chocolateCoveredCandy() {
return true;
}
chocolateCoveredCandy();
```
# --solutions--
```js
// solution required
```