Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python: A De / Coder . Think back to 3 rd grade when you passed notes to friends in class. We can't let the teacher

Python: A De/Coder. Think back to 3rd grade when you passed notes to friends in class. We can't let the teacher see what we're writing so we used a code. A=1, B=2, C=3, etc. Or a "Caesar Cipher", look it up if needed!
Your job is to create a program which does the following:
Presents the user with a menu choice: encode or decode
Depending on what they chose you will either encode letters into numbers (seperated by dashes) or decode a series of numbers (separated by dashes) into letters.
For example:
"How are you?" would encode as "8-15-231-18-525-15-21?"
"8-15-231-18-525-15-21" would decode as "How are you?"
Remember to use all the tools in your arsenal, especially mainline logic, functions, loops, and error handling.
Don't use chr() or ord()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

Students also viewed these Databases questions

Question

Write a program to check an input year is leap or not.

Answered: 1 week ago

Question

Write short notes on departmentation.

Answered: 1 week ago

Question

What are the factors affecting organisation structure?

Answered: 1 week ago

Question

What are the features of Management?

Answered: 1 week ago

Question

Briefly explain the advantages of 'Management by Objectives'

Answered: 1 week ago