/**
 * Your client, a lawyer, needs a program that calculates the total amount of money owed to a client, based on the number of hours worked and the hourly rate of the lawyer. You need to write a function called 'calcTotalHours' that takes in two arguments:
 *
 * @param hoursWorked An integer representing the total number of hours the lawyer worked on the client's case.
 * @param hourlyRate An integer representing the hourly rate charged by the lawyer.
 *
 * The function should calculate the total amount owed to the client and return it. The total amount should be calculated by multiplying the hours worked by the hourly rate.
 *
 * Your task is to complete the code by adding the necessary lines of code inside the function to calculate and return the total amount owed.
 *
 * Example:
 * - If hoursWorked is 10 and hourlyRate is 150, the total amount owed should be 1500.
 *
 * Now, solve the exercise by completing the code below.
 */
fun calcTotalHours(hoursWorked: Int, hourlyRate: Int): Int {

    val totalAmount = hoursWorked * hourlyRate  // Calculate the total amount owed based on hours worked and hourly rate
    return totalAmount
}
/**
 * Your client, a lawyer, needs a program that calculates the total amount of money owed to a client, based on the number of hours worked and the hourly rate of the lawyer. You need to write a function called 'calcTotalHours' that takes in two arguments:
 *
 * @param hoursWorked An integer representing the total number of hours the lawyer worked on the client's case.
 * @param hourlyRate An integer representing the hourly rate charged by the lawyer.
 *
 * The function should calculate the total amount owed to the client and return it. The total amount should be calculated by multiplying the hours worked by the hourly rate.
 *
 * Your task is to complete the code by adding the necessary lines of code inside the function to calculate and return the total amount owed.
 *
 * Example:
 * - If hoursWorked is 10 and hourlyRate is 150, the total amount owed should be 1500.
 *
 * Now, solve the exercise by completing the code below.
 */
fun calcTotalHours(hoursWorked: Int, hourlyRate: Int): Int {
/**
 * Your client, a lawyer, needs a program that calculates the total amount of money owed to a client, based on the number of hours worked and the hourly rate of the lawyer. You need to write a function called 'calcTotalHours' that takes in two arguments:
 *
 * @param hoursWorked An integer representing the total number of hours the lawyer worked on the client's case.
 * @param hourlyRate An integer representing the hourly rate charged by the lawyer.
 *
 * The function should calculate the total amount owed to the client and return it. The total amount should be calculated by multiplying the hours worked by the hourly rate.
 *
 * Your task is to complete the code by adding the necessary lines of code inside the function to calculate and return the total amount owed.
 *
 * Example:
 * - If hoursWorked is 10 and hourlyRate is 150, the total amount owed should be 1500.
 *
 * Now, solve the exercise by completing the code below.
 */
fun calcTotalHours(hoursWorked: Int, hourlyRate: Int): Int {

    val totalAmount = hoursWorked * hourlyRate  // Calculate the total amount owed based on hours worked and hourly rate
    return totalAmount
}