need you to get started on another project. This time, when you do the driver. I dont want the numbers anything to run automatically when the program is executed. The program needs to be user controlled.
PROGRAMMING Due November 22
(This problem is taken from Computing Concepts With Java Essentials by Cay Horstmann)
The following is a simple method for encrypting a text file. Given a key word, first remove any duplicate letters from that word. Now append to this the remaining letters in the alphabet in reverse alphabetical order. Example:
Suppose the key word is &acirc;€œCANNON&acirc;€. Create the following string of 26 letters:
Now map the letters of the alphabet to this newly ordered alphabet. So &acirc;€œA&acirc;€ is mapped to &acirc;€œC&acirc;€, &acirc;€œB&acirc;€ is mapped to &acirc;€œA&acirc;€, &acirc;€œC&acirc;€ is mapped to &acirc;€œN&acirc;€, &acirc;€œD&acirc;€ is mapped to &acirc;€œO&acirc;€, &acirc;€œE&acirc;€ is mapped to &acirc;€œZ&acirc;€ and so on.
Write a program that uses command line arguments to accept a key word and then encrypts or decrypts (decide using a command line option) a file using the given key word. For example if the driver is called [url removed, login to view] the following command line might decrypt the file [url removed, login to view] and write the decrypted file to output.txt.
java Crypt &acirc;€“d &acirc;€“kCANNON [url removed, login to view] [url removed, login to view]
What to hand in:
In addition to the source files for your program include with your submission a text file named [url removed, login to view] with an explanation of what you did. That is, write in plain English, instructions for using your software, explanations for how and why you chose to design your code the way you did. Please do this even if you choose to use Javadoc.
assignment will be graded as follows:&acirc;€&uml;25% if it compiles&acirc;€&uml;30% if it runs properly (expected output for given input, etc.)&acirc;€&uml;15% for style (formatting of code, variable names, comments, etc.)&acirc;€&uml;30% for design (efficiency, handling error conditions, etc.)
I also need twice as much more comments than the last assignment that you turned in to me. I need LOTS AND LOTS OF comments EVERYWHERE, thanks. Not just for the project to turn in, but so I can understand it as well for future reference. Thanks.