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
Viktor [21]
4 years ago
15

Write a function cipher(plaintext, n) to shift all characters in a string of text. Your function should take 2 parameters, the p

laintext to shift (a string) and the shift key n (an integer). Set up an accumulator variable (suggested name: ciphertext) in which to accumulate the result. Use a definite loop with the accumulator pattern to go through all characters in plaintext.
Computers and Technology
1 answer:
cupoosta [38]4 years ago
5 0

Answer:

I am attaching a doc file

Explanation:

The file contains the Python and C++ program for this and also the screenshots of the program and the outputs.

Download docx
You might be interested in
Long Answer Questions: a. Briefly explain the types of Control Structures in QBASIC.​
Alexus [3.1K]

Answer:

The three basic types of control structures are sequential, selection and iteration. They can be combined in any way to solve a specified problem. Sequential is the default control structure, statements are executed line by line in the order in which they appear.

7 0
3 years ago
In the context of wireless signal propagation, the phenomenon that occurs when an electromagnetic wave encounters an obstruction
tresset_1 [31]

Answer:

Diffraction

Explanation:

Diffraction occurs when an electromagnetic waves encounter an obstruction and split in secondary waves, these waves continue the same direction that was split.

These waves going to around the object, obstacle with sharp edges could cause detraction, like tables, refrigerators chairs, walls, furniture, etc.

5 0
3 years ago
2.
inn [45]

Answer:

True

Explanation:

Readability is how easy it is to read words, phrases, blocks of copy such as a book, a web page or an article. Legibility is a measure of how easy it is to distinguish one letter from another in a particular typeface.

Your welcome

5 0
3 years ago
A folder has been shared with other users and set to read-only. what does this mean for users?
fomenos
It means they cannot make changes inside those folders and they don't have permission to execute files within it.
5 0
4 years ago
Read 2 more answers
Write the definition of a function named printpoweroftwostars that receives a non-negative integer n and prints a line consistin
Aleksandr-060686 [28]
To accomplish this without using a loop,
we can use math on a string.

Example:
print("apple" * 8)

Output:
appleappleappleappleappleappleappleapple

In this example,
the multiplication by 8 actually creates 8 copies of the string.

So that's the type of logic we want to apply to our problem.

<span>def powersOfTwo(number):
if number >= 0:
return print("*" * 2**number)
else:
<span>return

Hmm I can't make indentations in this box,
so it's doesn't format correctly.
Hopefully you get the idea though.

We're taking the string containing an asterisk and copying it 2^(number) times.

Beyond that you will need to call the function below.
Test it with some different values.

powersOfTwo(4) should print 2^4 asterisks: ****************</span></span>
4 0
4 years ago
Other questions:
  • Joshua is creating his résumé, in which section will he add projects and trainings he was involved in?
    10·1 answer
  • What are some good invention names for an air filter?
    14·1 answer
  • A television advertisement claiming that a product is "light-years ahead of its time" does not make sense because (a) it doesn’t
    10·1 answer
  • Can I get the code for the Edhesive Assignment 3 Chatbox in python? Thanks.
    15·1 answer
  • A bubble starts by comparing the first item in the list to all the remaining items, and swaps where the first item is ____ a lat
    9·2 answers
  • The US government appropriates less than one million dollars in funding each year to STEM education programs. True False
    7·2 answers
  • You need to select the text / picture /shape before you can Hyperlink.
    9·1 answer
  • Is climate change a man-made problem or a natural occurrence ? Why or why not ?
    8·1 answer
  • What are the 4 types of satellite?​
    13·2 answers
  • Which of the following BEST describes a permissive software license?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!