Advertisement
Guest User

Untitled

a guest
May 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. package Tax_Package;
  2.  
  3. public class Tax {
  4. private double income;
  5. private double bankInt;
  6. private double superAnn;
  7. private double clDed;
  8. private String privHealth;
  9. private double Tax1;
  10.  
  11. public Tax() {
  12. // TODO Auto-generated constructor stub
  13. }
  14.  
  15. //income , bankInt,superAnn,clDed,privHealth
  16. //constructor
  17.  
  18. public Tax(double income, double bankInt, double superAnn, double clDed, String privHealth, double tax1) {
  19. super();
  20. this.income = income;
  21. this.bankInt = bankInt;
  22. this.superAnn = superAnn;
  23. this.clDed = clDed;
  24. this.privHealth = privHealth;
  25. Tax1 = tax1;
  26. }
  27.  
  28.  
  29.  
  30.  
  31.  
  32. public double getIncome() {
  33. return income;
  34. }
  35.  
  36. public void setIncome(double income) {
  37. this.income = income;
  38. }
  39.  
  40. public double getBankInt() {
  41. return bankInt;
  42. }
  43.  
  44. public void setBankInt(double bankInt) {
  45. this.bankInt = bankInt;
  46. }
  47.  
  48. public double getSuperAnn() {
  49. return superAnn;
  50. }
  51.  
  52. public void setSuperAnn(double superAnn) {
  53. this.superAnn = superAnn;
  54. }
  55.  
  56. public double getClDed() {
  57. return clDed;
  58. }
  59.  
  60. public void setClDed(double clDed) {
  61. this.clDed = clDed;
  62. }
  63.  
  64. public String getPrivHealth() {
  65. return privHealth;
  66. }
  67.  
  68. public void setPrivHealth(String privHealth) {
  69. this.privHealth = privHealth;
  70. }
  71.  
  72. public double getTax1() {
  73. return Tax1;
  74. }
  75.  
  76. public void setTax1(double tax1) {
  77. Tax1 = tax1;
  78. }
  79.  
  80. public String toString(){
  81. String temp = "Enter bank interest accrued: "+bankInt+"\n"+"Does the taxpayer currently have private health insurance? (Y/N): "+privHealth+Tax1;
  82. return temp;
  83.  
  84. }
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement