A company wants to transmit data over the telephone. All of their data is transmitted as 4-digit integers. You will write a program that encrypts and decrypts their data so that it may be transmitted more securely. Your program should ask the user which operation he/she wants to do. The user may choose to encrypt (E or e) or decrypt (D or d) the integer he/she will input, or quit (Q or q) the program. If the user chooses to encrypt or decrypt an integer, the program will ask the user to input a 4-digit integer.
In your program use four functions: Function menu() displays the menu as given in the sample run, gets user input until user inputs a valid operation code. It will return the operation code to the calling function through a parameter. Function encrypt() receives an integer value, encrypts it and returns the result under function name. Function decrypt() receives an integer value as a parameter and returns its decrypted form by a parameter to the calling function. main() function will perform the other required tasks.
**********************************************************************************************************************
Encryption process will be as follows:
Replace each digit of the integer input by <the sum of that digit plus 7> modulus <10>. That is,
(digit + 7) modulus 10.
For example, if 4617 is input as integer number to be encrypted,
encrypted integer will be 1384.
**********************************************************************************************************************
Decryption process will recover the original form of the encrypted integer from the decrypted integer.
For example, if 1384 is input as integer number to be decrypted, the decrypted integer will be 4617. In other words, you have to reverse the encryption process to find decrypted integer. (Think about it!)
**********************************************************************************************************************
Your program will ask the user if he/she wants to encrypt / decrypt another integer after encrypting / decrypting the integer and continue the process until user wants to stop inputting integers.
When the user wants to stop the encryption / decryption process, your program will return to the main menu, ask the user what he/she wants to do again and continue to execute until user chooses to quit the program.
You should consider all possible inputs; that is, capital and lowercase character inputs, wrong operation codes, integers that don