Search:

Type: Posts; User: dianac

Search: Search took 0.10 seconds.

  1. Thread: Encrypt Decrypt

    by dianac
    Replies
    15
    Views
    1,763

    [SOLVED] Re: Encrypt Decrypt

    The first two questions have no answers because they are exactly the assignment. I suppose I have to use loops.

    The code does that for some inputs but not for others.

    I tried to print...
  2. Thread: Encrypt Decrypt

    by dianac
    Replies
    15
    Views
    1,763

    [SOLVED] Re: Encrypt Decrypt

    1 - take out upper cases and spaces from string input
    2 - string should be written along the rows of a caesar square
    3 - case decryp it should be written top to bottom left to right
    4-case...
  3. Thread: Encrypt Decrypt

    by dianac
    Replies
    15
    Views
    1,763

    [SOLVED] Re: Encrypt Decrypt

    I thought I had answered it. Sorry I wasn't clear. Maybe I didn't get it as well.
    Here are the instructions:

    Write a Java program to encrypt a string of text using a Caesar Square: the string...
  4. Thread: Encrypt Decrypt

    by dianac
    Replies
    15
    Views
    1,763

    [SOLVED] Re: Encrypt Decrypt

    Yes, I am. What you said would be encrypt. This examples are given in the assignment:

    Sample Input/Output
    Case A
    Input:
    java CaesarBox -encrypt abcd
    Logic:
    a b
    c d
    Output:
  5. Thread: Encrypt Decrypt

    by dianac
    Replies
    15
    Views
    1,763

    [SOLVED] Re: Encrypt Decrypt

    It should put the string character by character in a ceaser box from top to bottom left to right, so if the input is abcd the caesar box should be:

    a c
    b d

    And then it should decrypt the...
  6. Thread: Encrypt Decrypt

    by dianac
    Replies
    15
    Views
    1,763

    [SOLVED] Re: Encrypt Decrypt

    What could be wrong now?

    --- Update ---

    No, sorry
  7. Thread: Encrypt Decrypt

    by dianac
    Replies
    15
    Views
    1,763

    [SOLVED] Re: Encrypt Decrypt

    Sorry, the input is abcd

    But I have to put it into a caesar box before encrypt/decrypt

    decrypt should put it into a caesar box like

    a c
    b d

    Fixed:
  8. Thread: Encrypt Decrypt

    by dianac
    Replies
    15
    Views
    1,763

    [SOLVED] Encrypt Decrypt

    The method Encrypt should for example
    input:
    ab
    cd

    output:acbd

    the method decrypt should take same input and output:abcd

    what could be wrong:
Results 1 to 8 of 8