/**
 * This function takes the total sales amount, the sales quota, and the commission rate as arguments and calculates
 * the commission of the salesperson by using the OR operator and the multiplication assignment operator.
 *
 * The commission is calculated by comparing the sales with the quota using the OR operator. If the sales are greater
 * than or equal to the quota, the commission is calculated by multiplying the sales with the commission rate.
 * Otherwise, the commission is set to 0.
 *
 * @param sales The total sales amount.
 * @param quota The sales quota.
 * @param commissionRate The commission rate.
 * @return The commission amount.
 */
fun commissionCalculator(sales: Double, quota: Double, commissionRate: Double): Double {

    var commission = 0.0
    if (sales >= quota || commissionRate <= 0) {
        commission = sales * commissionRate
    }
    return commission
}
/**
 * This function takes the total sales amount, the sales quota, and the commission rate as arguments and calculates
 * the commission of the salesperson by using the OR operator and the multiplication assignment operator.
 *
 * The commission is calculated by comparing the sales with the quota using the OR operator. If the sales are greater
 * than or equal to the quota, the commission is calculated by multiplying the sales with the commission rate.
 * Otherwise, the commission is set to 0.
 *
 * @param sales The total sales amount.
 * @param quota The sales quota.
 * @param commissionRate The commission rate.
 * @return The commission amount.
 */
fun commissionCalculator(sales: Double, quota: Double, commissionRate: Double): Double {
/**
 * This function takes the total sales amount, the sales quota, and the commission rate as arguments and calculates
 * the commission of the salesperson by using the OR operator and the multiplication assignment operator.
 *
 * The commission is calculated by comparing the sales with the quota using the OR operator. If the sales are greater
 * than or equal to the quota, the commission is calculated by multiplying the sales with the commission rate.
 * Otherwise, the commission is set to 0.
 *
 * @param sales The total sales amount.
 * @param quota The sales quota.
 * @param commissionRate The commission rate.
 * @return The commission amount.
 */
fun commissionCalculator(sales: Double, quota: Double, commissionRate: Double): Double {

    var commission = 0.0
    if (sales >= quota || commissionRate <= 0) {
        commission = sales * commissionRate
    }
    return commission
}