/**
 * Given a dictionary of slope data containing slope as keys and elevation as values,
 * this function updates the elevation value of a specific slope.
 *
 * @param slopeData Dictionary of slope data
 * @param slope Specific slope value to be updated
 * @param elevation New elevation value
 * @return Updated dictionary of slope data
 */
fun updateSlopeElevation(slopeData: MutableMap<String, Float>, slope: String, elevation: Float): MutableMap<String, Float> {

    if (slopeData.containsKey(slope)) {
        slopeData[slope] = elevation
    } else {
        println("The slope '$slope' does not exist in the slope data dictionary.")
    }
    return slopeData
}
/**
 * Given a dictionary of slope data containing slope as keys and elevation as values,
 * this function updates the elevation value of a specific slope.
 *
 * @param slopeData Dictionary of slope data
 * @param slope Specific slope value to be updated
 * @param elevation New elevation value
 * @return Updated dictionary of slope data
 */
fun updateSlopeElevation(slopeData: MutableMap<String, Float>, slope: String, elevation: Float): MutableMap<String, Float> {
/**
 * Given a dictionary of slope data containing slope as keys and elevation as values,
 * this function updates the elevation value of a specific slope.
 *
 * @param slopeData Dictionary of slope data
 * @param slope Specific slope value to be updated
 * @param elevation New elevation value
 * @return Updated dictionary of slope data
 */
fun updateSlopeElevation(slopeData: MutableMap<String, Float>, slope: String, elevation: Float): MutableMap<String, Float> {

    if (slopeData.containsKey(slope)) {
        slopeData[slope] = elevation
    } else {
        println("The slope '$slope' does not exist in the slope data dictionary.")
    }
    return slopeData
}