• + 1 comment

    JAVA Solution.

    class Result {

                                                                                                                                                                                                                                                         public static void solve(double meal_cost, int tip_percent, int tax_percent) {
    
        // Write your code here
    
    double tip=(meal_cost/100.0)*tip_percent;
    double tax=(tax_percent/100.0)*meal_cost;
    double total_cost=meal_cost+tip+tax;
    System.out.println(Math.round(total_cost));
    
    }
    

    }