1. Write methods that take a word input by the user (10%) and then: a. (10%) splits the word into a unicode character array b. (10%) determines if the input word is a palindrome – the same frontwards and backwards. c. (10%) sorts the unicode character array according to their unicode decimal values. d. (10%) generates statistics based on the max, min, and average of the unicode value array. To accomplish items b and c, consider using a nested loop so that an array can be compared to itself. For item c, if an array’s value in the outer loop is greater that that of the inner loop, the values are swapped. This is a bubble sort – more here: http://mathbits.com/MathBits/Java/arrays/Bubble.htm 2. (10%) Employ JTable for an applet that displays the results of the above tasks. Hint: you may want to have single array accumulate rows from from the tasks. Think of how you can handle varying dimensions for output to be a single applet. Or, alternatively, have the user select which output to display in a different sized JTable. 3. (10%) Incorporate a Java collection covered in lecture 9 into your final proje

1. Introduction

In this assignment, we are tasked with implementing several methods that operate on a word input by the user. Specifically, we need to split the word into a Unicode character array, determine if the word is a palindrome, sort the character array according to their Unicode decimal values, and generate statistics based on the maximum, minimum, and average of the Unicode value array.

To achieve these tasks, we will utilize various techniques such as manipulating arrays, employing nested loops for comparisons, and utilizing a bubble sort algorithm. Additionally, we will use a JTable in an applet to display the results.

2. Method Implementation

a. Splitting the word into a Unicode character array:
To achieve this, we will take the input word from the user and convert it into a character array. This can be done by using the `toCharArray()` method available in Java’s String class. Each character in the word will be stored as an element in the Unicode character array.

b. Determining if the input word is a palindrome:
To determine if a word is a palindrome, we need to check if it reads the same forwards and backwards. We can achieve this by comparing characters at corresponding indexes from both ends of the word. If all characters match, the word is a palindrome.

c. Sorting the Unicode character array:
To sort the Unicode character array in ascending order according to their Unicode decimal values, we will utilize a bubble sort algorithm. In this algorithm, we compare adjacent characters and swap them if the character in the outer loop has a greater Unicode decimal value than the one in the inner loop.

d. Generating statistics based on the Unicode value array:
To generate statistics such as the maximum, minimum, and average of the Unicode value array, we will iterate through the array and keep track of the maximum and minimum values. We will also calculate the sum of all values in the array to find the average.

3. Using JTable for displaying results
To display the results of the above tasks, we will use JTable, which is a graphical component in Java that provides a table-like structure. We can create a JTable with a varying number of rows and columns based on the output dimensions. Additionally, we can allow the user to select which specific output they want to display in a different-sized JTable.

4. Incorporating a Java collection
In lecture 9, we covered Java collections, which are classes and interfaces that provide various data structures and algorithms. In our final project, we can incorporate a suitable Java collection to enhance our implementation. This can provide additional functionality and improve efficiency in handling and manipulating data.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.

Click Here to Make an Order Click Here to Hire a Writer