Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please follow this code write to complete question 2 .I'm having trouble, when I put this code example in python and run it, it shows

Please follow this code write to complete question 2 .I'm having trouble, when I put this code example in python and run it, it shows array not being defined, I'm having trouble, how do I solve a similar topic? image text in transcribed
image text in transcribed
2. Recover the bitmap image represented by the following integer given in hexidecimal format in the style of the SETI message. 403F7C0403BEC0001DEC0001BFC4401FF81C01E780401CF002 00FF007COFF000807F000E07F0007077000007F000003F8000 01F000000F0008C8700046400002320000119008008C804004 0406006020200180C3C0061C12001D80B000300FC000007F00 00026800000 C 000000000000001FFE001800C0078003F8600 0000E00000000000000000000088802003B042000002106000 1DFC000C3FC0003BFEF0007FFC0020FF8001FFFE 00003 FF000 01FF80000FFE0001BF90001848C00186420018230000010800 0008400000000000000010000001 from pylab import * _=" 07 7EABFFD7D7F6EEED355556 6DFFFFFFFF3FFFF97FFFF2FFFFD5FFFF 83FFFFFFFCF1CF3BFFE6F2E73CA082083FFFFFF7FFFDFFFFFFEFFFF81F FF07FFFFF 3 CF 1CEFEFFBCBCE 3282082 0FFFFFFDF9FF7FF3FFFBE7FE07C FC1FF9FFF7FBFDF7E7F7F3CFDFF9DE7FFF33FFE779FF3CFDFDFBFDF7F3 \ FDDFE7FBBFEFEFBFBFBFBFFCFF9FE7FDC53FFBFBFFF7C1FFEF45A4FD8D 1 808F1F23FEBE26FD7CODFAF9FBE4FFFFFFFFE3EFFFC575558FFAAFFFF5\ FFF83FFFC01FFE3F8FF9FFCFE5FF4F99FCCF75F5DEEDDBBFDD77FFBDEF \ FF7FDFFFB5FFC30587" N= int (, base =16) \# First, we have to convert the integer N \# of the image into a list of 1 's and 0 's. bitlist = [] while N>0 : bitlist.append( N \& 6 2) N=N1 assert len(bitlist) 877=0 assert len(bitlist) \& 23==0 \# Now, reshape the bitstring into an array * we can display as an image... bitimage = array(bitlist, dtype=int).reshape (73,23)T * draw and save spy (bitimage) savefig('seti1974.png', bbox_inches='tight', transparent=True) savefig('seti1974.pdf', bbox_inches='tight')

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is one of the skills required for independent learning?Explain

Answered: 1 week ago