1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
andreyandreev [35.5K]
3 years ago
15

Implement Shift cipher using Python or Java. The user should be prompted to provide a number between 0-25 and pick encryption (e

) or decryption (d) and a phrase. Your program will either encrypt or decrypt the phrase and show the result on the console.
Computers and Technology
1 answer:
sveticcg [70]3 years ago
5 0

Answer:

See below

Explanation:

This question is usually in response to having just learned arrays and string/character processing.  Also, encrypted text is all caps, decrypted text is all lowercase.  Convert the string accordingly with the uppercase/lowercase functions for your particular language.

Then, follow the following algorithm:

Loop through each character of the string.  Add (or subtract if decrypting) the character.  If it goes beyond the last letter of the alphabet, then subtract the shift from 26 (which is the number of letters in the alphabet.  Add the character to a new string, and return it.

You might be interested in
What behaviors are most common in a successful entrepreneurship
Kryger [21]
1. Proper planning
2. Honesty
3. Being reasonable in pricing
4. Knowledge of what you’re offering
5. Being kind/good to your clients
8 0
3 years ago
You are working on a project and need to be able to access the content from home and share the files with other team members. Th
inn [45]
Local server so you can all you use if you guys are near
5 0
4 years ago
Read 2 more answers
Shelly and Donna are discussing System Restore. Shelly says when the System Restore program creates and saves a copy of your com
pav-90 [236]
The answer is D, because it's called a back-up.
4 0
3 years ago
Lucy was bucking for a promotion. She paid careful attention to the e-mails she sent out to make sure they did not violate netiq
salantis [7]

Answer: Include lots of exclamation marks to get your point across

Explanation:

When sending an e-mail, we should note that the subject line that should be used should be relevant with regards to the message being passed.

A spell check is also vital in order to reduce mistakes. The use of many exclamation is wrong. That's not professional and should be avoided.

7 0
3 years ago
solve all and i.will try to make u Brainiest (tagdi picture that I have sended so that you can see this full question)​
Elis [28]

Answer: 1) Charles W 2) Charlie Bachman 3) MDB 4) the navigation pane

5) you can count the number of values in a range or table by using a simple formul, clicking a button or by using a worksheet function 6) save database - CTRL + S. open an existing database - CTRL + O. Rename a table - alt + JTA. Quit MS Access - CTRL + F4.

7 0
3 years ago
Other questions:
  • When you first open office calc, the most recently saved spreadsheet opens up. A) true B) false
    14·1 answer
  • What action makes RAM on your computer disappear?
    12·2 answers
  • On the 74ls74 d flip-flop, the clk input has a small triangle. the pr (preset) and clr (clear) inputs have a circle. what do the
    15·1 answer
  • Which of the following goals is likely to require funding? Check all that apply.
    6·2 answers
  • A BufferedReader has a constructor that takes a single InputStreamReader parameter. InputStreamReader has a constructor that tak
    8·1 answer
  • Alison retrieved data from a company database containing personal information on customers. When she looks at the SSN field, she
    14·1 answer
  • package dataStructures; /** * Class OrderedLinkedList. * * This class functions as a linked list, but ensures items are stored i
    8·1 answer
  • Want to.learn about computers​
    9·1 answer
  • Which statement describes the relationship between science and technology?
    13·2 answers
  • Data type can only be true or false <br><br> Answer: Bool
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!