/**
 * Given three boolean values x, y, and z, this function applies various boolean operations on them and returns the result.
 *
 * @param x The first boolean value.
 * @param y The second boolean value.
 * @param z The third boolean value.
 * @return The result of the boolean operations.
 *
 * Available boolean operations:
 * 1. NOT: Returns the negation of x.
 * 2. AND: Returns true if x, y, and z are all true; otherwise, returns false.
 * 3. OR: Returns true if at least one of the given boolean values (x, y, or z) is true; otherwise, returns false.
 * 4. XOR: Returns true if exactly one of the given boolean values (x, y, or z) is true; otherwise, returns false.
 *
 * Example:
 * applyBooleanOperations(true, false, true) should return true.
 */
fun applyBooleanOperations(x: Boolean, y: Boolean, z: Boolean): Boolean {

    var result: Boolean

    // Apply boolean operations
    result = (!x) || (y && !z)

    return result
}
/**
 * Given three boolean values x, y, and z, this function applies various boolean operations on them and returns the result.
 *
 * @param x The first boolean value.
 * @param y The second boolean value.
 * @param z The third boolean value.
 * @return The result of the boolean operations.
 *
 * Available boolean operations:
 * 1. NOT: Returns the negation of x.
 * 2. AND: Returns true if x, y, and z are all true; otherwise, returns false.
 * 3. OR: Returns true if at least one of the given boolean values (x, y, or z) is true; otherwise, returns false.
 * 4. XOR: Returns true if exactly one of the given boolean values (x, y, or z) is true; otherwise, returns false.
 *
 * Example:
 * applyBooleanOperations(true, false, true) should return true.
 */
fun applyBooleanOperations(x: Boolean, y: Boolean, z: Boolean): Boolean {
/**
 * Given three boolean values x, y, and z, this function applies various boolean operations on them and returns the result.
 *
 * @param x The first boolean value.
 * @param y The second boolean value.
 * @param z The third boolean value.
 * @return The result of the boolean operations.
 *
 * Available boolean operations:
 * 1. NOT: Returns the negation of x.
 * 2. AND: Returns true if x, y, and z are all true; otherwise, returns false.
 * 3. OR: Returns true if at least one of the given boolean values (x, y, or z) is true; otherwise, returns false.
 * 4. XOR: Returns true if exactly one of the given boolean values (x, y, or z) is true; otherwise, returns false.
 *
 * Example:
 * applyBooleanOperations(true, false, true) should return true.
 */
fun applyBooleanOperations(x: Boolean, y: Boolean, z: Boolean): Boolean {

    var result: Boolean

    // Apply boolean operations
    result = (!x) || (y && !z)

    return result
}