Question: Language c++ For example: If k is 3, then the number 25764 is encrypted as 58097. When you add 3 to each digit if it
Language c++
For example: If k is 3, then the number 25764 is encrypted as 58097. When you add 3 to each digit if it passes the value 9, apply a modulus 10 operation on it. Think of a similar solution when you decrypt. Then, create another file decrypt.cpp. Assume that k is already known. Ask the user to enter the k value and then a 5-digit integer. Then decrypt the value to the original. Sample output for encrypt.cpp Enter key value k: 3 Enter a 5-digit integer to encrypt: Encrypted value: 58097 25764
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
