Question: In this problem, you must implement the following methods: MIN, MAX, RANGE, AVERAGE The first line of input represents the method to call. It will

In this problem, you must implement the following methods: MIN, MAX, RANGE, AVERAGE The first line of input represents the method to call. It will be one of the following: MIN, MAX, RANGE, AVERAGE. The second line will represent an integer n, which denotes the number of words in the list. The following n lines will each be a word. The words will not necessarily be sorted. Your output should be a single line representing the results of the method. For example, here is a screenshot of the program in action: Please select one of the following inputs: MIN, MAX, RANGE, AVERAGE RANGE CS Dta Structure 7 a) Implement the minWordLengtho method, which should return the length of the smallest word in the list. (Related the case that user enters MIN) b) Implement a method called maxWordLengtho, which should return the length of the largest word in the list. (Related the case that user enters MAX) c) Implement a method called wordLengthRange0. which should return the range of lengths in the word list. (Related the case that user enters RANGE) Please select one of the following inputs: MIN, MAX, RANGE, AVERAGE RANGE 3 cs Data Structure 7 a) Implement the minWordLength() method, which should return the length of the smallest word in the list. (Related the case that user enters MIN) b) Implement a method called maxWordLengtho, which should return the length of the largest word in the list. (Related the case that user enters MAX) c) Implement a method called wordLengthRange(), which should return the range of lengths in the word list. (Related the case that user enters RANGE) d) Implement a method called averageWordLengthO, which should re-turn the average word length in the word list. (Related the case that user enters AVERAGE)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
