/**
 * Calculate the slope of a ramp for a given length and height.
 *
 * @param length The length of the ramp in meters.
 * @param height The height of the ramp in meters.
 * @return The slope of the ramp in percentage.
 *
 * Note:
 * The slope is calculated using the formula: slope = height / length * 100
 */
fun calculateSlope(length: Double, height: Double): Double {

    val slope = if (length != 0.0) height / length * 100 else 0.0
    return slope
}
/**
 * Calculate the slope of a ramp for a given length and height.
 *
 * @param length The length of the ramp in meters.
 * @param height The height of the ramp in meters.
 * @return The slope of the ramp in percentage.
 *
 * Note:
 * The slope is calculated using the formula: slope = height / length * 100
 */
fun calculateSlope(length: Double, height: Double): Double {
/**
 * Calculate the slope of a ramp for a given length and height.
 *
 * @param length The length of the ramp in meters.
 * @param height The height of the ramp in meters.
 * @return The slope of the ramp in percentage.
 *
 * Note:
 * The slope is calculated using the formula: slope = height / length * 100
 */
fun calculateSlope(length: Double, height: Double): Double {

    val slope = if (length != 0.0) height / length * 100 else 0.0
    return slope
}