/**
 * Calculates the sales growth for a marketing manager.
 *
 * @param initialSales Initial sales value.
 * @param growthRate Growth rate percentage.
 * @return Triple containing the final sales value, the number of months to achieve the growth, and the average monthly growth.
 */
fun calculateSalesGrowth(initialSales: Double, growthRate: Double): Triple<Double, Int, Double> {

    var finalSales = initialSales
    var months = 0
    while (finalSales < initialSales * 2) {
        finalSales += finalSales * (growthRate / 100)
        months++
    }
    val averageGrowth = (finalSales - initialSales) / months
    return Triple(finalSales, months, averageGrowth)
}

// Exercise: Marketing Manager's Sales Analysis

// As a marketing manager, you
/**
 * Calculates the sales growth for a marketing manager.
 *
 * @param initialSales Initial sales value.
 * @param growthRate Growth rate percentage.
 * @return Triple containing the final sales value, the number of months to achieve the growth, and the average monthly growth.
 */
fun calculateSalesGrowth(initialSales: Double, growthRate: Double): Triple<Double, Int, Double> {
/**
 * Calculates the sales growth for a marketing manager.
 *
 * @param initialSales Initial sales value.
 * @param growthRate Growth rate percentage.
 * @return Triple containing the final sales value, the number of months to achieve the growth, and the average monthly growth.
 */
fun calculateSalesGrowth(initialSales: Double, growthRate: Double): Triple<Double, Int, Double> {

    var finalSales = initialSales
    var months = 0
    while (finalSales < initialSales * 2) {
        finalSales += finalSales * (growthRate / 100)
        months++
    }
    val averageGrowth = (finalSales - initialSales) / months
    return Triple(finalSales, months, averageGrowth)
}

// Exercise: Marketing Manager's Sales Analysis

// As a marketing manager, you