/**
 * The function calculates the total yield of fruit in kilograms by summing the weights of apples, oranges, and bananas.
 * Each weight is first converted to the absolute value before performing the addition.
 *
 * @param appleWeight The weight of apples in kilograms.
 * @param orangeWeight The weight of oranges in kilograms.
 * @param bananaWeight The weight of bananas in kilograms.
 * @return The total yield of fruits in kilograms.
 */
fun calculateTotalYield(appleWeight: Double, orangeWeight: Double, bananaWeight: Double): Double {

    val totalYield = Math.abs(appleWeight) + Math.abs(orangeWeight) + Math.abs(bananaWeight)
    return totalYield
}
/**
 * The function calculates the total yield of fruit in kilograms by summing the weights of apples, oranges, and bananas.
 * Each weight is first converted to the absolute value before performing the addition.
 *
 * @param appleWeight The weight of apples in kilograms.
 * @param orangeWeight The weight of oranges in kilograms.
 * @param bananaWeight The weight of bananas in kilograms.
 * @return The total yield of fruits in kilograms.
 */
fun calculateTotalYield(appleWeight: Double, orangeWeight: Double, bananaWeight: Double): Double {
/**
 * The function calculates the total yield of fruit in kilograms by summing the weights of apples, oranges, and bananas.
 * Each weight is first converted to the absolute value before performing the addition.
 *
 * @param appleWeight The weight of apples in kilograms.
 * @param orangeWeight The weight of oranges in kilograms.
 * @param bananaWeight The weight of bananas in kilograms.
 * @return The total yield of fruits in kilograms.
 */
fun calculateTotalYield(appleWeight: Double, orangeWeight: Double, bananaWeight: Double): Double {

    val totalYield = Math.abs(appleWeight) + Math.abs(orangeWeight) + Math.abs(bananaWeight)
    return totalYield
}