diff --git a/day2.java b/day2.java index d9851c3..890555e 100644 --- a/day2.java +++ b/day2.java @@ -9,7 +9,6 @@ public class Solution { - // Complete the solve function below. static void solve(double meal_cost, int tip_percent, int tax_percent) { double ans = meal_cost + 0.01*tip_percent*meal_cost + 0.01*tax_percent*meal_cost; System.out.println("The total meal cost is " + Math.round(ans)+ " dollars."); @@ -20,7 +19,7 @@ static void solve(double meal_cost, int tip_percent, int tax_percent) { public static void main(String[] args) { double meal_cost = scanner.nextDouble(); - scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); + scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");//my_change int tip_percent = scanner.nextInt(); scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");