/**
 * The purpose of this function is to calculate the total payment after applying 
 * the Division Assignment Operator and Equal.
 *
 * @param originalAmount The original amount borrowed by the client.
 * @param interestRate The interest rate for the loan.
 * @return The total payment after applying the division assignment and equal operation.
 */
fun findTotalPayment(originalAmount: Double, interestRate: Double): Double {

    // Calculate the monthly interest
    val monthlyInterest = originalAmount / 12 * interestRate

    // Add the original amount to the monthly interest
    var updatedAmount = originalAmount + monthlyInterest

    // Calculate the semi-annual interest
    val semiAnnualInterest = updatedAmount / 2 * interestRate

    // Subtract the semi-annual interest from the updated amount
    updatedAmount -= semiAnnualInterest

    // Calculate the annual interest
    val annualInterest = updatedAmount / 4 * interestRate

    // Divide the annual interest by 2 and assign it back to annualInterest
    var updatedAnnualInterest = annualInterest / 2

    // Calculate the final payment by adding all the interest
    val totalPayment = updatedAmount + monthlyInterest + semiAnnualInterest + updatedAnnualInterest

    return totalPayment
}
/**
 * The purpose of this function is to calculate the total payment after applying 
 * the Division Assignment Operator and Equal.
 *
 * @param originalAmount The original amount borrowed by the client.
 * @param interestRate The interest rate for the loan.
 * @return The total payment after applying the division assignment and equal operation.
 */
fun findTotalPayment(originalAmount: Double, interestRate: Double): Double {
/**
 * The purpose of this function is to calculate the total payment after applying 
 * the Division Assignment Operator and Equal.
 *
 * @param originalAmount The original amount borrowed by the client.
 * @param interestRate The interest rate for the loan.
 * @return The total payment after applying the division assignment and equal operation.
 */
fun findTotalPayment(originalAmount: Double, interestRate: Double): Double {

    // Calculate the monthly interest
    val monthlyInterest = originalAmount / 12 * interestRate

    // Add the original amount to the monthly interest
    var updatedAmount = originalAmount + monthlyInterest

    // Calculate the semi-annual interest
    val semiAnnualInterest = updatedAmount / 2 * interestRate

    // Subtract the semi-annual interest from the updated amount
    updatedAmount -= semiAnnualInterest

    // Calculate the annual interest
    val annualInterest = updatedAmount / 4 * interestRate

    // Divide the annual interest by 2 and assign it back to annualInterest
    var updatedAnnualInterest = annualInterest / 2

    // Calculate the final payment by adding all the interest
    val totalPayment = updatedAmount + monthlyInterest + semiAnnualInterest + updatedAnnualInterest

    return totalPayment
}