C++ python 3 jupyter | Computer Science homework help

 Write a Python program to encode the plain text message and another Python program to decode the encoded message.

 

Use the following as starter code:

 

# <Put your name here> # HW 5 Caesar Cipher: Encoder # Do not modify next 8 lines def encode():     print(“Caesar cipher”)     print()    # chars is given for your convenience. It will help for     # an easier solution. You do not have to use it.     chars = “ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz”     # Fill in the expression to ask for the key value:     key =     # Fill in the expression to ask for the phrase to encode:     plain =     # Your main code starts here. Use as many lines as needed.     # Do not modify any lines below     print(“Encoded message follows:”)     print(cipher) encode()

 

  • Be aware that chars is a long string having 53 characters in it. There is only one space between letters `Z’ and `a’ in it.

     

  • You must use an accumulator variable for the encoded message.

     

  • You may also want to use a for loop, the remainder operator, the string find() function to find the location of a letter from chars, string indexing and the len() function.

     

  • You are not allowed to use any other Python modules or functions that have not been discussed in class nor in the book.

     

  • Show the result using the message “The quick brown fox Alice jumps over the lazy dog Zoro” in a Jupyter Notebook cell.

     

 

2. (15 points)

Write another Python program to decode the encoded message according to the “circular Caesar cipher” problem presented in Programming Exercises 7 and 8 of Book Chapter 5.

 

Use the following as starter code:

 

# <Put your name here> # HW 5 Caesar Cipher: Decoder # Do not modify next 8 lines def decode():     print(“Caesar cipher”)     print()    # chars is given for your convenience. It will help for     # an easier solution. You do not have to use it.     chars = “ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz”     # Fill in the expression to ask for the key value:     key =     # Fill in the expression to ask for the phrase to decode:     plain =     # Your main code starts here. Use as many lines as needed.     # Do not modify any lines below     print(“Decoded message follows:”)     print(cipher) decode()

 

  • Use the same guidelines as given in the previous question.

     

  • Show the result using the encoded message from “The quick brown fox Alice jumps over the lazy dog Zoro” in a Jupyter Notebook cell.
Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Open chat
Need help?