Answered step by step
Verified Expert Solution
Question
1 Approved Answer
code in C Hiding the contents of communications that can be viewed by entities other than the intended recipient could be done by encoding the
code in C
Hiding the contents of communications that can be viewed by entities other than the intended recipient could be done by encoding the message using a cypher and possibly a key known only the transmitting and receiving entities. Write a program that does the following. 1- Prompts the user to enter a word that is three letters long (all lower case). 2- Reads each character into a character type variable. 3- Ask the user for a cipher key, an integer between 3 and 6. 4- Store the Cipher key in an integer variable. 5- Subtract cipher key value from the ASCII value of each character. 6- Output the character values adjusted by the cipher key on one line in the same order as the input with no spaces in between. 7- Output the integer ASCII values adjusted by the cipher key on another line in the same order as the input with no spaces in between. Note: prompt the user for and read the word before the cipher key. Sample input/output: Please enter a word to be ciphered that is three letters long in lower case letters: abc Please enter the cipher key, one digit between 3 and 6: 6 The cipherword is: [\] The ciphertext is: 919293Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started