Question: Write a C program according to the description of Programming Projects Q 1 5 of Chapter 8 , on page 1 8 0 of the

Write a C program according to the description of Programming Projects Q15 of
Chapter 8, on page 180 of the textbook.
The maximum length of the user message is 150 characters.
Example Interaction (user input is underlined; your program must follow this format
precisely):
$ ./a.out
Enter message to be encrypted: Go ahead, make my day.
Enter shift amount (1-25, enter 0 to stop): 0
$
$ ./a.out
Enter message to be encrypted: Go ahead, make my day.
Enter shift amount (1-25, enter 0 to stop): 3
Encrypted message: Jr dkhdg, pdnh pb gdb.
Enter message to be encrypted: Jr dkhdg, pdnh pb gdb.
Enter shift amount (1-25, enter 0 to stop): 23
Encrypted message: Go ahead, make my day.
Enter message to be encrypted: 0
Enter shift amount (1-25, enter 0 to stop): 0
$
$./a.out
Enter message to be encrypted: Alice was beginning to get very tired of sitting by her
sister on the bank, and of having nothing to do: once or twice she had peeped into the
book her sister was reading, but it had no pictures or conversations in it,`and what is
the use of a book,' thought Alice `without pictures or conversation?'
Enter shift amount (1-25, enter 0 to stop): 3
Encrypted message: Dolfh zdv ehjlqqlqj wr jhw yhub wluhg ri vlwwlqj eb khu vlvwhu rq
wkh edqn, dqg ri kdylqj qrwklqj wr gr: rqfh ru wzlfh vkh kdg shhshg lqwr wkh errn k
Enter message to be encrypted: Any message
Enter shift amount (1-25, enter 0 to stop): 0
$

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!