Description
Write a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The program should 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). Hint: Use the value 0.02 to represent 2 percent, and 0.04 to represent 4 percent.
Explanation & Answer
Your code is done. Please find the code inside the doc.
Code:
import java.util.Scanner;
public class SalesTax {
public static double STATE_TAX =.04...
Review
Review
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Similar Content
Related Tags
Divergent
by Veronica Roth
A Wrinkle as Time
by Madeleine L'Engle
The Odyssey
by Homer
Daisy Miller
by Henry James
2001 A Space Odyssey
by Arthur Clarke
Pride and Prejudice
by Jane Austen
Orphan Train
by Christina Baker Kline
The Age Of Light
by Whitney Scharer
Gone with the Wind
by Margaret Mitchell