Question: ***** IN JAVA ***** Write a program that prompts the user to enter the name of a binary file. If the file exists, store it

***** IN JAVA *****

Write a program that prompts the user to enter the name of a binary file. If the file exists, store it as an AList of Bytes.

Prompt the user to enter a position in the file, and navigate to that position in the list. Use an iterator to print the 5 bytes before and the 5 bytes after.

Ask the user if they want to change the value in that byte position. If yes, allow the user to type in a byte value AS A TWO DIGIT HEX

Replace the value in the position with the new value.

Repeat this until the user specifies a position of -1.

Allow the user to save the binary file TO A NEW FILE LOCATION. Do NOT allow the user to save to a currently existing file.

Use a hex editor to verify that the file was correctly written and the changes were made.

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 Databases Questions!