Createa program-calculates sales tax and total sale amount


Discuss teh below:

Task:

You need to write a program that calculates sales tax and total sale amount. The user should be presented with a menu listing four different products. Based upon their choice, the user enters the quantity that they desire. The program will then calculate the Subtotal, Sales Tax Amount, and Total Sale Amount. The calculations should be performed as follows:

Subtotal = (Price * Quantity)

Sales Tax Amount = Subtotal * Sales Tax Percentage (sales tax percentage should be 7.5%)

Total Sale Amount = Subtotal + Sales Tax Amount

Be sure to use variables to store temporary values. The program should output the product sold, quantity sold, and the calculated values for Subtotal, Sales Tax Amount, and Total Sale Amount.

Java should be used to write your program. Use NotePad to create your Java program. An IDE (Integrated Development Environment) like NetBeans is not necessary and must not be used. Use the Command Prompt window to compile and execute your code.

 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Createa program-calculates sales tax and total sale amount
Reference No:- TGS01934337

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)