Purchase Solution

Java Code and Class File

Not what you're looking for?

Ask Custom Question

Details: 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.

Purchase this Solution

Solution Summary

The solution contains a java code to calculate sales tax and total sale amount. The code is written using NetBeans, a java editor. It is error free and tested. I would suggest you to use notepad++ to open the java program or use any available java editor, otherwise if you open it in notepad or non-compatible editor, it will destroy the formatting.

Solution Preview

Hi,

The program is attached. I would suggest you to use notepad++ to open the java program ...

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Javscript Basics

Quiz on basics of javascript programming language.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic Networking Questions

This quiz consists of some basic networking questions.