Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. public class Taxes
  2. {
  3. public static void main (String[] args)
  4.     {
  5.  
  6. System.out.println("income?");
  7. int income= IO.readInt();
  8.  
  9. double x=0;
  10.  
  11. if (income<=8000)
  12. {x=.1;}
  13.  
  14. else if (income<=26000)
  15. {x=.15;}
  16.  
  17. else if (income<=48000)
  18. {x=.25;}
  19.  
  20. else
  21. {x=.35;}
  22.  
  23. double c=x*income;
  24.  
  25. IO.outputDoubleAnswer(double c);
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement