/**
 * Calculate the membership fee for a dancer based on their age and membership type.
 *
 * @param age The age of the dancer.
 * @param membershipType The type of membership selected by the dancer.
 * @return The membership fee based on age and membership type.
 */
fun dancerMembershipFee(age: Int, membershipType: String): Any {

    return if (age < 18) {
        when (membershipType) {
            "Student" -> 120.0
            "Regular" -> 180.0
            "Premium" -> 240.0
            else -> "Invalid membership type."
        }
    } else {
        when (membershipType) {
            "Student" -> 160.0
            "Regular" -> 200.0
            "Premium" -> 260.0
            else -> "Invalid membership type."
        }
    }
}
/**
 * Calculate the membership fee for a dancer based on their age and membership type.
 *
 * @param age The age of the dancer.
 * @param membershipType The type of membership selected by the dancer.
 * @return The membership fee based on age and membership type.
 */
fun dancerMembershipFee(age: Int, membershipType: String): Any {
/**
 * Calculate the membership fee for a dancer based on their age and membership type.
 *
 * @param age The age of the dancer.
 * @param membershipType The type of membership selected by the dancer.
 * @return The membership fee based on age and membership type.
 */
fun dancerMembershipFee(age: Int, membershipType: String): Any {

    return if (age < 18) {
        when (membershipType) {
            "Student" -> 120.0
            "Regular" -> 180.0
            "Premium" -> 240.0
            else -> "Invalid membership type."
        }
    } else {
        when (membershipType) {
            "Student" -> 160.0
            "Regular" -> 200.0
            "Premium" -> 260.0
            else -> "Invalid membership type."
        }
    }
}