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
Yuri [45]
3 years ago
11

Write a script that inputs a line of encrypted text and a distance value and outputs plaintext using a Caesar cipher. The script

should work for any printable characters.An example of the program input and output is shown below:Enter the coded text: Lipps${svph% Enter the distance value: 4 Hello world!# Request the inputscodedText = input("Enter the coded text: ")distanceValue = int(input("Enter the distance value: "))# Calculate the decryptionplainText = ""for cr in code:ordvalue = ord(ch)cipherValue = ordvalue - distanceif cipherValue < ord('a'):cipherValue = ord('z') - \ (distance - (ord('a') - ordvalue - 1))plainText += chr(cipherValue)print(plainText)
Computers and Technology
1 answer:
jenyasd209 [6]3 years ago
4 0

Answer:

# Request the inputs

codedText = input("Enter the coded text: ")

distance = int(input("Enter the distance value: "))

# Calculate the decryption

# see comment for the rest. Brainly won't let me save an answer which contains code.

Explanation:

Above is your program fixed, but it is unclear on how to deal with unprintable characters, i.e., characters that originally were near the highest printable character ('~')

You might be interested in
What is interest? How does interest affect credit card purchases?
Gennadij [26K]

Answer:

Explanation:

money paid regularly at a particular rate for the use of money lent, or for delaying the repayment of a debt.

Credit cards charge interest when you don't pay off your full balance by the due date each month. When you carry, or revolve, a credit card balance from month to month, interest is charged on a daily basis, and it affects both your existing balance and any new purchases that post to your account.

5 0
4 years ago
There are two kinds of type that you can add to a document in Photoshop. You can add
Kamila [148]

Answer:

1. Point Type

2. Area Type

Explanation:

We can have the two types that you can add to a document in Photoshop. You can add the Point type, which is also known as the character type or you can add the area type which is also called the paragraph type. And these are the two types that we can add to a document in Photoshop.

3 0
3 years ago
A user creates a GPO. What do you need to do for that user to manage his or her GPO that he or she created?
d1i1m1o1n [39]

Answer: Nothing should be done.

Explanation:

Group Policy helps in the provision of a centralized management of operating systems, and applications. It should be noted that a group policy object (GPO) is simply referred to as the configurations involving the group policy.

Nothing should be done to manage the GPO created. When the permission to create a GPO has been given to someone, it means that they can also manage the GPO therefore, nothing needs to be done anymore.

8 0
3 years ago
1. It is one way to attain one's holistic health condition.​
suter [353]

Answer:

It focuses on complete human body condition rather than single parts. The person should be healthy in all dimensions.

Explanation:

Holistic health condition is an ancient approach to a healthy life. This is a study where human is considered as healthy if he has no illness plus he is able to interact with others. he healthy condition depicts mind, soul and body. The health conditions are based on dimensions rather than single body function.

3 0
3 years ago
Which of the following should be clicked to open Backstage View?
lora16 [44]

Answer:

File tab

Explanation:

source https://www.computerhope.com/jargon/b/backstage-view.htm

7 0
3 years ago
Read 2 more answers
Other questions:
  • Why are hardline Ethernet connections always faster than WiFi?
    8·1 answer
  • What is C.R.A.T systems used for?
    9·1 answer
  • Explain URL's parts with the help of an example.​
    10·1 answer
  • What should you do before using a website to store student information ? A. Read and understand the website’s privacy contract
    11·2 answers
  • Do you think<br> brain uploading<br> is a good idea?
    7·1 answer
  • (k + 3)by the power of 3​
    9·1 answer
  • 4. What are the things that a computer literate understands?name them
    5·2 answers
  • (25 POINTS) Some applications work on all devices while others work on some devices. True or False?
    13·1 answer
  • The L-exclusion problem is a variant of the starvation-free mutual exclusion problem. We make two changes: as many as L threads
    15·1 answer
  • Which protocol makes a connection, checks whether the data is received, and resends it if it is not?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!