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

Overview of Assignment Revisiting the ROT13 encryption program, you are going to

ID: 3741462 • Letter: O

Question

Overview of Assignment Revisiting the ROT13 encryption program, you are going to break the previous version of the program into methods with this additional functionality: The program will ask how many String s it should process, between 1 and 10, and store those String s into an array for processing. The program will ask for a shifting factor between -25 and +25, which will determine the encryption/decryption shifting instead of the default shifting by 13 of the previous version of the program See descriptions of these additional methods later in the assignment for more information.

Explanation / Answer

Your Program goes here

package com.Encrypt;

import java.util.Scanner;

import org.omg.Messaging.SyncScopeHelper;

public class EncryptDecrypt {

static String[] sentences = new String[256];

static String[] EncryptSentence;

static char[] toConvert;

// number need to be static because static function can Access only static

// variables

static int number;

static Scanner scanner = new Scanner(System.in);

public static int getShift() {

System.out.println(" Enter the Shift Factor for Encryption ");

number = scanner.nextInt();

return number;

}

public static void getSentences(String sentences[]) {

System.out.println("Enter your five Sentences Below");

for (int i = 0; i < 5; i++) {

System.out.println("Sentence" + i + " " + sentences[i]);

}

}

public static void displayOriginal(String[] sentences) {

System.out.println(" The Original Text");

for (int i = 0; i < 5; i++) {

System.out.println(sentences[i]);

}

}

}