## jesusb13's Profile User Rating:

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
4 (0.01 per day)
Joined:
05-October 12
Profile Views:
86
Last Active:
Dec 01 2012 04:44 PM
Currently:
Offline

### Previous Fields

Dream Kudos:
0
jesusb13 has not set their status

1. #### In Topic: Is there a way to make a Casaer encryption without if/else statements?

Posted 6 Oct 2012

jon.kiparsky, on 06 October 2012 - 07:56 AM, said:

Do you understand the logic of that example? I mean, there's your homework done for you, so you can spend the rest of your time working out how it works.

If you want further help on this one, maybe you should start by explaining as well as you can what's happening in those lines of code farrell pointed to. Once you've done that, you can point to any remaining questions, and we'll walk you through it.

What I have in my code so far is this. I must use a a shift number. and enter a word and get an output. I have managed to get the program to do this. the shift and the word to encrypt are entered by the user through a scanner. after doing these steps i must enter a a word then the program must make 25 encryptions of the word I enter. the shift is not constant but it is linear in sense. what i mean is that if i enter "tuvw" as the word line 1 will give me "stuv" line 2 will give me "rstu" line 3 will give me "qrst" and so on.... until it gives you the final line which is 25th. How can I do this without if/else statements, arrays, i must use strings, for loops, explicit casts and use the modulus operator
2. #### In Topic: Is there a way to make a Casaer encryption without if/else statements?

Posted 6 Oct 2012

farrell2k, on 05 October 2012 - 11:50 PM, said:

But of course! Read all of the replies.

HERE

Is there any specific place I should look at? I also have to use a modulus operator but don't know how to implement that.

Member Title:
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

E-mail:
Private

### Friends

jesusb13 hasn't added any friends yet.