Objective:
The objective of this assignment is to create graphical user interfaces with various graphical user interface
controls. You are solving two problems in this assignment.
1. Write a program that draws various figures, as shown in Figure (a). The user selects a figure from a
radio button and uses a check box to specify whether it is filled.
2. Write a program that simulates a traffic light. The program lets the user select one of three lights:
red, yellow, or green. When a radio button is selected, the light is turned on. Only one light can be
on at a time (see Figure (b)). No light is on when the program starts.