Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions day2.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand All @@ -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])?");
Expand Down