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, 22.06.2019 02:00
Alocal reaction will occur at the site of the exposure such as irritation or damage to the skin eye or local reaction will occur at the site of the exposure such as irritation or damage to the skin ireland lounges
Answers: 3
question
Computers and Technology, 22.06.2019 10:30
This first part of the film shows the early history of motion pictures. how accurate do you think the portrayal of the early motion picture industry is? why? is historical accuracy important in films and theatre productions? explain. in the scene where don is going to the party (starting at time code 14: 51), we see a street scene as he first rides with cosmo and then with kathy. what aspects did the filmmaker include to make the scene look and feel like don, cosmo, and kathy are riding in a car on a street? think about elements such as scenery, sound, props, lighting, and so on. a "talkie" picture is shown starting around time code 21: 15. how does the audience in the film react to the "talkie"? what influence do audiences have on film and theatre performances? how do film and theatre actors influence audiences? in the musical scene with cosmo (starting at time code 27: 00), how does the actor use props? what is the result? do you think the use of props effectively fulfilled the artistic vision for this musical number? why or why not?
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
question
Computers and Technology, 23.06.2019 21:30
Which of the following includes the three primary network access technologies? dsl, cable modem, broadband lan, wan, man voip, uc, iptv tcp/ip, ftp, dhcp
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, 07.05.2021 06:00
question
Arts, 07.05.2021 06:00
question
Biology, 07.05.2021 06:00
question
Mathematics, 07.05.2021 06:00
question
Mathematics, 07.05.2021 06:00
question
Mathematics, 07.05.2021 06:00
question
Social Studies, 07.05.2021 06:00
question
Mathematics, 07.05.2021 06:00
question
Biology, 07.05.2021 06:00
question
Mathematics, 07.05.2021 06:00
Questions on the website: 13722363