/**
 * This exercise focuses on the use of the unconditioned ternary operator combined with the AND operator.
 *
 * Given an instrument, a profession, and a salary, complete the function below to check if the musician's instrument
 * is the same as the one specified and if their profession is 'musician', using only the unconditioned ternary
 * operator and the AND operator. The function should return 'Hired' if both conditions are met, 'Not Hired'
 * otherwise.
 *
 * @param instrument The musician's instrument.
 * @param profession The musician's profession.
 * @param salary The musician's expected salary.
 * @return 'Hired' if the instrument matches and the profession is 'musician', 'Not Hired' otherwise.
 */
fun ternaryOperatorExampleAndOperator(instrument: String, profession: String, salary: Int): String {

    return if (instrument == "guitar" && profession == "musician") "Hired" else "Not Hired"
}
/**
 * This exercise focuses on the use of the unconditioned ternary operator combined with the AND operator.
 *
 * Given an instrument, a profession, and a salary, complete the function below to check if the musician's instrument
 * is the same as the one specified and if their profession is 'musician', using only the unconditioned ternary
 * operator and the AND operator. The function should return 'Hired' if both conditions are met, 'Not Hired'
 * otherwise.
 *
 * @param instrument The musician's instrument.
 * @param profession The musician's profession.
 * @param salary The musician's expected salary.
 * @return 'Hired' if the instrument matches and the profession is 'musician', 'Not Hired' otherwise.
 */
fun ternaryOperatorExampleAndOperator(instrument: String, profession: String, salary: Int): String {
/**
 * This exercise focuses on the use of the unconditioned ternary operator combined with the AND operator.
 *
 * Given an instrument, a profession, and a salary, complete the function below to check if the musician's instrument
 * is the same as the one specified and if their profession is 'musician', using only the unconditioned ternary
 * operator and the AND operator. The function should return 'Hired' if both conditions are met, 'Not Hired'
 * otherwise.
 *
 * @param instrument The musician's instrument.
 * @param profession The musician's profession.
 * @param salary The musician's expected salary.
 * @return 'Hired' if the instrument matches and the profession is 'musician', 'Not Hired' otherwise.
 */
fun ternaryOperatorExampleAndOperator(instrument: String, profession: String, salary: Int): String {

    return if (instrument == "guitar" && profession == "musician") "Hired" else "Not Hired"
}