/**
 * Calculates the tax amount based on the given income and tax rate.
 *
 * @param income The income in dollars.
 * @param taxRate The tax rate as a decimal.
 * @return The amount of tax to be paid.
 */
fun calculateTax(income: Double, taxRate: Double): Double {

    val taxAmount = income * taxRate
    return taxAmount
}
/**
 * Calculates the tax amount based on the given income and tax rate.
 *
 * @param income The income in dollars.
 * @param taxRate The tax rate as a decimal.
 * @return The amount of tax to be paid.
 */
fun calculateTax(income: Double, taxRate: Double): Double {
/**
 * Calculates the tax amount based on the given income and tax rate.
 *
 * @param income The income in dollars.
 * @param taxRate The tax rate as a decimal.
 * @return The amount of tax to be paid.
 */
fun calculateTax(income: Double, taxRate: Double): Double {

    val taxAmount = income * taxRate
    return taxAmount
}