/**
 * A physician wants to determine their income based on the number of treatments performed and the price per treatment.
 * The calculateIncome function takes in a list of treatments performed by the physician and the price per treatment, and
 * returns the total income earned by the physician.
 *
 * @param treatments A list of treatments performed by the physician.
 * @param pricePerTreatment The price charged by the physician for each treatment.
 * @return The total income earned by the physician.
 *
 * Example:
 * calculateIncome(listOf("Check-up", "Vaccination", "Blood test"), 100.50) -> 301.50
 * calculateIncome(listOf("Surgery", "Consultation"), 500.25) -> 1000.50
 */
fun calculateIncome(treatments: List<String>, pricePerTreatment: Double): Double {

    val totalIncome = treatments.size * pricePerTreatment  // Calculates the total income
    return totalIncome
}
/**
 * A physician wants to determine their income based on the number of treatments performed and the price per treatment.
 * The calculateIncome function takes in a list of treatments performed by the physician and the price per treatment, and
 * returns the total income earned by the physician.
 *
 * @param treatments A list of treatments performed by the physician.
 * @param pricePerTreatment The price charged by the physician for each treatment.
 * @return The total income earned by the physician.
 *
 * Example:
 * calculateIncome(listOf("Check-up", "Vaccination", "Blood test"), 100.50) -> 301.50
 * calculateIncome(listOf("Surgery", "Consultation"), 500.25) -> 1000.50
 */
fun calculateIncome(treatments: List<String>, pricePerTreatment: Double): Double {
/**
 * A physician wants to determine their income based on the number of treatments performed and the price per treatment.
 * The calculateIncome function takes in a list of treatments performed by the physician and the price per treatment, and
 * returns the total income earned by the physician.
 *
 * @param treatments A list of treatments performed by the physician.
 * @param pricePerTreatment The price charged by the physician for each treatment.
 * @return The total income earned by the physician.
 *
 * Example:
 * calculateIncome(listOf("Check-up", "Vaccination", "Blood test"), 100.50) -> 301.50
 * calculateIncome(listOf("Surgery", "Consultation"), 500.25) -> 1000.50
 */
fun calculateIncome(treatments: List<String>, pricePerTreatment: Double): Double {

    val totalIncome = treatments.size * pricePerTreatment  // Calculates the total income
    return totalIncome
}