CS U370 Assignment #6 Section: Spring 2008, Prof. Hafner Assigned: Tuesday, March 25 Due: Wednesday , April 2 The purpose of this assignment is to begin exploring the concept of re-usable software by implementing and using the following java interfaces and classes: -- the javax.swing.Icon interface for creating Icon objects -- the classes found in the java.awt.geom package for drawing shapes -- the javax.swing.JOptionPane class for displaying standard dialog boxes Your task is to implement an Interactive GUI-based program that collects some simple input data about a student's planned graduate date, and displays a message - this will be done by utilizing the javax.swing.JOptionPane class of the java API. **************************************************************** You should submit one file: GradData.java, usiing the Web-based interface provided for this course. Your program should being with a block comment containing the following information: 1. Your name, as you want the instructor to write it. 2. Your email address. 3. Any remarks that you wish to make to the instructor. Late assignments may be discounted, and very late assignments may be discarded. -------------------------------------------------- Your assignment: implement one public class, GradData and one non-public class, FaceIcon both to be in the same java source file within the default package. The GradData class must have a main() method with behavior as described below, and must achieve this behavior using the the dialog boxes created by the JOptionPane class of the java API. -- The FaceIcon must appear in each dialog box -- An appropriate title must appear in each dialog box Behavior of GradData.main() method: Step 1: ask the user for the name of the graduate, and save the answer for use in Steps 2 and 3. This must be done using and InputDialog box. Step 2: In another dialog box, ask the user for the graduation year of , which will be a choice of: 2008, 2009, 2010, 2011, or 2012. (this must be done using an OptionDialog box, and the name of the graduate from Step 1 must be part of the question). Step 3: In another dialog box, display the following message: "Congratualations , you will graduate in !! This must be done using a MessageDialog box. Grading: There will be 10 points for the FaceIcon, and 10 points for the overall correctness and readability of your program. 8/10 points will be given for the "minimal" correct face icon, with 1-2 more points available for better looking face icons.