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...
Type: Posts; User: dianac
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...
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...
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...
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:
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...
What could be wrong now?
--- Update ---
No, sorry
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:
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: