Question: In Javascript please Background The IRL manatees have been racing up and down a channel between the several islands. Several manatees have been seriously injured

In Javascript please
Background The IRL manatees have been racing up and down a channel between the several islands. Several manatees have been seriously injured in multi- manatee pileups in the narrow channel. Hugh Manatee has devised some safty rules to prevent further injuries. Hugh must keep a distance of at least p(n + 1) units behind any other manatee M. n is the number of manatees in between Hugh and M, and p is determined by Hugh's weight class (a deceleration constant). The Task Given the value of p and the current distances in random order) to each of the manatees in front of Hugh, calculate the minimum distance Hugh should keep behind the mnatee drectly in front of him in order to avoid multi-manatee pileups. Input/Output The first line is the number n of manatees ahead of Hugh 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
