Text files created for internal correspondence of a military organization are required to be encrypted. As the
Question:
Text files created for internal correspondence of a military organization are required to be encrypted. As the basis of encryption, one of the oldest encryption methods, \"the translation of each letter by a certain amount\" is taken as basis. According to this; When the shift amount 3 is selected, the letter 3 ahead of each letter is written in its place. That is, all A's are denoted by D, and all K's are represented by the letter N. When shifted, the letters that exceed the last letter are returned to the beginning and continue from there. The same is true for numbers. (It can be assumed that there are no Turkish characters in the documents.)
Write the program that creates the encrypted file with the same extension \"sfr\" by encrypting the original text file whose name is entered on the keyboard according to the amount of shifting entered on the keyboard.Use C programming language.
TIP: You can use the ASCII codes of the characters. (A-Z letters are between 65-90, a-z lowercase letters are between 97-122, numbers 0-9 are between 48-57)
SAMPLE WORK:
Enter the name of the original file and the displacement amount: message.txt 3
message.sfr file created
SAMPLE message.txt (CREATE THIS FILE USING NOTEPAD !!!!)
Computer software course coded Bil102
SAMPLE message.sfr
Elo435 nrgox Elojlvdbdu bdclolpl ghuvl