Results 1 to 5 of 5
  1. #1
    jameela is offline Member
    Join Date
    Sep 2008
    Posts
    4
    Rep Power
    0

    Default ur help on my question

    hi everybody,

    its nice to me to participate on this forum. frankly Im on the first steps of studying java language and i enjoy with it.

    I want from you some help and I wish to see the helping from java-forum members.

    my question is how to write a program for this matter....?

    The main idea is using Caesar cipher.

    "The transformation can be represented by aligning two alphabets; the cipher alphabet is the plain alphabet rotated left or right by some number of positions. For instance, here is a Caesar cipher using a left rotation of three places (the shift parameter, here 3, is used as the key):
    Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ Cipher: DEFGHIJKLMNOPQRSTUVWXYZABC"


    An example for that:
    Plaintext: the quick brown fox jumps over the lazy dog
    Ciphertext: WKH TXLFN EURZQ IRA MXPSV RYHU WKH ODCB GRJ
    @@@

    Cipher Key is:
    Encryption = Plaintext + 3
    Decryption = Ciphertext 3

    Im waiting 4 ur replays

    Best Regards, :)


  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    That description tells you how to do it. You need to at least attempt to do your own homework.

    Post the code you come up with, along with all complete error/compiler message and a description of the current behaviour as it relates to the expected behaviour.

    We are not going to do your homework for you.

  3. #3
    jameela is offline Member
    Join Date
    Sep 2008
    Posts
    4
    Rep Power
    0

    Default

    Quote Originally Posted by masijade View Post
    That description tells you how to do it. You need to at least attempt to do your own homework.

    Post the code you come up with, along with all complete error/compiler message and a description of the current behaviour as it relates to the expected behaviour.

    We are not going to do your homework for you.

    hi masijade,
    i did not ask u to write the codes!!!!!!! just i want the main keys


    thanx

  4. #4
    ianjedi is offline Member
    Join Date
    Oct 2008
    Posts
    21
    Rep Power
    0

    Default

    I would start with a design first, then look to see what was needed. Rather that jump into the code. The collections class may holds some useful methods.

    cheers

    Ian J.

  5. #5
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Then I will give the only hint that might be useful (in addition to what the assignment already tells you). Use an array and either a switch statement or a Map (for a letter's original position).

    For anything more, you are going to have to show some effort.

    And, for the record, yes you did ask us to do it for you. At the very least, that is what you wer hoping for without having put it into so many words (and done purposely so you could claim to not have asked that when called out on it, which is exactly what happened).

    When you say "how do I write this program ..." and then copy and paste your homework assignment, what would you call it? Except a "do my homework for me" request?

    If you want an honest answer to "how do I write this program ...", I would say "use a text editor".

Similar Threads

  1. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 09:49 AM
  2. question
    By ayoood in forum Java Software
    Replies: 6
    Last Post: 07-07-2008, 02:32 PM
  3. JSP Question
    By maheshkumarjava in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-29-2008, 11:51 AM
  4. Need help on this question
    By Deon in forum New To Java
    Replies: 3
    Last Post: 01-27-2008, 04:58 PM
  5. JNI question
    By javaplus in forum New To Java
    Replies: 0
    Last Post: 12-24-2007, 11:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •