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 21:40
Write c function that can replace all the positive elements to 0 and negative to 1 in undefined length one-dimensional array. test your program in the main program by defining one-dimensional array of 6 elements
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
question
Computers and Technology, 23.06.2019 21:10
Asample of 200 rom computer chips was selected on each of 30 consecutive days, and the number of nonconforming chips on each day was as follows: 8, 19, 27, 17, 38, 18, 4, 27, 9, 22, 30, 17, 14, 23, 15, 14, 12, 20, 13, 18, 14, 20, 9, 27, 30, 13, 10, 19, 12, 26. construct a p chart and examine it for any out-of-control points. (round your answers to four decimal places.)
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, 18.11.2020 22:20
question
Mathematics, 18.11.2020 22:20
question
Mathematics, 18.11.2020 22:20
Questions on the website: 13722362