heightR method

double heightR(
  1. double percent
)

Implementation

double heightR(double percent) {
  return height * percent / 100;
}