/**
 * This function calculates the monthly salary of a graphic designer based on their age, experience, and education level.
 * The salary is calculated using the ternary operator in Python.
 *
 * @param age The age of the graphic designer.
 * @param experienceYears The number of years of experience in graphic design.
 * @param educationLevel The highest level of education completed by the graphic designer.
 *                       Can be one of the following: "High School", "Bachelor's", "Master's", "PhD".
 * @return The monthly salary of the graphic designer.
 */
fun graphicDesignerSalary(age: Int, experienceYears: Int, educationLevel: String): Float {

    require(age > 0 && experienceYears >= 0) { "Invalid age or experience." }
    require(educationLevel in listOf("High School", "Bachelor's", "Master's", "PhD")) { "Invalid education level." }

    // Ternary operation to calculate salary based on conditions
    var salary = if (age < 25) 5000f else if (age >= 25 && age < 35) 7000f else 10000f

    salary += experienceYears * 1000

    return salary
}
/**
 * This function calculates the monthly salary of a graphic designer based on their age, experience, and education level.
 * The salary is calculated using the ternary operator in Python.
 *
 * @param age The age of the graphic designer.
 * @param experienceYears The number of years of experience in graphic design.
 * @param educationLevel The highest level of education completed by the graphic designer.
 *                       Can be one of the following: "High School", "Bachelor's", "Master's", "PhD".
 * @return The monthly salary of the graphic designer.
 */
fun graphicDesignerSalary(age: Int, experienceYears: Int, educationLevel: String): Float {
/**
 * This function calculates the monthly salary of a graphic designer based on their age, experience, and education level.
 * The salary is calculated using the ternary operator in Python.
 *
 * @param age The age of the graphic designer.
 * @param experienceYears The number of years of experience in graphic design.
 * @param educationLevel The highest level of education completed by the graphic designer.
 *                       Can be one of the following: "High School", "Bachelor's", "Master's", "PhD".
 * @return The monthly salary of the graphic designer.
 */
fun graphicDesignerSalary(age: Int, experienceYears: Int, educationLevel: String): Float {

    require(age > 0 && experienceYears >= 0) { "Invalid age or experience." }
    require(educationLevel in listOf("High School", "Bachelor's", "Master's", "PhD")) { "Invalid education level." }

    // Ternary operation to calculate salary based on conditions
    var salary = if (age < 25) 5000f else if (age >= 25 && age < 35) 7000f else 10000f

    salary += experienceYears * 1000

    return salary
}