Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-449-chocolate-covered-candy.md
Oliver Eyton-Williams ee1e8abd87 feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

49 lines
1.1 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: b2x2 + b2y2 + a2z2 = a2b2.
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
283 π mm3
<!-- TODO Use MathJax -->
If a=2 mm and b=1 mm, the amount of chocolate required is approximately 60.35475635 mm3.
Find the amount of chocolate in mm3 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--
`euler449()` should return 103.37870096.
```js
assert.strictEqual(euler449(), 103.37870096);
```
# --seed--
## --seed-contents--
```js
function euler449() {
return true;
}
euler449();
```
# --solutions--
```js
// solution required
```