Answered step by step
Verified Expert Solution
Link Copied!

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 Cimage text in transcribed

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: 919293

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

Students also viewed these Databases questions

Question

What is conservative approach ?

Answered: 1 week ago

Question

What are the basic financial decisions ?

Answered: 1 week ago