calculateEnergy method

double calculateEnergy(
  1. double bulletWeight,
  2. double velocity
)

Implementation

double calculateEnergy(double bulletWeight, double velocity) {
  return bulletWeight * pow(velocity, 2) / 450400;
}