Assignment #6 CSI205 Assigned: 11/10/09 Due: 11/19/09 Assignment: Create a new subclass named Clock that inherits from your ExtendedDate class from assignment #5. The Clock class will be used to represent a 24 hour clock and should contain three private integer fields: hours, minutes, and seconds. Clock should contain the following public methods: public get methods for each of the private data fields i.e. getHour(), getMinute(), getSecond() public Clock() Instantiates a Clock object and sets the date to 1/1/1980 and the time to 00:00:00 This method should use setTime (described below) to set the hours, minutes, and seconds. public void increaseTime() Increases the time by one second. This method should also adjust minutes, hours, and the date if necessary. public void decreaseTime() Decreases the time by one second. This method should also adjust minutes, hours, and the date if necessary. public boolean setTime(int hr, int min, int sec) Sets the time according to the given parameters and returns true. If any parameters are invalid, this method does nothing and returns false. public String getTime() returns the time in the format "HH:MM:SS AM/PM" public boolean setTimeAndDate(int month, int day, int year, int hr, int min, int sec) Adjusts the time and date according to the given parameters and returns true. If any parameters are invalid, do nothing and return false. public String toString() returns the date and time in the format "Monthname daynum, yearnum HH:MM:SS AM/PM" Notes: - DO NOT make any modifications to your ExtendedDate class from assignment #5. - All methods should use get methods and other methods withing the class to the fullest extent possible. - Comment your code, and variables. - Write your own client to test the implementation of your Clock class. You should be able to make simple modifications to your test client for assignment #5. - You should submit the Clock class source files with the following command: turnin-csi205 -p prog6 Clock.java