/**
 * This function calculates the remaining payment needed for a project based on the given budget
 * and cost estimate. It uses if-else statements to determine the appropriate condition.
 *
 * @param budget The available budget for the project in dollars.
 * @param costEstimate The estimated cost of the project in dollars.
 * @return The remaining payment needed to complete the project.
 */
fun calculatePayment(budget: Double, costEstimate: Double): Double {

    val remainingPayment: Double

    if (budget > costEstimate) {
        remainingPayment = 0.0
        // Add code to calculate the difference between budget and costEstimate
    } else if (budget == costEstimate) {
        remainingPayment = 0.0
        // Add code to set remainingPayment to 0.0
    } else {
        // Add code to calculate the difference between costEstimate and budget
        remainingPayment = costEstimate - budget
    }

    return remainingPayment
}
/**
 * This function calculates the remaining payment needed for a project based on the given budget
 * and cost estimate. It uses if-else statements to determine the appropriate condition.
 *
 * @param budget The available budget for the project in dollars.
 * @param costEstimate The estimated cost of the project in dollars.
 * @return The remaining payment needed to complete the project.
 */
fun calculatePayment(budget: Double, costEstimate: Double): Double {
/**
 * This function calculates the remaining payment needed for a project based on the given budget
 * and cost estimate. It uses if-else statements to determine the appropriate condition.
 *
 * @param budget The available budget for the project in dollars.
 * @param costEstimate The estimated cost of the project in dollars.
 * @return The remaining payment needed to complete the project.
 */
fun calculatePayment(budget: Double, costEstimate: Double): Double {

    val remainingPayment: Double

    if (budget > costEstimate) {
        remainingPayment = 0.0
        // Add code to calculate the difference between budget and costEstimate
    } else if (budget == costEstimate) {
        remainingPayment = 0.0
        // Add code to set remainingPayment to 0.0
    } else {
        // Add code to calculate the difference between costEstimate and budget
        remainingPayment = costEstimate - budget
    }

    return remainingPayment
}