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 types—HMO (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.