Question: Using the programming language of your choice (so long as it is either compilable or interpretable on my Linux OS), write a program that can

Using the programming language of your choice (so long as it is either compilable or interpretable on my Linux OS), write a program that can decode various binary encoded messages. This is an individual programming assignment (i.e., each student will submit one program).

Notes and Requirements:

Submit your source code only (I will provide my own binary encoded messages to test with);

Read the binary encoded message from stdin;

Send generated output (plaintext) to stdout;

Binary input may either be 7- or 8-bit ASCII (which you should automatically detect);

Input will only contain printable characters;

Input may contain whitespace characters (e.g., space, tab, carriage return, linefeed which you should replicate in the output); and

Input may contain backspaces (which you should replicate in the output)!

Please, no GUIs. Make this a command line application without frills that I can execute at the command line as illustrated below.

Here are several runs of my program on various inputs:

binary1.txt

100100011001011101100110110011011110100000101011111011111110010110110011001 000100001

jgourd@latech:~$ python Binary.py < binary1.txt

Hello World!

binary2.txt

010010000110010101101100011011000110111100100000010101110110111101110010011 011000110010000100001

jgourd@latech:~$ python Binary.py < binary2.txt

Hello World!

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!