/**
 * This exercise tests your understanding of using the NOT operator and nested if statements with a dancer.
 *
 * Given three boolean variables: dancing, busy, and tired. You need to complete the function that checks the dancer's status.
 *
 * @param dancing True if the dancer is dancing, False otherwise.
 * @param busy True if the dancer is busy, False otherwise.
 * @param tired True if the dancer is tired, False otherwise.
 * @return The dancer's status based on the given conditions:
 *         - If the dancer is busy, return "Cannot dance when busy!"
 *         - If the dancer is tired, return "Need some rest first."
 *         - If the dancer is not dancing and not busy, return "Ready to dance!"
 *         - If none of the above conditions are met, return "Unknown status."
 */
fun dancerStatus(dancing: Boolean, busy: Boolean, tired: Boolean): String {

    return when {
        busy -> "Cannot dance when busy!"
        tired -> "Need some rest first."
        !dancing && !busy -> "Ready to dance!"
        else -> "Unknown status."
    }
}
/**
 * This exercise tests your understanding of using the NOT operator and nested if statements with a dancer.
 *
 * Given three boolean variables: dancing, busy, and tired. You need to complete the function that checks the dancer's status.
 *
 * @param dancing True if the dancer is dancing, False otherwise.
 * @param busy True if the dancer is busy, False otherwise.
 * @param tired True if the dancer is tired, False otherwise.
 * @return The dancer's status based on the given conditions:
 *         - If the dancer is busy, return "Cannot dance when busy!"
 *         - If the dancer is tired, return "Need some rest first."
 *         - If the dancer is not dancing and not busy, return "Ready to dance!"
 *         - If none of the above conditions are met, return "Unknown status."
 */
fun dancerStatus(dancing: Boolean, busy: Boolean, tired: Boolean): String {
/**
 * This exercise tests your understanding of using the NOT operator and nested if statements with a dancer.
 *
 * Given three boolean variables: dancing, busy, and tired. You need to complete the function that checks the dancer's status.
 *
 * @param dancing True if the dancer is dancing, False otherwise.
 * @param busy True if the dancer is busy, False otherwise.
 * @param tired True if the dancer is tired, False otherwise.
 * @return The dancer's status based on the given conditions:
 *         - If the dancer is busy, return "Cannot dance when busy!"
 *         - If the dancer is tired, return "Need some rest first."
 *         - If the dancer is not dancing and not busy, return "Ready to dance!"
 *         - If none of the above conditions are met, return "Unknown status."
 */
fun dancerStatus(dancing: Boolean, busy: Boolean, tired: Boolean): String {

    return when {
        busy -> "Cannot dance when busy!"
        tired -> "Need some rest first."
        !dancing && !busy -> "Ready to dance!"
        else -> "Unknown status."
    }
}