|
-
Feb 5th, 2000, 03:48 AM
#1
Thread Starter
New Member
i need to write a program for class homework to solve this problem: A company transmits data over the telephone, but they want it encrypted. All their transmissions a four-digit integers. I need to read the integer and encrypt it as follows: Replace each digit by (the sum of that digit plus 7) modulus 10. Then, swap the first digit with the third, and the second with the fourth. Then print the encrypted integer. Does anyone have any suggestions/solutions?
Thanks,
Reid
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|