CCSU Spring, 1999 Project 1 Posting Date: February 2, 1999 Due Date: February 19, 1999 Relevant Demos: Demo 1 (HelloWorld.java), Demo 2 (HelloApplet.java), Demo 3 (HelloApplication.java), Demo 5 (CloseAndExit.java), Demo 6 (ArithOpsApplet.java), Demo 7 (ArithOpsApplication.java). This project comes in 3 parts. It covers the material in chapter 3 on terminal input-output and control structures, PLUS the material covered in class on applets and applications. 1. Modify class Average as indicated in problems 3.21 and 3.22 to do the following: (a) Check that the grades entered are in the range 0 to 100, inclusive, and print an error message if an invalid grade is entered. (b) Determine and print the minimum grade as well as the maximum grade. Please DO NOT hand in two programs for part 1, instead hand in ONE PROGRAM that incorporates both modifications. Call the class Average, and have it contained in files Average.java and Average.class 2. Modify class Average, the version you wrote for part 1, to run as an Applet. Get input from TextFields and print results directly on the Applet Panel. Use the example applets handed out in class for guidance. Remember, applets don't have a main method, but they do have an init method. Call the class AverageApplet, and have it contained in files AverageApplet.java and AverageApplet.class. 3. Modify class AverageApplet, the version you wrote for part 2, to run as a GUI application. Get input from TextFields and print results directly on the application Frame. Use the example GUI applications handed out in class for guidance. Remember, GUI applications must have a main method, and they usually must have a constructor which main calls. Call the class AverageGUIApp, and have it contained in files AverageGUIApp.java and AverageGUIApp.class. Hand in a FOLDER--the kind with a pocket, you can buy them in the bookstore--with YOUR NAME on it, containing in the pocket (1) printed copies of the text of all three classes, and (2) a 3.5" floppy disk with the .java and .class files for your classes. Notes: (1) Your files MUST be named Average.java, Average.class, AverageApplet.java, AverageApplet.class, AverageGUIApp.java and AverageGUIApp.class, so I can easily find them. (2) Each of your programs must begin with a remark box containing the following information, formatted as indicated: PROGRAMMER: Your name. DATE: Current date. COURSE: Course number and semester (CS 151, Spring 1998). PROJECT: Project number (Project 1 in this case). PROGRAM: Program name (use the class names described above). DESCRIPTION: A brief description of what the program does. FILES: The files your program uses (stdIn, stdOut for part 1, none for parts 2 and 3). LANGUAGE: Java JDK version you used Due: Friday, February 19, 1999 AT THE BEGINNING OF CLASS.