It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Cryptogram program

Moderator: dafunkymunky

Cryptogram program

Postby nschiavelli7 on Wed Oct 17, 2007 6:32 pm

Would anybody know how to start code for a program described below?


A cryptogram is a puzzle in which a simple English sentence is encoded using some cipher. Your task is to take such a coded sentence and decode it back into English.

Create a dialog box that has a place to display the cryptogram that you read from a file, a place to display the decoded sentence, a button to start the decryption, and a button to stop when the sentence is correctly decoded.

The cryptogram is encoded using a Caesar cipher with a shift of some value. In the encoding process when the shift is 3, each letter of the plaintext is replaced by the letter that is 3 positions further away in the alphabet. For example, A is replaced by D, B is replaced by E, and so on. At the end of the alphabet, it wraps around to the beginning, so X is replaced by A, Y is replaced by B, and Z is replaced by C.

You may assume that the encoded sentence makes sense, is in all capital letters, is in English, and has no numbers or special characters.

Your program will start with a shift value of 1. After each attempt to decode with the current shift value, display the result. If the sentence is decoded, click the stop button. If it is not decoded, increment the shift value and try again.

Print your code and the dialog box showing the decoded sentence.

--
I'm not asking for anyone to write the code for me, just for some pointers to guide me through it because I'm a struggler in programming and I don't always understand it. Thanks
nschiavelli7
 
Posts: 2
Joined: Mon Oct 15, 2007 7:03 am

Who is online

Users browsing this forum: No registered users and 7 guests