Question: . Run the DECODE program to create a TEXT FILE version of the SGI binary file. The program individually read each byte in the file

 . Run the DECODE program to create a TEXT FILE version

. Run the DECODE program to create a TEXT FILE version of the SGI binary file. The program individually read each byte in the file and write it as a hexadecimal string using these code: // read a byte ... data = binaryInput.readByte(); // .. and write it as a hexadecimal string textOutput.printf(" 9602X", data); The DECODE program will produce a text file named STATISTICS (HEXEDECIMAL).TXT which you can open in Intellil The hexadecimal strings in this text file appears like this: 0 1 2 3 4 5 6 7 8 9 A BCD EF DO: 59 46 46 49 00 00 00 00 01 00 00 00 18 00 06 00 01: 0C 00 00 00 00 00 00 00 54 41 54 53 02 00 06 00 02: 96 02 00 00 56 52 45 53 01 00 01 00 30 00 06 00 03: 38 00 00 00 7B 22 63 6C 61 73 73 48 61 6D 65 22 04: 3A 22 5 6F 72 61 67 65 57 72 05: 61 70 70 65 72 22 2C 22 4C 61 73 74 4D 65 72 67 06: 65 64 45 74 61 67 22 2 70 QA 41 54 41 44 07: 02 00 01 00 42 02 00 00 OF 00 00 00 OF 00 4C 61 08: 73 74 4C 6F 73 65 54 69 6D 65 48 65 79 A4 20 86 Etcetera ... Each byte is shown as a hexadecimal number arranged into 16-bytes per row. It was arranged this way to (hopefully) make it easier for you to read the numbers. As a point of reference, each byte can be addressed by a concatenationg of the row label to the column label. Example: 61 is found at address 04B while 41 is found at address 06E 5. Perform TRIAL-AND-ERROR. Do this repeatedly until you get the desired result For example: Change GAMES WON from 2 to 20. (See Figure 2. Klondike Statistics) 3. Look for one occurrence of 2 in the text file. As an 8-bit binary number 2 is 00000010, or 02,; in hexadecimal. So, look for 02 in the text file instead. HINT: Use CTRL-F to access the "find" feature. b. Change 02 (hexadecimal) to 20. Since 20 is in decimal, we should find its equivalence in hexadecimal notation. Thus, 20 from decimal to binary is 00010100, or 14, in hexadecimal

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!