Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

c. Are there any prerequisites for the course?

Answered: 1 week ago

Question

Why should a consultants progress be regularly monitored?

Answered: 1 week ago