ESc101 Laboratory Assignment for Thursday of week of 27-9-04 This week you may use all the features of Java taught in the class including Array and Vector classes. Problem1: Write methods for each of the following problems. DO NOT WRITE THEM AS A PART OF THE main METHOD OF A CLASS. SIMPLY WRITE THESE METHODS INDEPENDENT OF ANY CLASS. SUBSEQUENTLY WRITE A CLASS AND A main METHOD AND THIS METHOD AS IT'S MEMBER AND CALL THIS METHOD FROM main TO TEST IT. (a) method symbolSum Input Parameters: a String array "wordList", a positive integer "n" where "wordList" has at least "n" entries. Output: the total number of characters in the first "n" Strings of "wordList". (b) method interval Input Parameters: a String array "wordList", a positive integer "n" where "wordList" has at least "n" entries. Output: a String array containing "wordList" which start with a letter between "d" and "t" (both letters inclusive). (c) method searcher Input Parameter: a String array "wordList", a positive integer "n" where "wordList" has at least "n" entries. Behaviour: This method pops a window and asks for a String x. Then it searches "wordList" and tells the user whether any word in wordList ends with substring x. Then it asks if the user wants to search more. This cycle continues until user says he/she does not want to search any more. Note: Use ResponseBox class of javabook to decide whether user wants to continue with the search or not. The next problem may be done in the remaining time and during the following week but make sure that it is complete before the next lab. Next week's problem may depend on it. Problem2: Define a class "Date" as follows Member Data: 1) day 2) month 3) year define each data to be private. Constructors: 1) a constructor which take (int d, int m, int y) and sets the data PROVIDED IT IS A VALID DATE. 2) a default constructor. Methods 1) set(int d, int m, int y). It sets the data PROVIDED IT IS A VALID DATE. 2) getDay 3) getMonth 4) getYear 5) earlier(Date x). It returns true if "own" date is earlier than or equal to the date x.