Question: Problem Statement Create a new package named program5 in Eclipse (the project name can be 112 or whatever you have), and put the class for

 Problem Statement Create a new package named program5 in Eclipse (the
project name can be 112 or whatever you have), and put the

Problem Statement Create a new package named program5 in Eclipse (the project name can be 112 or whatever you have), and put the class for this programming assignment in this package (right-click on a project > New -> Package, type program5 as the package name). File encryption is the science of writing the contents of a file in a secret code Your decryption program should read the contents of the coded file, restore the data to its original state Design a program that read in a secret message and write the message into a binary file; then open that file to get the message, decrypt the message and display the original message Although there are complex encryption/decryption techniques, we will use a simple one in this program, after reading the secret message from the file, we want to convert the text into an array of characters and then subtract 10 from each character and display the decrypted message. Steps in this program (check sample output on next page) 1. 2. 3. 4. 5. 6. Ask the user to enter a secret message Ask the user to enter a filename that he/she wants to write the secret message in Open the binary file specified and write the secret message to the file Close the output file Ask the user to enter a filename to read (the same filename as above) Open the file to read, get the secret message, process the message (subtract 10 from each char) Print out the decrypted message and close the input file 7. Do not forget to add throws IOException at the end of the main method Requirements & Considerations 1. Include header comments (at the beginning of your Java files) formatted as shown below using your name and student ID, etc. instead. Be sure to include the Honor Code statemert and program description. Your electronic submission of the program file will represent your endorsement of the Honor Code Statement. Course: CSCI 112, Section X Student Name: Jane Doe Student ID: 12345678 Program 5 (Homework) Due Date: In keeping with the Honor Code of UM, I have neither given nor received assistance from anyone other than the instructor Program Description: This program Cont'd on next page

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!