Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

x. Solution please rate - thanks I did it with windows command prompt changes to

ID: 3612382 • Letter: X

Question

x.

Explanation / Answer

please rate - thanks I did it with windows command prompt changes to code in red and orange- I think I got them all C:UsersDefault.XPS420Desktopcramster>java Echo -eSOCRATED n=7 Encryption BFGHIJSOCRATEDKLMNPQUVWXYZ Enter word to encrypt: helloworld Cleartext=helloworld; cyphertext=7OITTKWKNTH C:UsersDefault.XPS420Desktopcramster> import java.io.*; import java.util.*; public class Echo { private static Scanner s = new Scanner(System.in); private BufferedReader in; private PrintWriter out; private static String manPage, key, inword; private static int i,j,len,start,stop,n,encrptr,beg,end,k; private static char c; private static char output[] ={'A','B','C','D','E','F','G','H','I','J','K','L','M', 'N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}; private static char[] encr = new char[26]; private static char[] outword = new char[20]; private static boolean good = true; static boolean wrap; private static Random random = new Random(); public static void main(String[] args){ //for(String s:args){                    commented out--what are you trying to do with this loop? if(args[0].equals("-e")){ encrypt(args[1]); //}                         commented out } }    private static void encrypt(String key) { do { //System.out.print(" Enter a key "); good=true; //key=s.next(); //string key //key.toUpperCase(); len=key.length();//int variable to hold the length of the key if(len26) //if the length of the key is less than 5or greater than 26 do, { good=false; //good key = false len=0;//reset length to zero } for(i=0;i