Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

How does going global affect companies?

Answered: 1 week ago