Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Taxes
- {
- public static void main (String[] args)
- {
- System.out.println("income?");
- int income= IO.readInt();
- double x=0;
- if (income<=8000)
- {x=.1;}
- else if (income<=26000)
- {x=.15;}
- else if (income<=48000)
- {x=.25;}
- else
- {x=.35;}
- double c=x*income;
- IO.outputDoubleAnswer(double c);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement