Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a GUI to provide a simple tax calculator which looks like the two examples given below. (Two so you can check your calculations.) Here

Create a GUI to provide a simple tax calculator which looks like the two examples given below. (Two so you can check your calculations.) Here are the details of the design of the window The JFrame should be divided into three regions using a grid layout: The WEST region should contain a radio button group to determine whether the taxpayer is filing as Single, Married, or Single, Head-of-Household The CENTER region should contain an editable tax field where the user will enter the taxable income, a button to calculate the tax amount, a non-editable field to hold calculated tax amount. The EAST region should contain four checkboxes for four deduction types (Self, Dependent Child, Three-Legged Dog, and Blind Grandmother) The entire frame should appear with a WHITE background. This may require that you set the background for the JFrame, JPanel, JTextField, JCheckBox, and JRadioButton components. The only component you need to register is the button to calculate the tax amount When the button is clicked, the tax amount is calculated and displayed to 2 decimal places. Heres how the tax amount is calculated: Start with the taxable income amount entered by the user. For each deduction that is checked, take $2,000 off of the taxable income amount. Multiply the reduced taxable income amount by one of the following tax rates: 32% for Single 28% for Married 22% for Head-of-Household

Sub listings of all Java classes, Print Screens of the two example tax situations given above, and one of your own choosing.

heres an example of output. complete solutions please.

image text in transcribed

Income Tax Calculator Single O Married Single, Head of Household Income Tax Calculator O Single O Married O Single, Head of Household Taxable Income 80000 V Self Dependent Child Compute Three-legged Dog Income Tax 24,320.00 Blind Grandmother Taxable Income 95000 M Self Dependent Child Compute M Three-legged Dog Income Tax 24.920.000 M Blind Grandmother

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Technology

Authors: Suad Alagic

1st Edition

354096276X, 978-3540962762

Students also viewed these Databases questions