hello fellows, i got new project for my c class but i have failed to do it. i would be very appreciated if you help to do this program.her it comes:
Sample Run 1:
input 1: coggvogcvvgpwpfgtdtkfig
output 1: ameetmeattenunderbridge
Sample Run 2:
input 2: oushpcaptfcanshohashfcghohwcb
output 2: agetbombfromzetatmetrostation
Sample Run 3:
input 3: vorjhzincjonziyhzydx
output 3: atwomenshotsendmedic
i am sending you the original project sheet paper :
C PROJECT
Lieutenant, we are catching encrypted messages from enemy lines. Our mathematicians solved the
encryption pattern. A message like:
coggvogcvvgpwpfgtdtkfig
ameetmeattenunderbridge
This is a modified version of Caesar encryption. First character is used to define SHIFT: distance of
first character to letter ‘a’. If all other characters are shifted with the same amount, message appears
(here, shift value is -2 (from letter ‘c’ to letter ‘a’)). Shifting is also cyclic, meaning that if we shift ‘c’ for -
(‘c’->‘b’->’a’->’z’->’y’)
Right now, our mathematicians are decrypting messages by hand with all their efforts but we need a C
program from YOU to rapidly decrypt all the incoming messages.
• Input will only consist of the encrypted message, and enter (‘\n’) at the end.
• Your output MUST only consist of decrypted message (see sample runs below) and one enter
(‘\n’) at the end
• See sample runs ABOVE for more details
İ WOULD BE REALLY APPRECATED İF ANY OF YOU HELP TO DO THİS PROJECT
THANX