Answered step by step
Verified Expert Solution
Question
1 Approved Answer
make a program in python that satisfies the requirements below. please answer design questions as well after completing the program. C Chegg Study IGuided sc
make a program in python that satisfies the requirements below. please answer design questions as well after completing the program.
C Chegg Study IGuided sc xHome C Secure | https://jhub.cas.mcmaster.ca/user/mehtaa13otebooks/assign7 section/major3v2.ipynb jupyter major3_v2 (unsaved changes) Control PanelLogout File Edit View Insert Cell Kernel Help Not Trusted Python 3 O Background In this assignment you will implement a library of functions that can be used to encode and decode a list of lists of decimal (base 10) integers as binary (base 2) strings. The ints and binary strings will be stored in a list of lists. An example list or lists of ints would look like 18. 2. 38. 32, 10], 154. 71. 3]. 177. 95. 67. 341] Design, implement, and test a program that satisties the requirements below Requirements 1. Implement toBin(a) which takes a list of ints a and retums a new list where each entry in a is converted to a binary string using the Python function bin() 2. Implement tolnt(s) which takes a list of binary strings s and returns a new list where each entry in s is converted to an int value using the Python function int(x, 2) 3. Implement encode(A, n) which takes a list of lists of ints A and an int n and returns a new list of lists of strings where each entry in A has first been raised to the power of n, then converted to a binary string using toBin). Be careful not to modifyA 4. Implement decode(S, n) which takes a list of lists of binary strings s and an int n and returns a new list of lists of ints where each entry in S has first been converted to an int using tolnt). then raised to the power of 1. 11:30 AM O Type here to search Desktop.. ^UE,gxENG 2018-03-05Step 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