![Starting Out with C++: Early Objects](https://www.bartleby.com/isbn_cover_images/9780133360929/9780133360929_largeCoverImage.gif)
File Encryption Filter
File encryption is the science of writing the contents of a file in a secret code. Your encryption
Although there are complex encryption techniques, you should come up with a simple one of your own. For example, you could read the first file one character at a time and add 10 to the ASCII code of each character before it is written to the second file.
![Check Mark](/static/check-mark.png)
Want to see the full answer?
Check out a sample textbook solution![Blurred answer](/static/blurred-answer.jpg)
Chapter 13 Solutions
Starting Out with C++: Early Objects
Additional Engineering Textbook Solutions
Starting Out with Python (4th Edition)
Starting Out With Visual Basic (8th Edition)
Java: An Introduction to Problem Solving and Programming (7th Edition)
Introduction To Programming Using Visual Basic (11th Edition)
Modern Database Management (12th Edition)
Starting Out with Java: From Control Structures through Data Structures (3rd Edition)
- Why is it vital to make sure that a file is designed correctly? What difference does it make whether you know how the data in your text file is arranged if you already have it?arrow_forwardWhat can you determine about a file by looking at it's properties ?arrow_forwardPrintWriter and Scanner - text file I/O DataInputStream and DataOutputStream - binary file I/O RandomAccessFile - binary file i/o where every record is the same number of bytes so that you can seek to a specific record ObjectInputStream and ObjectOutputStream - read and write objects.arrow_forward
- Why does it matter how a file is laid out? Why is it important to understand the structure of the information in your text file?arrow_forwardWhat should you do if you unintentionally delete a file and then decide that you want to retrieve it?arrow_forwardat the True false beginning of a file the flag eof() is ifstream True false declares files that we can write on close() is used True false to close the graphics window data True false structures can have members of different typesarrow_forward
- Word List File Writer: Write a program that asks the user how many words they would like to write to a file, andthen asks the user to enter that many words, one at a time. The words should be writtento a file (in python)arrow_forwardWhy is it important for a program to close an open file as soon as it is done using the file? Give two reasons.arrow_forwardThis is the most effective file organization method in which one must handle all data records in a file namedarrow_forward
- Create file Write data Read data Delete data And print the messages through System.out.println. Use buffer reader to read file Programming language : Javaarrow_forwardVirus DNA files As a future doctor, Jojo works in a laboratory that analyzes viral DNA. Due to the pandemic During the virus outbreak, Jojo received many requests to analyze whether there was any viral DNA in the patient. This number of requests made Jojo's job even more difficult. Therefore, Jojo ask Lili who is a programmer for help to make a program that can read the file containing the patient's DNA data and viral DNA and then match them. If on the patient's DNA found the exact same string pattern, then write to the index screen the found DNA. Data contained in the file testdata.in Input Format The first line of input is the number of test cases TThe second row and so on as many as T rows are the S1 string of patient DNA and the S2 string of viral DNA separated by spaces Output Format The array index found the same string pattern. Constraints 1 ≤ T ≤ 1003 ≤ |S2| ≤ |S1| ≤ 100|S| is the length of the string.S will only consist of lowercase letters [a-z] Sample Input (testdata.in)…arrow_forwardPython The program should open a specified text file, read its contents, then use the dictionary to writean encrypted version of the file’s contents to a second file. Each character in the second file should contain the code for the corresponding character in the first file. Your program contains both encryption AND decryption functions. Please do not put them in separate programs. Your program provides a MENU that offers the user a choice to encrypt or decrypt the file and call the respective function. Your encoder function will use the Caesar Ciphe to translate the file Your encoder function will first convert all input characters to upper case. This means that the output of encrypted text should be in CAPITALS. You must use a string method to convert! Your implementation must use a dictionary Your implementation must use string methods for converting casearrow_forward