I'm new to Java programming entirely and I'm looking for some useful pointers and help with regard to writing a Caesar Cipher program.
Write a program that uses the Caesar cipher to encode and decode text. Students should be able
to use loops and type casting to perform this task.
Write a java program called CaesarCipher.java that does the following. Your program will
present the user with a menu to encode or decode text, then get the text and the key from the user and
use these to encode or decode the text. See “Relevant Knowledge” for how the Caesar cipher works. A
sample run of the program is shown below:
1 for encode in Caesar cipher
2 for decode from Caesar cipher
What do you want to do: 1
What is the text you want to encode: i came i saw i conquered
What is the key:1
j dbnf j tbx j dporvfsfe
For this program only the lowercase letters and spaces need to be handled (you can do anything
at all with upper case and punctuation). Be sure that your program can encode text then decode that
I really need the help with regard to constructing the loops...I'm continually trying but everything I have keeps giving my errors. Here is what I have so far...it's just the beginning but any pointers to teach me how to create the loops would be most appreciated.
Thank you all!
Number of downloads: 5220