/**
 * This function takes a list of numbers representing the amount of crops on a farmer's land
 * and a divisor. It divides each element in the list by the divisor and replaces the original
 * elements with the result. The function returns the modified list.
 *
 * @param farmList A list of numbers representing the amount of crops on the farmer's land.
 * @param divisor The divisor to divide each element in the list by.
 * @return The modified list after dividing each element by the divisor.
 *
 * Example:
 * divideAndChange(listOf(16, 24, 30, 40), 2) returns [8.0, 12.0, 15.0, 20.0]
 * divideAndChange(listOf(100, 200, 300), 10) returns [10.0, 20.0, 30.0]
 */
fun divideAndChange(farmList: List<Double>, divisor: Double): List<Double> {

    return farmList.map { it / divisor }
}
/**
 * This function takes a list of numbers representing the amount of crops on a farmer's land
 * and a divisor. It divides each element in the list by the divisor and replaces the original
 * elements with the result. The function returns the modified list.
 *
 * @param farmList A list of numbers representing the amount of crops on the farmer's land.
 * @param divisor The divisor to divide each element in the list by.
 * @return The modified list after dividing each element by the divisor.
 *
 * Example:
 * divideAndChange(listOf(16, 24, 30, 40), 2) returns [8.0, 12.0, 15.0, 20.0]
 * divideAndChange(listOf(100, 200, 300), 10) returns [10.0, 20.0, 30.0]
 */
fun divideAndChange(farmList: List<Double>, divisor: Double): List<Double> {
/**
 * This function takes a list of numbers representing the amount of crops on a farmer's land
 * and a divisor. It divides each element in the list by the divisor and replaces the original
 * elements with the result. The function returns the modified list.
 *
 * @param farmList A list of numbers representing the amount of crops on the farmer's land.
 * @param divisor The divisor to divide each element in the list by.
 * @return The modified list after dividing each element by the divisor.
 *
 * Example:
 * divideAndChange(listOf(16, 24, 30, 40), 2) returns [8.0, 12.0, 15.0, 20.0]
 * divideAndChange(listOf(100, 200, 300), 10) returns [10.0, 20.0, 30.0]
 */
fun divideAndChange(farmList: List<Double>, divisor: Double): List<Double> {

    return farmList.map { it / divisor }
}