Write a program that calculates the Total Price of value meal ordered. The Total Price must include the 8% Government tax. Get inputs from user, the type of value meal selected and the quantity ordered. Use if-else statement. Hints Gov tax = 0.08 x Price and Total Price = (Price x quantity) + Government Tax
1
Expert's answer
2012-10-17T09:40:32-0400
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
double TAX = 0.08;
System.out.println("Enter the price of a meal: ");
String price = in.nextLine();
System.out.println("Enter the quantity: ");
Comments
You're welcome. We are glad to be helpful. If you really liked our service please press like-button beside answer field. Thank you!
Hi, thank you so much admin...
Leave a comment