title: getting the wrong meal cost
body: <p>**
  ** </p>
  
  <p>Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip), and tax percent (the percentage of the meal price being added as tax) for a meal, find and print the meal's total cost.</p>
  
  <p>Here is my code</p>
  
  <pre><code>public class Solution3 {
  
      public static void main(String[] args) {
          Scanner scan = new Scanner(System.in);
          double mealCost = scan.nextDouble(); // original meal price
          int tipPercent = scan.nextInt(); // tip percentage
          int taxPercent = scan.nextInt(); // tax percentage
          double tip = mealCost *(tipPercent/100);
          double tax = mealCost*(taxPercent/100);
          double total= mealCost+tip+tax;
          // cast the result of the rounding operation to an int and save it as totalCost 
          int totalCost = (int) Math.round(total);
  
           System.out.println("The total meal cost is "+totalCost+" dollars");
      }
  }
  </code></pre>
  
  <p>Expected Output </p>
  
  <pre><code>The total meal cost is 15 dollars.
  </code></pre>
  
  <p>My Output</p>
  
  <pre><code>The total meal cost is 12 dollars.
  </code></pre>
  
  <p>Please help me out.</p>
  
  <p>Any help would be appreciated.</p>