subject

An old encryption technique involves replacing each letter in a message with another letter that is a fixed number of positions later in the alphabet (when the replacement goes past the letter Z, the cipher wraps around to the beginning of the alphabet.) Write a program that encrypts a message using this technique. The user will enter the message to be encrypted and the shift amount. Assume the message does not exceed 80 characters. Characters other than letters should be left unchanged. Lower-case letters remain lower-case when encrypted, and upper-case letters remain upper-case. To handle the wrap around problem, use the expression ((ch-'A') n)& 'A' to calculate the encrypted version of an upper-case letter (where ch sores the letter and n stores the shift amount). Use a similar expression for lower-case letters.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
What is the most important aspect of marking media? a. data labelingb. content descriptionc. electronic labelingd. classification
Answers: 2
question
Computers and Technology, 22.06.2019 12:30
Which of the choices sean are not true when considering virus behavior
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
question
Computers and Technology, 23.06.2019 22:00
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
You know the right answer?
An old encryption technique involves replacing each letter in a message with another letter that is...
Questions
question
Mathematics, 10.11.2020 01:00
question
History, 10.11.2020 01:00
question
History, 10.11.2020 01:00
Questions on the website: 13722367