/**
 * This function calculates the net salary of a carpenter after deducting taxes.
 * The carpenter's salary is determined based on the number of hours worked and the hourly rate.
 * The tax rate is used to calculate the amount of taxes to be deducted from the gross salary.
 * The net salary is then returned as the output of this function.
 */
fun calculateCarpenterSalary(hoursWorked: Int, hourlyRate: Double, taxRate: Double): Double {

    val grossSalary = hoursWorked * hourlyRate
    val taxAmount = grossSalary * taxRate
    val netSalary = grossSalary - taxAmount
    return netSalary
}
/**
 * This function calculates the net salary of a carpenter after deducting taxes.
 * The carpenter's salary is determined based on the number of hours worked and the hourly rate.
 * The tax rate is used to calculate the amount of taxes to be deducted from the gross salary.
 * The net salary is then returned as the output of this function.
 */
fun calculateCarpenterSalary(hoursWorked: Int, hourlyRate: Double, taxRate: Double): Double {
/**
 * This function calculates the net salary of a carpenter after deducting taxes.
 * The carpenter's salary is determined based on the number of hours worked and the hourly rate.
 * The tax rate is used to calculate the amount of taxes to be deducted from the gross salary.
 * The net salary is then returned as the output of this function.
 */
fun calculateCarpenterSalary(hoursWorked: Int, hourlyRate: Double, taxRate: Double): Double {

    val grossSalary = hoursWorked * hourlyRate
    val taxAmount = grossSalary * taxRate
    val netSalary = grossSalary - taxAmount
    return netSalary
}