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