glass
pen
clip
papers
heaphones

Arkansas Monticello Caesar Cipher Question

Arkansas Monticello Caesar Cipher Question

Description

In this assignment, you will build a program that implements the Caesar Cipher algorithm. You must build a method called translate—public static String translate(String inText, int key)—that accepts the provided text and Key. It then uses the Caesar Cipher algorithm to translate inText into a String, called outText, which is what the method returns. If Key is greater than zero, then every character in inText is “shifted” to the right in the alphabet by Key characters. For example, if Key = 1, then “ABC” becomes “BCD.” If key is less than zero, then every character in inText is “shifted” to the left by Key characters. For example, if Key = –2, then “DEF” becomes “BCD.” The key value is guaranteed to be in the range –3..+3.

Complete the following steps to build a program that implements the Caesar Cipher algorithm.

  1. Build a translate method—public static String translate(String inText, int key)—that accepts the provided text and Key.
    • Translate must be a method with the header/signature shown above.
  2. Build a driver method.
  3. Take sufficient screen shots to demonstrate that your program meets all requirements.
    • Include the execution output of your program to convince a reader that it functions properly—both encoding and decoding messages.
    • Test your program with both positive and negative Key values and text strings containing both alphabetic and nonalphabetic characters.
    • Paste these screen shots into an MS Word document.
  4. For your final test, you use must use the following input: “–3 Zh, wkh 42 shrsoh, ri wkh . . .”
  5. Create a .zip file containing your NetBeans Caesar Cipher project.
    • Before zipping your project, right-click the project and “clean” it. This greatly reduces the file size and speeds up the program’s performance.
    • Then close NetBeans.
  6. Add the MS Word document with your screenshots to your .zip file.
  7. Submit your cleaned Caesar Cipher project in an appropriately constructed and correctly named .zip file.
    • Name your .zip file following this pattern: LastName_Week1.zip.