NEED HELP! Substitution Cipher using arrays/loops/if statements

Hi there! Was given this assignment and I don't even know where to start. Any help will be EXTREMELY appreciated!

Write a C++ program to encrypt a text file (i.e. eFile.txt) using arrays. The text file will contain small letters, capital letters, numbers, spaces and symbols. If the file does not exist, the program should terminate with a "file not found" error message displayed. The output (encrypted text) should be displayed as 50 characters per line.

_____________________________________________________________________________
The following keys are used. (For example, an 'A' or 'a' will output 'E')

ABCDEFGHIJKLMNOPQRSTUVWXYZ Plain text alphabet
EMNVDLWAUCPOKXQBIZJRYTGSHF Encrypted alphabet

0123456789 Numbers
9876543210 Cipher Numbers

! $ % & ' ( ) * + , - . / ; < = ) ? @ [ ] } { Symbols
{ } ] [ @ ? > = < ; / . - , + * ) ( ' & % $ ! Encrypted Symbols

^~#`: Space replacer symbols

_____________________________________________________________________________
An example...

flee at once. we are discovered! 10-4

is encrypted and displayed as..

LODD^ER~QXND.GD`EZD:VUJNQTDZDV{^89/5

Thanks again!
Topic archived. No new replies allowed.