Question: 10. Modify the following program to the specifications given belovw Add a new status- SingleParent - where the tax is computed as a SINGLE but



10. Modify the following program to the specifications given belovw Add a new status- SingleParent - where the tax is computed as a SINGLE but with a further reduction of $5000 per child Add a new tax condition - if the income is greater than $249,999 for SINGLE, then add a tax of 25% on income amount above $150,000; if the income is greater than $349,999 for MARRIED, then add a tax of 35% on income amount above $200,000 Unknown status- if the status doesn't belong to SINGLE or MARRIED or SINGLE PARENT, thern compute a 33% tax on the income I. II. III. import java.util.Scanner; public class TaxReturn k * Constructs a TaxReturn object for a given income and marital status, and computes the tax. @param anIncome the taxpayer income @param aStatus either SINGLE or MARRIED public TaxReturn (double anIncome, int aStatus) income = an!ncome; status-aStatus; public double getTax() double tax = 0; if (status = SINGLE) if (income
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
