/**
 * This function calculates the total salary of a nurse based on their work hours, hourly rate, and overtime hours with overtime rate.
 *
 * @param workHours The number of regular work hours completed by the nurse.
 * @param hourlyRate The hourly rate of the nurse's regular work.
 * @param overTimeHours The number of overtime hours worked by the nurse.
 * @param overTimeRate The hourly rate of the nurse's overtime work.
 * @return The total salary of the nurse.
 */
fun computeTotalSalary(workHours: Int, hourlyRate: Double, overTimeHours: Int, overTimeRate: Double): Double {

    val regularPay = workHours * hourlyRate
    val overtimePay = overTimeHours * overTimeRate

    return regularPay + overtimePay
}
/**
 * This function calculates the total salary of a nurse based on their work hours, hourly rate, and overtime hours with overtime rate.
 *
 * @param workHours The number of regular work hours completed by the nurse.
 * @param hourlyRate The hourly rate of the nurse's regular work.
 * @param overTimeHours The number of overtime hours worked by the nurse.
 * @param overTimeRate The hourly rate of the nurse's overtime work.
 * @return The total salary of the nurse.
 */
fun computeTotalSalary(workHours: Int, hourlyRate: Double, overTimeHours: Int, overTimeRate: Double): Double {
/**
 * This function calculates the total salary of a nurse based on their work hours, hourly rate, and overtime hours with overtime rate.
 *
 * @param workHours The number of regular work hours completed by the nurse.
 * @param hourlyRate The hourly rate of the nurse's regular work.
 * @param overTimeHours The number of overtime hours worked by the nurse.
 * @param overTimeRate The hourly rate of the nurse's overtime work.
 * @return The total salary of the nurse.
 */
fun computeTotalSalary(workHours: Int, hourlyRate: Double, overTimeHours: Int, overTimeRate: Double): Double {

    val regularPay = workHours * hourlyRate
    val overtimePay = overTimeHours * overTimeRate

    return regularPay + overtimePay
}