hamoodmeero wrote: > HELLO EVERYONE...WELL THERE IS A PROBLEM THAT I COULDNT SOLVE IN THE > TEST OF C PROGRAMMING ......SO CAN ANYONE HELP ME IN IT SO THAT I > WONT FALL IN THE SAME MISTAKE AGAIN ?...THANKS EVERYONE > > HERE IS THE QUERSTION ...: > > ******************************************************************* > > Alphabetic code is a special password which defines a code by > alphabetic order. For example, if the code is > > JPFLXOCMSEBNGQDRUVWKTZYAHI > > It means J has to convert to A, P to B, F to C, and so on. > > Write a C program to convert secret messages to correct information. > > Input: The alphabetic code and a secret message. The length of a > password code must be 26 characters and the message is limited to 60 > characters and it must contain capital letters, commas, periods, and > spaces only. > The input format should be: > Enter Secret Message: JVNSQCKDQ, KXAJW > > Test data: > #1. "JVNSQCKDQ, KXAJW." > #2. "S NDZX HDT GDG." > > Output: The converted information from the input message. If the > input message is test data #1, the output should be: The Original > Message is: ARLINGTON, TEXAS.
Description of the problem is incomplete (doesn't show the input for entering the code despite saying there is one). And you didn't show us your attempt. This problem really isn't that difficult - create an array and, as you read in the code, create a reverse lookup table so that when you get to the actual input data, you just look up the correct character based on the encoded character (simple subtraction). -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
