Guest User

Untitled

a guest
Nov 22nd, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. double SUBtotal = subTotal * 100.00;
  2. System.out.println("Your current total is: $" +
  3. Math.round(SUBtotal)/100.00);
  4. System.out.println("Options:");
  5. System.out.println(" 1. Order another item");
  6. System.out.println(" 2. Checkout");
  7.  
  8. mainOp = scan.nextInt();
  9. if (mainOp==2)
  10. {
  11.  
  12. System.out.println(Order);
  13.  
  14. double tax = subTotal * 0.0825;
  15. double taxSubtotal = tax + subTotal;
  16. double please = taxSubtotal * 100.00;
  17. double taxSubtotal2 = Math.round(please) / 100.00;
  18. System.out.println("nSubtotal (with tax): $ " + taxSubtotal2);
  19.  
  20. System.out.println("Tip: $");
  21. double tip = scan.nextDouble();
  22. double total = taxSubtotal + tip;
  23. double total2 = total * 100.00;
  24. double total3 = Math.round(total2) /100.00;
  25. System.out.println("Final Total: $" + total3);
  26.  
  27. System.out.println();
  28.  
  29. System.out.println("Thank You For Ordering!");
  30.  
  31.  
  32. }
Add Comment
Please, Sign In to add comment