Question: . Create an event handler for the Click event of the Calculate button. Then, write the code for calculating and displaying the tax owed for
. Create an event handler for the Click event of the Calculate button. Then, write the code for calculating and displaying the tax owed for any amount within the tax brackets in the table above. This code should provide for decimal entries, but you can assume that the user will enter valid decimal values. Write the code that has the following logic: if the income is less or equal to 216 200, then the tax becomes the income multiplied by the income tax of 18%. Otherwise: if the income is greater than 216200 and less than or equal to 337800, then the tax becomes 38916 + 26% of the income minus the previous income value, which in this case is 216200.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
