Question
This activity is worth 10 total points This week's Lab is: A De/Coder. Think back to 3rd grade when you passed notes to friends in
This activity is worth 10 total points This week's Lab is:
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. 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-23 1-18-5 25-15-21?"
"8-15-23 1-18-5 25-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.
this program uses python.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started