Files
freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-317-firecracker.english.md
Randell Dawson a7eb800450 fix(curriculum): Remove unnecessary assert message argument from English Coding Interview Prep challenges - Project Euler - 04 (#36418)
* fix: removed assert msg argument-4

* fix: remove double quotes surrounding testString code

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
2019-07-27 07:34:19 -05:00

1.1 KiB

id, challengeType, title
id challengeType title
5900f4aa1000cf542c50ffbc 5 Problem 317: Firecracker

Description

A firecracker explodes at a height of 100 m above level ground. It breaks into a large number of very small fragments, which move in every direction; all of them have the same initial velocity of 20 m/s.

We assume that the fragments move without air resistance, in a uniform gravitational field with g=9.81 m/s2.

Find the volume (in m3) of the region through which the fragments move before reaching the ground. Give your answer rounded to four decimal places.

Instructions

Tests

tests:
  - text: <code>euler317()</code> should return 1856532.8455.
    testString: assert.strictEqual(euler317(), 1856532.8455);

Challenge Seed

function euler317() {
  // Good luck!
  return true;
}

euler317();

Solution

// solution required