Data Encryption and Decryption

i nid some help how should i write a full program.....

Pseudo code for encryption:
1) The user would initially be asked to enter a four-digit integer.
2) The integer is assigned to a integer variable.
3) The program identifies (extract) each digit from the integer variable (Hint: uses %, /)
4) Each identified digit is reassigned to another variable respectively (there should be 4 variables, one
variable for each digit).E.g. digit1, digit2, digit3, digit4.
5) Each digit is encrypted with the formula: (k*3) % 10
6) Swap the encrypted first and third digit
7) Swap the encrypted second and fourth digit
8) Show the encrypted integer from the four integer variables.
Under the same C++ source file, write a decryption source code that inputs a four-digit encrypted integer and decrypts it to form the original number.
Pseudo code for decryption:
1) The user would initially be asked to enter a four-digit encrypted integer
2) Decrypt the four-digit encrypted integer using your own algorithm
3) Show the decrypted integer
4) Swap the decrypted first and third digit
5) Swap the decrypted second and fourth digit
6) Show the decrypted integer from the four integer variables.
I suggest you to write by your own program with your knowledge,
and comeback when you got problem with it.
but i dn know how to write
why do you need to be able to write the program specified above?
Topic archived. No new replies allowed.