Question: arrayKey.txt 15 0 0 1 0 1 1 1 0 1 1 0 0 0 1 1 arrayMessage1.txt !dv lbo arrayMessage2.txt 8 101 108 111




arrayKey.txt
15 0 0 1 0 1 1 1 0 1 1 0 0 0 1 1
arrayMessage1.txt
!dv lbo
arrayMessage2.txt
8 101 108 111 115 109 101 114 80
queueKey.txt
83 0 0 1 1 1 0 0 1 0 1 0 0 0 0 1 1 0 0 0 0 1 1 1 0 0 1 0 1 1 0 0 0 1 1 0 1 1 0 1 1 1 1 1 0 0 1 1 0 1 1 0 1 1 1 1 1 1 0 0 1 0 1 0 0 0 0 1 1 1 0 0 1 0 1 0 0 0 0 1 0 0 0 1
queueMessage1.txt
!nhcmos sretss hfo eenoya uyrevoa metdi eh
queueMessage2.txt
41 117 102 32 117 32 105 32 101 109 101 101 116 32 116 115 114 32 104 84 32 33 101 100 32 108 114 101 110 32 101 114 97 111 32 32 101 114 115 114 109 84
Assignment Description This assignment provides the opportunity to work with array lists, queues, a stack, and iterators. In this assignment, you will write a program to translate a secret message that has been split into 3 parts. These parts are provided in 3 files: File #1-contains one part of the secret message as characters File #2-contains another part of the secret message as ascii codes File #3-contains the decoding keys, 0's and 1's, one key for each character in original message The completed program contains the following classes 1 Translator 1 Stack Specifications 1. Create a Java class called UsernameAssignment8 2. Follow "CS1450 Programming Assignments Policy" 3. Write a test program to do the following: a. Create an instance of the Translator class: Translator b. Create 3 ArrayLists one to hold the contents of each file for the 1st secret message i. arrayMessage1.txt, arrayMessage2.txt, arrayKey.txt c. For each file, place the contents into an ArrayList of the proper data type d. Create 3 iterators - one for each ArrayList e. Call the translator's decode method sending in the 3 iterators and decode the message f. Display the decode message g. REPEAT steps (b- f) using Queues to hold contents for each file for the 2nd secret message i. queueMessage1.txt, queueMessage2.txt, queuekey.txt Classes Translator Description o Class that translates secret messages Private Data Fields o stack- used during translation of the secret message . Public/Private Methods o Constructor-no parameters, only needs to allocate memory for stack Assignment Description This assignment provides the opportunity to work with array lists, queues, a stack, and iterators. In this assignment, you will write a program to translate a secret message that has been split into 3 parts. These parts are provided in 3 files: File #1-contains one part of the secret message as characters File #2-contains another part of the secret message as ascii codes File #3-contains the decoding keys, 0's and 1's, one key for each character in original message The completed program contains the following classes 1 Translator 1 Stack Specifications 1. Create a Java class called UsernameAssignment8 2. Follow "CS1450 Programming Assignments Policy" 3. Write a test program to do the following: a. Create an instance of the Translator class: Translator b. Create 3 ArrayLists one to hold the contents of each file for the 1st secret message i. arrayMessage1.txt, arrayMessage2.txt, arrayKey.txt c. For each file, place the contents into an ArrayList of the proper data type d. Create 3 iterators - one for each ArrayList e. Call the translator's decode method sending in the 3 iterators and decode the message f. Display the decode message g. REPEAT steps (b- f) using Queues to hold contents for each file for the 2nd secret message i. queueMessage1.txt, queueMessage2.txt, queuekey.txt Classes Translator Description o Class that translates secret messages Private Data Fields o stack- used during translation of the secret message . Public/Private Methods o Constructor-no parameters, only needs to allocate memory for stack
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
