• + 0 comments

    In python:

    def solve(meal_cost, tip_percent, tax_percent):
        """
        Prints the calculated value, rounded to the nearest integer.
        :param meal_cost:
        :param tip_percent:
        :param tax_percent:
        :return: The function returns nothing.
        """
        tip = (meal_cost / 100) * tip_percent
        tax = (tax_percent / 100) * meal_cost
        total_cost = meal_cost + tip + tax
        print(int(round(total_cost)))