Question: import java.util.Scanner; public class Exercise 0 2 _ 0 5 { public static void main ( String [ ] args ) { Scanner input =
import java.util.Scanner;
public class Exercise
public static void mainString args
Scanner input new ScannerSystemin;
Enter the subtotal
System.out.printEnter the subtotal of the bill: ;
double subtotal input.nextDouble;
Enter the gratuity rate
System.out.printEnter the gratuity rate : ;
double gratuityRate input.nextDouble;
Compute gratuity and total
double gratuity subtotal gratuityRate;
double total subtotal gratuity;
Display the results
System.out.printlnThe gratuity is $intgratuity ;
System.out.printlnThe total is $inttotal ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
