/**
 * Given a list of nurse data, modify the elements of the list using list comprehensions
 * based on whether each element is greater than, less than, or equal to the comparison value.
 *
 * @param nurseData A list of nurse data
 * @param comparisonValue The value to compare the nurse data with
 * @return A modified list of nurse data based on the comparison with the value
 */
fun modifyElements(nurseData: List<Int>, comparisonValue: Int): List<Int> {

    // Initialize an empty list to store the modified nurse data
    val modifiedData = mutableListOf<Int>()

    // Iterate through each element in nurseData and modify it based on the comparison
    for (data in nurseData) {
        // Modify elements greater than the comparison value
        if (data > comparisonValue) {
            modifiedData.add(data + 10)
        }
        // Modify elements less than the comparison value
        else if (data < comparisonValue) {
            modifiedData.add(data - 5)
        }
        // Modify elements equal to the comparison value
        else {
            modifiedData.add(data * 2)
        }
    }

    return modifiedData
}
/**
 * Given a list of nurse data, modify the elements of the list using list comprehensions
 * based on whether each element is greater than, less than, or equal to the comparison value.
 *
 * @param nurseData A list of nurse data
 * @param comparisonValue The value to compare the nurse data with
 * @return A modified list of nurse data based on the comparison with the value
 */
fun modifyElements(nurseData: List<Int>, comparisonValue: Int): List<Int> {
/**
 * Given a list of nurse data, modify the elements of the list using list comprehensions
 * based on whether each element is greater than, less than, or equal to the comparison value.
 *
 * @param nurseData A list of nurse data
 * @param comparisonValue The value to compare the nurse data with
 * @return A modified list of nurse data based on the comparison with the value
 */
fun modifyElements(nurseData: List<Int>, comparisonValue: Int): List<Int> {

    // Initialize an empty list to store the modified nurse data
    val modifiedData = mutableListOf<Int>()

    // Iterate through each element in nurseData and modify it based on the comparison
    for (data in nurseData) {
        // Modify elements greater than the comparison value
        if (data > comparisonValue) {
            modifiedData.add(data + 10)
        }
        // Modify elements less than the comparison value
        else if (data < comparisonValue) {
            modifiedData.add(data - 5)
        }
        // Modify elements equal to the comparison value
        else {
            modifiedData.add(data * 2)
        }
    }

    return modifiedData
}