package com.company;
import java.util.Scanner;
public class Main {
public static void main
(String[] args
) {
Scanner input
= new Scanner
(System.
in);
final int tax1 = 10;
final int tax2 = 20;
final int tax3 = 30;
final int tax4 = 40;
final int tax5 = 50;
final int step1 = 23_000;
final int step2 = 46_000;
final int step3 = 74_000;
final int step4 = 120_000;
double income = 0;
double tax = 0;
System.
out.
println("Please enter your name: ");
System.
out.
println("Please enter your income: ");
income = input.nextInt();
double temp = income;
if (income > 0) {
temp = income / tax1;
if (income > step1) {
temp += (income - step1) / tax2;
if (income > step2) {
temp += (income - step2) / tax3;
if (income > step3) {
temp += (income - step3) / tax4;
if (income > step4) {
temp += (income - step4) / tax5;
}
}
}
}
}
System.
out.
println("the tax you need to pay is : " + temp
);
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}