Question: pseudocode for import java.util.Scanner; public class Exercise 0 2 _ 0 5 { public static void main ( String [ ] args ) { Scanner

pseudocode for import java.util.Scanner;
public class Exercise02_05{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
System.out.print("Enter the subtotal and a gratuity rate: ");
double subtotal = in.nextDouble();
double gratuityRate = in.nextDouble();
double gratuity = subtotal *(gratuityRate /100);
double total = subtotal + gratuity;
System.out.println("The gratuity is $"+ gratuity +" and total is $"+ total);
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!