Retirement Plan Many employers offer their employees a retirement benefit plan [known as a 401(k) plan]. Retirement benefit plans are usually beneficial to an employee, since they force the employee to save. In addition, employers often match part of the employee’s contribution; therefore the employee receives free money.
(a) Write a program that uses the form in Fig. 4.51(a) to ask an employee whether or not he or she would like to participate. When the program starts, the check box should be unchecked and the text box should be empty. If the employee clicks on the button without checking the check box, the statement “You have opted out of the retirement plan.” should appear in the text box.
(b) Write a program that uses the form in Fig. 4.51(b) to ask an employee whether or not he or she would like to participate. When the program starts, both radio buttons should be unchecked and the text box should be empty. If the employee clicks on the button without checking a radio button, the message “You must make a selection.” should be displayed in a message box. Otherwise, one of the two statements appearing in the text boxes in Fig. 4.26 (a) and (b) should appear in the text box.
Note: In part (a), opting out is the default option. A study2 has shown that employees are more likely to opt-in for the retirement plan when the question is posed as in part (b).
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.