| Need HELP w/ Assignment.. [message #524125] |
Tue, 30 March 2010 16:37  |
Eclipse User |
|
|
|
My assignment is to:
Develop code to encrypt a string given the following encryption key "DEFGHIJKLMNOPQRSTUVWXYZABC". The encryption key is positional, so that the letter A is replaced by D, B is replaced by E, etc. We will ignore case in our substitutions.
To implement Stage 1, you should write a static method named encrypt :
public static String encrypt(String text, String theKey)
This method takes in the string to encrypt and the key and returns the encrypted string.
Also, there are some steps to help me out with this, but i still don't udnerstand how to start this because im quite new :-/
|
|
|
|
| Re: Need HELP w/ Assignment.. [message #524131 is a reply to message #524125] |
Tue, 30 March 2010 12:02   |
Eclipse User |
|
|
|
On 3/30/2010 2:37 PM, Ben Sewards wrote:
> My assignment is to:
>
> Develop code to encrypt a string given the following encryption key
> "DEFGHIJKLMNOPQRSTUVWXYZABC". The encryption key is positional, so that
> the letter A is replaced by D, B is replaced by E, etc. We will ignore
> case in our substitutions.
> To implement Stage 1, you should write a static method named encrypt :
> public static String encrypt(String text, String theKey)
> This method takes in the string to encrypt and the key and returns the
> encrypted string.
> Also, there are some steps to help me out with this, but i still don't
> udnerstand how to start this because im quite new :-/
Friend,
Don't wait for an answer here. Use Google instead. This forum is for
helping newcomers to Eclipse learn and overcome Eclipse problems not
mere Java ones. I would suggest JavaRanch (http://www.javaranch.com/),
or JGuru (http://www.jguru.com/) or other such forums.
|
|
|
|
|
| Re: Need HELP w/ Assignment.. [message #524583 is a reply to message #524153] |
Thu, 01 April 2010 09:58  |
Eclipse User |
|
|
|
In article <hou1js$bh8$2@build.eclipse.org>, dpwegener@gmail.com says...
>
> Ben Sewards wrote:
> > My assignment is to:
> >
> > Develop code to encrypt a string given the following encryption key
> > "DEFGHIJKLMNOPQRSTUVWXYZABC". The encryption key is positional, so that
> > the letter A is replaced by D, B is replaced by E, etc. We will ignore
> > case in our substitutions.
> > To implement Stage 1, you should write a static method named encrypt :
> > public static String encrypt(String text, String theKey)
> > This method takes in the string to encrypt and the key and returns the
> > encrypted string.
> > Also, there are some steps to help me out with this, but i still don't
> > udnerstand how to start this because im quite new :-/
> It is frowned upon to ask people to do your homework for you. You
> should ask your instructor or teaching assistant for help.
Agreed, but at least he told us it was a homework assignment, and didn't
try to say "My boss wants me to ...". Though in this case, it's pretty
obvious...
D
|
|
|
Powered by
FUDForum. Page generated in 0.16609 seconds