Alphabetic Shift

Discussion in 'Java' started by Chase_emge, Jul 6, 2009.

Thread Status:
Not open for further replies.
  1. Chase_emge

    Chase_emge New Member

    Joined:
    Jul 6, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Write a program that decodes secret messages read from a text file using an "alphabetic shift." So, for example, a shift might appear as:

    ORIGINAL ABCDE...XYZ
    SHIFTED. CDEFG...ZAB

    You must:

    1.) Read the encoded message from the attached MessageIn.txt file,
    2.) Count the instance of each character in the file,
    3.) The most common character in the message should be an "E". Use this information to calculate the amount of the shift,
    4.) Print out the decoded message.

    I am a beginner with Java and was needing help writing this program. If anybody could help at all it would be greatly appreciated.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice