Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.itjiangren.day1;
- public class HelloWorld {
- public static void main(String[] args) {
- System.out.println("Hello IT Jiangren Quan");
- }
- public String sayHello(String name) {
- return null;
- }
- /**
- * $0-$18,200 0% Nil
- $18,201- $37,000 19% 19 cents for each $1 over $18,200*
- $37,001-$87,000 32.5% $3,572 plus 32.5 cents for each dollar over $37,000
- $87,001-$180,000 37% $19,822 plus 37 cents for each dollar over $87,000
- $180,001 and above 45% $54,232 plus 45 cents for each dollar over $180,000
- * @param yearIncome
- * @return how much tax i need to pay
- */
- public double taxCalculator(double yearIncome) {
- // salary < 16000 , tax rate is 0
- // 16000 < salary < 80000 , tax rate is 20
- return 0.0;
- }
- /*
- *
- * If the year is evenly divisible by 4, go to step 2. Otherwise, go to step 5.
- If the year is evenly divisible by 100, go to step 3. Otherwise, go to step 4.
- If the year is evenly divisible by 400, go to step 4. Otherwise, go to step 5.
- The year is a leap year (it has 366 days).
- The year is not a leap year (it has 365 days).
- *
- *
- *
- */
- public boolean isLeapYear(int year) {
- //return true or false
- }
- }
Add Comment
Please, Sign In to add comment