# Question Solved1 AnswerIN JAVA Write a program that reads a restaurant bill and a gratuity (tip) rate, then computes the tip and total bill. For example if the user enters 10.00 for the bill and a 15% tip rate, the program displays #1.50 as the tip and $11.50 as the total. Run your program twice, using the following input: Run 1: Enter the bill: 200.00 Enter the tip rate: 20% Run 2: Enter the bill: 150.00 Enter the tip rate: 25% QA1CBK The Asker · Computer Science IN JAVA Write a program that reads a restaurant bill and a gratuity (tip) rate, then computes the tip and total bill. For example if the user enters 10.00 for the bill and a 15% tip rate, the program displays #1.50 as the tip and$11.50 as the total.

Run your program twice, using the following input:

Run 1:

Enter the bill: 200.00

Enter the tip rate: 20%

Run 2:

Enter the bill: 150.00

Enter the tip rate: 25%

More
Screenshots of java program input output given below: Enter the bill:10.00Enter the tip rate:15Tip is: $1.50Total is:$11.50Enter the bill:200.00Enter the tip rate:20Tip is: $40.00Total is:$240.00Enter the bill:200.00Enter the tip rate:20Tip is: $40.00Total is:$240.00Enter the bill:150.00Enter the tip rate:25Tip is: $37.50Total is:$187.50 Java Code: import java.util.Scanner;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;//import Scanner class used to take input from user. public class RestaurentBill { &#160; &#160; public static void main(String[] args){ &#160; &#160; &#160; &#160; Scanner scanner = new Scanner(System.in);&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;//create Scanner class object &#160; &#160; &#160; &#160;&#160; &#160; &#160; &#160; &#160; System.out.println("Enter the bill:"); &#160; &#160; &#160; &#160; double bill=scanner.nextDouble();&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;// ... See the full answer