Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Tax_Package;
- public class Tax {
- private double income;
- private double bankInt;
- private double superAnn;
- private double clDed;
- private String privHealth;
- private double Tax1;
- public Tax() {
- // TODO Auto-generated constructor stub
- }
- //income , bankInt,superAnn,clDed,privHealth
- //constructor
- public Tax(double income, double bankInt, double superAnn, double clDed, String privHealth, double tax1) {
- super();
- this.income = income;
- this.bankInt = bankInt;
- this.superAnn = superAnn;
- this.clDed = clDed;
- this.privHealth = privHealth;
- Tax1 = tax1;
- }
- public double getIncome() {
- return income;
- }
- public void setIncome(double income) {
- this.income = income;
- }
- public double getBankInt() {
- return bankInt;
- }
- public void setBankInt(double bankInt) {
- this.bankInt = bankInt;
- }
- public double getSuperAnn() {
- return superAnn;
- }
- public void setSuperAnn(double superAnn) {
- this.superAnn = superAnn;
- }
- public double getClDed() {
- return clDed;
- }
- public void setClDed(double clDed) {
- this.clDed = clDed;
- }
- public String getPrivHealth() {
- return privHealth;
- }
- public void setPrivHealth(String privHealth) {
- this.privHealth = privHealth;
- }
- public double getTax1() {
- return Tax1;
- }
- public void setTax1(double tax1) {
- Tax1 = tax1;
- }
- public String toString(){
- String temp = "Enter bank interest accrued: "+bankInt+"\n"+"Does the taxpayer currently have private health insurance? (Y/N): "+privHealth+Tax1;
- return temp;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement