Basic java homework help: Object oriented programming
4500
£8/hr(approx. $10/hr)
- Posted:
- Proposals: 3
- Remote
- #104537
- Archived
Description
Experience Level: Entry
I'm struggling with a Java homework to build a playfair cipher program. It is a very basic program, can somebody help me? The way it works is to create a 5x5 key table using the entire English alphabet, with the exception of the letter J. The order of the letters in the key table is determined by a 5 letter phrase that I decide upon> i will use the word 'Break'.
So basically, if I used my key table would be this:
B R E A K
S C E B D
F G H I K
L N Q T U
V W X Y Z
As you can see, you start out with the key phrase, and then add every unused letter of the alphabet, with the exception of J, and you only use each letter once. Once that is done, I need to take a word from the user and then code it. Firstly, it needs preparing by removing all punctuation and spacing. then, the the phrase is split up into pairs. So COMP would become CO MP. To encrypt a phrase, you must find each pair of letters position on the 5x5 key table, and for each letter, i must output the letter in the same row but at the position of the other..
...i can post the question upon response but that is the general outline...
So basically, if I used my key table would be this:
B R E A K
S C E B D
F G H I K
L N Q T U
V W X Y Z
As you can see, you start out with the key phrase, and then add every unused letter of the alphabet, with the exception of J, and you only use each letter once. Once that is done, I need to take a word from the user and then code it. Firstly, it needs preparing by removing all punctuation and spacing. then, the the phrase is split up into pairs. So COMP would become CO MP. To encrypt a phrase, you must find each pair of letters position on the 5x5 key table, and for each letter, i must output the letter in the same row but at the position of the other..
...i can post the question upon response but that is the general outline...
David W.
0% (0)Projects Completed
-
Freelancers worked with
-
Projects awarded
0%
Last project
19 Apr 2024
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies