Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3) (3 marks) Answer the questions below using the following snapshot of memory. where each address holds 1 byte of data: 00 01 02 03

image text in transcribed

3) (3 marks) Answer the questions below using the following snapshot of memory. where each address holds 1 byte of data: 00 01 02 03 04 05 06 07 08 09 OA OB OC OD OE OF 7000 73 C3 DA 3D 53 78 13 CT F4 02 TD 2D 41 AO C8 4B 7010 18 8D 25 06 9A FC 35 70 87 B0 32 EF 41 1B 63 60 7020 5D 29 FE 43 A7 94 26 06 6D A4 46 84 C8 1B48 75 7030 57 C2 3E 78 C7 09 22 37 82 4B OA CC 37 53 7B 34 7040 64 07 A3 76 21 ED DE B2 21 B2 50 3A CE 12 4D E1 7050 62 4 AD OA FD 5C 8D ET 15 E3 65 ES 05 6D SE 02 7060 08 FD 01 2D 4D 70 A2 69 E1 66 13 56 B4 30 FF A1 7070 04 21 C3 18 EEB9 3C 5B BO 37 08 C2CAFB4E3A 7080 6C 53 AC F3 4D D6 28 D2 57 C8 CB C7 BD 5D E2 FD 7090 EE 73 04 65 9B 8F 58 CO A4 70 90 60 B1 2C 52 A6 OAO AO D7 1F 68 OF OC 18 F4 8A 52 5F 1F OE IE 81 5E 70B0 TF TE 4F E3 35 F6 34 91 OA D4 97 FT FB 24 AE OE 70C0 6E 5E 9E 20 19 75 B5 60 BC 66 74 91 BEFF7A 5A TOEO 94 D9 4C 83 F5 82 66 7F 88 92 BA 9E 80 4A 8A C9 TOFO 37 45 BD 09 EA B9 A9 75 29 80 5D C3 EC 41 CD 62 Table 1: Contents of Memory from Address 0x7000 to a. What is the value (in hex) of the little-endian, 4-byte integer stored at location 0x70d8? b. What is the value (in hex) of the big-endian, 8-byte long stored at location 0x7020? c. Give an example of a 4-byte integer whose big- and little-endian representations are identical Can you generalize this example? d. The Hubble Space Telescope labels the image data it collects with sky positions using right ascension / declination coordinates. It downloads this data as binary files that are accessible on the Internet. You've decided that you'd like to take an up-close look at Proxima Centauri, the nearest star to earth after the sun, whose position is RA 14h 29m 42.9s, D -62 40 46.1 Hubble image files encode position coordinates using two 4-byte integers, one for right ascension and the other for declination. And so, the position of Proximate Centauri would be labeled as RA-521,829 and D--2,207,359 RA 1436000 + 29600 + 42.9 * 10 - D -62* 36000 40600 46.1 * 10 -2,207,359 521,829 So you write a program to download a portion of the Hubble dataset and search it for images containing these coordinates. You discover, however, that Hubble apparently never took any images of Proximate Centauri. You call the head of NASA to complain bitterly. She tells you that they have taken thousands of pictures of Proxima Centauri and suggest that perhaps you are an idiot. Then you note that the computer on the Hubble that generated the coordinates is the DF-224 manufactured by Rockwell Autonetics in the 1980's and the computer on which your program is running uses an Intel Core i7 processor that you recently purchased-and then you realize that something you learned in CPSC 106 might actually be useful What did you realize and what are the correct values of the two integers that you should use in your program to search for Proxima Centauri? HINT: Convert the numbers 521,829 and -2,207,359 to hex. Then think about how you might need to manipulate these hex values. You can give your answer in hex or decimal; your choice

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

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

Recommended Textbook for

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions