السلام عليكم والرحمة,,,,,,,,,,,
أتمنى أن يساعدني أحد في حل مشكلتي في أقرب وقت ممكن:
باستخدام برنامج السي بلس بلس،،
Developing secret codes has interested people for centuries. A simple coding scheme can be developed by replacing each character in a text file by another character that is a fixed number of positions away in the collating sequence. For example, if each character is replaced by the character that is two characters to its right in the alphabet, then the letter ‘a’ is replaced by the letter ‘c’, the letter ‘b’ is replaced by the letter ‘d’ and so on.
Write a menu driven providing the following options:
1) Code a file
2) Decode file
3) Display file
4) Exit
Each menu item would correspond to one of the following tasks:
(1) Reads the text in a file and then generates a new file that contains the coded text using the above scheme (Change only the alphanumeric characters).
(2) Decodes the file using the same scheme presented in step (1) (Test the program by using the files generate by step (1) above).
(3) Allows the user to display the content of a specific file on the screen. Name of to display file should be provided by user.
(4) Exit the program.
Name your files as follows:
1) Original.txt: Input text file to be decoded.
2) Coded.txt: Coded file
3) Decoded.txt: Decoded file
Note that when you code and decode a file the resulting decoded file should match the original file.