Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write this in pseudocode import java.util.Scanner; public class Exercise 0 2 _ 0 5 { public static void main ( String [ ] args )
Write this in pseudocode 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started