• + 0 comments
     double result;
    double tip=(meal_cost*tip_percent)/100;
    double tax=(tax_percent*meal_cost)/100;
    result=meal_cost+tip+tax;
    int round_val=(int)Math.round(result);
    System.out.println(round_val);
    

    * Simple java code*