Ok, i have to create a program that will decode a message. I have the key and everything but have now idea on where to begin on setting the program up. I know there has to be a part of the program which contains the key, a part with the encoded message then somehow i have to make it so that the encoded message will look at the key and decode the message. Any ideas on how to get started will be greatly appreciated.
Steps to decoding:
1) Set up an array (if multiple characters will be used in one intake, make it multidimensional). Inside the array, put all the sequences that will be understood by your decoder, each sequence taking up an element.
2) Set up another array, and initialize it to null.
3) Once you have read in your data how ever you want to do that, make a loop that will be repeated with every sequence of charcaters you want to interpret. In that loop, have if statements like the following:
if (sequence_being_tested == a_possible_sequence)
array_intialized_to_null[element_number] = sequence_being_tested;
At the end of the loop, increment element_number.
ah yes, a programmers foray into the world of cryptology... :)
this is a bit of an arbitrary post.... seek further help? show us your source!!! :)
Hello again, I have been working on this now for a while and I am completly confused. so far I have the array set up and the encoded message in the program. I tried writing if/else statements to translate all the letters but that didnt work. The reason i think that it didnt work is because I dont know where to put the encoded message so that the if/else statements can read it. Attached is what I have so far for the program. If I could get any help it would be greatly appreciated.