Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please do this enhancement. Use three JOptionPane Confirm Dialog Boxes (using the JOptionPane.YES_NO_OPTION) to ask the worker if they want medical insurance, dental insurance, and
Please do this enhancement.
Use three JOptionPane Confirm Dialog Boxes (using the JOptionPane.YES_NO_OPTION) to ask the worker if they want medical insurance, dental insurance, and long-term disability insurance, as the worker can enroll in more than one insurance option. Use a do...while() loop to ask the user for their skill level. Keep looping until a valid skill level is provided. Use a JOptionPane to show the workers gross pay.
Barnhill Fastener Company runs a small factory. The company employs workers who are paid one of three hourly rates depending on skill level: Hourly Pay Rate (S) 17.00 20.00 22.00 Skill Level Each factory worker might work any number of hours per week; any hours over 40 are paid at one and one-half times the usual rate. In addition, workers in skill levels 2 and 3 can elect the following insurance options: Option Weekly Cost to Employee ($) Explanation Medical insurance Dental insurance Long-term disability insurance 32.50 20.00 10.00Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started