Good Evening,
My code won't round off, and I don't know why! Please help!
import java.util.*;
import java.math.*;
public class Arithmetic {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int tipPercentage; // tip percentage
int taxPercentage; // tax percentage
int totalTip; // total tip
int totalTax; // total tax
double mealCost; // original meal price
double totalCost = 0.0; // total meal price
// Write your calculation code here.
mealCost = scan.nextDouble();
tipPercentage = scan.nextInt ();
taxPercentage = scan.nextInt();
totalCost += mealCost;
totalCost += mealCost*tipPercentage/100;
totalCost += mealCost*taxPercentage/100;
// cast the result of the rounding operation to an int and save it as totalCost
mealCost=(int)Math.round(totalCost);
// Print your result
System.out.println (" The total meal cost is " + totalCost + " dollars. ");
}
}