subject

File encryption and decryption write a program that uses a dictionary to assign "codes" to each letter of the alphabet. for example: codes = { β€˜a’ : β€˜%’, β€˜a’ : β€˜9’, β€˜b’ : β€˜@’, β€˜b’ : β€˜#’, etc . .} using this example, the letter a would be assigned the symbol %, the letter a would be assigned the number 9, the letter b would be assigned the symbol @, and so forth. the program should open a specified text file, read its contents, then use the dictionary to write an 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. write a second program that opens an encrypted file and displays its decrypted contents on the screen.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:30
Write a program that reads the file, then displays the average number of steps taken for each month. (the data is from a year that was not a leap year, so february has 28 days.) your program needs to use at least 3 functions not counting main and display the information in a neat well formatted fashion.
Answers: 3
question
Computers and Technology, 22.06.2019 00:00
11. is the ability to understand how another person is feeling. a. authority b. sympathy c. empathy d. taking a stand
Answers: 1
question
Computers and Technology, 22.06.2019 05:00
This program will store roster and rating information for a soccer team. coaches rate players during tryouts to ensure a balanced team. (1) prompt the user to input five pairs of numbers: a player's jersey number (0 - 99) and the player's rating (1 - 9). store the jersey numbers in one int vector and the ratings in another int vector. output these vectors (i.e., output the roster). (3 pts) ex: enter player 1's jersey number: 84 enter player 1's rating: 7 enter player 2's jersey number: 23 enter player 2's rating: 4 enter player 3's jersey number: 4 enter player 3's rating: 5 enter player 4's jersey number: 30 enter player 4's rating: 2
Answers: 1
question
Computers and Technology, 22.06.2019 16:10
When copying and pasting text, the first step is move your cursor type the text select the copy command select the paste command
Answers: 2
You know the right answer?
File encryption and decryption write a program that uses a dictionary to assign "codes" to each lett...
Questions
Questions on the website: 13722360