Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

two sections on java inside the zip folder. section 1 due on february 7th. section 2 due on february 12. section 1 Analysis Explain your approach to reading individual bytes from a file Some of the...

1 answer below »
two sections on java inside the zip folder. section 1 due on february 7th. section 2 due on february 12.
section 1Analysis
  1. Explain your approach to reading individual bytes from a file
  2. Some of the data may be encrypted by adding 5 to a byte. If encrypted data has a value between zero (0) and four (4), what will the decrypted value be?
Design
  1. Usingdraw.io, or another drawing tool, design an algorithm for the required program and create a flow chart diagram to represent your algorithm
  2. List the methods you plan to implement your algorithm.
section 2:Create a GUI or text-based program that will read binary data and display. The data may be encrypted by adding 5 to each byte.Your program must
  1. Allow a user to select a file for input.
  2. Allow the user to select whether to decrypt the data.
  3. Read the data from the file.
  4. Display the numeric values of the data in 16-byte rows
  5. Display the same values a second time. For values greater than 31 and less than 127, display the Unicode (ASCII) character. For all other values display a period (.)
  6. If the user has selected to decrypt the data, then decrypt the data (subtract 5) and repeat steps 4 and 5.
  7. Display the total number of bytes in the file.
At runtime, a text-based program should match the format of the provided examples.Example 1 – Read and display a file without decryptionEnter a file to input:testfile1.datApply decryption? (Y/N):N XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX153. . @ K w o . ) E. . . . . O. XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX129. E . .+ $ 2 w ! . . . . . . .[END OF FILE]32 bytes
Example 2 – Read and display a file applying decryptionEnter a file to input:testfile2.datApply decryption? (Y/N):YE = Encrypted valuesD = Decrypted values XXXXXXXXXXE: XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX255 L w f x x % n x % l w j j s $ .D: XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX250 G r a s s i s g r e e n. .E: XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX200 . . %. 2. . . . . . . . . . .D: XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX195 . z. . -. . . . . . . ....[END OF FILE]32 bytes
Resources
  • HexEd.it - Browser-based Hex Editing
  • Hex Calculator
Notes
  • This assignment includes 3 data files,Ch17-01.dat, Ch17-02.dat, Ch17-03.dat. Run your program against each file.
  • Some or all the data in each file may be encrypted.
  • Your program should be able to handle a file of any size.
  • You must properly handle all exceptions.
Please submit the following:
  1. The project folder containing yourentireproject
  2. The program output
  3. List any interesting data you may find in any or all of the data files
Points will be given based on the following requirements:
  • Program Correctness
  • Readability / Code Organization
  • Documentation
  • Assignment Specifications
SeeCIS-2572 Assignment Grading Guidelinesfor details
Answered 3 days After Feb 07, 2022

Solution

Chirag answered on Feb 08 2022
111 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here