I need to calculate taxes and I am not sure how to add (helper methods). So far this is what I have.
public double calculateTax() {
double tax = 0;
if (single) {
singleTax(income);
} else if (married) {
marriedTax(income);
}
return tax;
}
Aucun commentaire:
Enregistrer un commentaire