Guest User

Untitled

a guest
Dec 15th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. package com.itjiangren.day1;
  2.  
  3. public class HelloWorld {
  4. public static void main(String[] args) {
  5. System.out.println("Hello IT Jiangren Quan");
  6. }
  7.  
  8.  
  9. public String sayHello(String name) {
  10. return null;
  11. }
  12.  
  13.  
  14. /**
  15. * $0-$18,200 0% Nil
  16. $18,201- $37,000 19% 19 cents for each $1 over $18,200*
  17. $37,001-$87,000 32.5% $3,572 plus 32.5 cents for each dollar over $37,000
  18. $87,001-$180,000 37% $19,822 plus 37 cents for each dollar over $87,000
  19. $180,001 and above 45% $54,232 plus 45 cents for each dollar over $180,000
  20. * @param yearIncome
  21. * @return how much tax i need to pay
  22. */
  23.  
  24. public double taxCalculator(double yearIncome) {
  25. // salary < 16000 , tax rate is 0
  26. // 16000 < salary < 80000 , tax rate is 20
  27.  
  28. return 0.0;
  29. }
  30.  
  31. /*
  32. *
  33. * If the year is evenly divisible by 4, go to step 2. Otherwise, go to step 5.
  34. If the year is evenly divisible by 100, go to step 3. Otherwise, go to step 4.
  35. If the year is evenly divisible by 400, go to step 4. Otherwise, go to step 5.
  36. The year is a leap year (it has 366 days).
  37. The year is not a leap year (it has 365 days).
  38. *
  39. *
  40. *
  41. */
  42. public boolean isLeapYear(int year) {
  43. //return true or false
  44. }
  45.  
  46.  
  47. }
Add Comment
Please, Sign In to add comment