Question: Write a Java class named Problem2. In this class, add a main method that asks the user to enter the amount of a purchase. Then
Write a Java class named Problem2. In this class, add a main method that asks the user to enter the amount of a purchase. Then compute the state and county sales tax. Assume the state sales tax is 5 percent and the county sales tax is 2.5 percent. Display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
