/**
 * Calculate the bonus based on the base salary and performance rating
 */
fun calculateBonus(baseSalary: Double, performanceRating: Double): Double {

    return when {
        performanceRating < 3 -> 0.0
        performanceRating < 4 -> baseSalary * 0.05
        performanceRating < 5 -> baseSalary * 0.1
        else -> baseSalary
    }
}
/**
 * Calculate the bonus based on the base salary and performance rating
 */
fun calculateBonus(baseSalary: Double, performanceRating: Double): Double {
/**
 * Calculate the bonus based on the base salary and performance rating
 */
fun calculateBonus(baseSalary: Double, performanceRating: Double): Double {

    return when {
        performanceRating < 3 -> 0.0
        performanceRating < 4 -> baseSalary * 0.05
        performanceRating < 5 -> baseSalary * 0.1
        else -> baseSalary
    }
}