// Declare variables String restaurantName; String serverName; double subtotal; double tax; double total; double taxRate = 0.05; double tipRate1 = 0.10; double tipRate2 = 0.15; double tipRate3 = 0.20; // Ask and receive input from the user // Perform calculations // Print receipt
===================================== Park Sushi Your server was: JULIE Subtotal: $56.23 Tax: $2.81 ===================================== Total: $59.04 Suggested tips: 10%: $5.90 15%: $8.86 20%: $11.81 Thank you! =====================================
CODE: System.out.printf("My battery is only at 3%%."); OUTPUT: My battery is only at 3%.