Question: JAVA Question 1 (50%) A word-by-word palindrome is a string of words such that the words read the same forward and backward. For example, the

JAVA

JAVA Question 1 (50%) A word-by-word palindrome is a string of words

Question 1 (50%) A word-by-word palindrome is a string of words such that the words read the same forward and backward. For example, the quote "You can cage a swallow, can't you, but you can't swallow a cage, can you?" is a word-by-word palindrome. Write a GUI program to test an input string and tell whether or not it is a word-by-word palindrome. You should use a ircua linked list-based queue and an array-based stack in your implementation. Start with a queue and a stack of size 5, and then double their sizes when needed. Consider upper- and lowercase letters to be the same letter. Define a word as any string consisting of only letters or an apostrophe and bounded at each end with one of the following: a space, a punctuation mark the beginning of the line, or the end of the line. Question 2 (5000) Develop a GUI application to implement a simple encryption technique. Your program should read an input text file (use JFileChooser class to get the name of the input file), and then produces an encrypted output file. The encryption algorithm is simply to reverse the order of characters in the input file. Example: Input Output: I go to school every day yad yreve loohcs ot og I Question 1 (50%) A word-by-word palindrome is a string of words such that the words read the same forward and backward. For example, the quote "You can cage a swallow, can't you, but you can't swallow a cage, can you?" is a word-by-word palindrome. Write a GUI program to test an input string and tell whether or not it is a word-by-word palindrome. You should use a ircua linked list-based queue and an array-based stack in your implementation. Start with a queue and a stack of size 5, and then double their sizes when needed. Consider upper- and lowercase letters to be the same letter. Define a word as any string consisting of only letters or an apostrophe and bounded at each end with one of the following: a space, a punctuation mark the beginning of the line, or the end of the line. Question 2 (5000) Develop a GUI application to implement a simple encryption technique. Your program should read an input text file (use JFileChooser class to get the name of the input file), and then produces an encrypted output file. The encryption algorithm is simply to reverse the order of characters in the input file. Example: Input Output: I go to school every day yad yreve loohcs ot og

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!