/**
 * Calculate the profit obtained by selling a harvest, considering the cost of production.
 *
 * @param harvest Total harvest obtained (in tons).
 * @param cost Cost of production per ton (in dollars).
 * @return The profit obtained by selling the harvest.
 *
 * Examples:
 * calculateHarvestProfit(20.0, 50.0) returns 900.0
 */
fun calculateHarvestProfit(harvest: Double, cost: Double): Double {

    val profit = harvest * (1000 - cost)
    return profit
}
/**
 * Calculate the profit obtained by selling a harvest, considering the cost of production.
 *
 * @param harvest Total harvest obtained (in tons).
 * @param cost Cost of production per ton (in dollars).
 * @return The profit obtained by selling the harvest.
 *
 * Examples:
 * calculateHarvestProfit(20.0, 50.0) returns 900.0
 */
fun calculateHarvestProfit(harvest: Double, cost: Double): Double {
/**
 * Calculate the profit obtained by selling a harvest, considering the cost of production.
 *
 * @param harvest Total harvest obtained (in tons).
 * @param cost Cost of production per ton (in dollars).
 * @return The profit obtained by selling the harvest.
 *
 * Examples:
 * calculateHarvestProfit(20.0, 50.0) returns 900.0
 */
fun calculateHarvestProfit(harvest: Double, cost: Double): Double {

    val profit = harvest * (1000 - cost)
    return profit
}