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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!