Question: Create a class named Taxpayer . Data fields for Taxpayer class include the Social Security number ( usea string for the type, but do not
Create a class named Taxpayer
Data fields for Taxpayer class include the Social Security number usea string for the type, but do not use dashes within the number the yearly grossincome, the tax owed, and totalTaxAmt static variable
The class includes the properties with get and set for the first twodata fields, but make the tax owed a readonly property. The tax should becalculated whenever the income is set. Assume the tax is of income forincomes under $ and for incomes that are $ or higher. After thetax owed is calculated, the tax owed is added into totalTaxAmt.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
