/**
 * As a Marketing Manager, you need to check if a marketing campaign is approved based on age and budget.
 * The campaign is approved if the age is between 18 and 35 (inclusive) and the budget is greater than or equal to $50000.
 * You need to complete the code to return "Approved" if the campaign meets the criteria, and "Not Approved" otherwise.
 * Use an alternative approach to the ternary operator and an if statement.
 *
 * @param age The age of the target audience.
 * @param budget The budget allocated to the campaign.
 * @return "Approved" if the campaign is approved, "Not Approved" otherwise.
 */
fun checkMarketingApproval(age: Int, budget: Double): String {

    return if (age in 18..35 && budget >= 50000) {
        "Approved"
    } else {
        "Not Approved"
    }
}
/**
 * As a Marketing Manager, you need to check if a marketing campaign is approved based on age and budget.
 * The campaign is approved if the age is between 18 and 35 (inclusive) and the budget is greater than or equal to $50000.
 * You need to complete the code to return "Approved" if the campaign meets the criteria, and "Not Approved" otherwise.
 * Use an alternative approach to the ternary operator and an if statement.
 *
 * @param age The age of the target audience.
 * @param budget The budget allocated to the campaign.
 * @return "Approved" if the campaign is approved, "Not Approved" otherwise.
 */
fun checkMarketingApproval(age: Int, budget: Double): String {
/**
 * As a Marketing Manager, you need to check if a marketing campaign is approved based on age and budget.
 * The campaign is approved if the age is between 18 and 35 (inclusive) and the budget is greater than or equal to $50000.
 * You need to complete the code to return "Approved" if the campaign meets the criteria, and "Not Approved" otherwise.
 * Use an alternative approach to the ternary operator and an if statement.
 *
 * @param age The age of the target audience.
 * @param budget The budget allocated to the campaign.
 * @return "Approved" if the campaign is approved, "Not Approved" otherwise.
 */
fun checkMarketingApproval(age: Int, budget: Double): String {

    return if (age in 18..35 && budget >= 50000) {
        "Approved"
    } else {
        "Not Approved"
    }
}