Question: 8 ) Please answer all tasks in JAVA Write an application called JInsurance that allows the user to choose insurance options in JCheckBox objects. Use

8) Please answer all tasks in JAVA
Write an application called JInsurance that allows the user to choose insurance options in JCheckBox objects. Use a ButtonGroup to allow the user to select only one of two insurance typesHMO (health maintenance organization) or PPO (preferred provider organization). Use regular (single) JCheckBox objects for dental insurance and vision insurance options; the user can select one option, both options, or neither option.
As the user selects each option, display its name and price in a JTextField; the HMO costs $200 per month, the PPO costs $600 per month, the dental coverage adds $75 per month, and the vision care adds $20 per month. When a user deselects the vision or dental options, make the text field blank.
An example of the program is shown below:
Task 1: Created the JInsurance class.
Task 2: The JInsurance program contains four JCheckBox components.
Task 3: The JInsurance program displays the correct cost for the selection.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!