package COM.Sample;
import java.util.Scanner;
public class salestax {
public static void main(String[] args) {
//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
Scanner type_house = new Scanner(System.in);
System.out.println("What was the amount of your Purchase");
int house = type_house.nextInt();
System.out.println(house+ " Is how much you payed");
float state_tax =0.04F;
float country_tax = 0.02F;
float after_state =(house*state_tax);
float after_country= (house*country_tax);
float total_sales= (after_state + after_country);
float sales_house= (total_sales+house);
System.out.println(after_state+" is your State Tax"+"\n"+after_country+" is your country tax"+"\n"+total_sales+" is your total sales tax" +"\n"+sales_house+" Is your total");
}
}