University of New Haven Python Code Project Take the program above and modify it by adding the create_dictionary function. The parameter file_name is the n

University of New Haven Python Code Project Take the program above and modify it by adding the create_dictionary function. The parameter file_name is the name of a csv file that contains an unknown number of lines that reflect ASCII encodings. The format of this file is described in the bullet above. The function should return a dictionary where the keys are characters and the values are the 8 bit representations. Note: use ” ” and “,” as keys instead of space and comma.Take the program above and modify it by adding the translate function. The parameter sentence consists of an unknown number of characters. The parameter dictionary is the dictionary that was created by the create_dictionary function. The parameter file_name is the name of the output file where all output should be sent. In the output file, each character in sentence should appear on its own line, followed by a space, followed by its 8 bit representation. If a character does not appear in the dictionary, the word UNKNOWN should appear instead of an 8 bit representation.When the program is run, it should produce the following three output files: output-1.txt, output-2.txt and output-3.txt .PreliminariesASCII (American Standard Code for Information Interchange) is an older code used by computers to represent characters (such as the character “X”) with 8 binary digits (or bits). Here is an ASCII table. Today, Unicode UTF-16, a 16 bit code is more commonly used.Download lab6.py, rename it according to the instructions above, and make sure you understand it.Download input file ascii-codes.csv to the same directory where you downloaded lab6.py. Each line in ascii-codes.csv contains 8 bits (0s and 1s), followed by a comma, followed by the character that the 8 bits represents. In general, the character will be of length 1 such as the character X. However, there are two exceptions: “ “ is represented by space and “,” is represented by comma.

Don't use plagiarized sources. Get Your Custom Essay on
University of New Haven Python Code Project Take the program above and modify it by adding the create_dictionary function. The parameter file_name is the n
For $10/Page 0nly
Order Essay
Calculator

Calculate the price of your paper

Total price:$26

Need a better grade?
We've got you covered.

Order your paper