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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 23:30, nourmaali
4.11 painting a wall (1) prompt the user to input integers for a wall's height and width. calculate and output the wall's area (integer). note that in this case there is a new line after each prompt. (submit for 1 point). enter wall height (feet): 11 enter wall width (feet): 15 wall area: 165 square feet (2) extend to also calculate and output the amount of paint in gallons needed to paint the wall (floating point). assume a gallon of paint covers 350 square feet. store this value in a variable. output the amount of paint needed using the %f conversion specifier. (submit for 2 points, so 3 points total). enter wall height (feet): 11 enter wall width (feet): 15 wall area: 165 square feet paint needed: 0.471429 gallons (3) extend to also calculate and output the number of 1 gallon cans needed to paint the wall. hint: use a math function to round up to the nearest gallon. (submit for 2 points, so 5 points total). enter wall height (feet): 11 enter wall width (feet): 15 wall area: 165 square feet paint needed: 0.471429 gallons
Answers: 3
image
Computers and Technology, 23.06.2019 14:30, ladawnrowles005
The option enables you to modify a slide element in most presentation applications.
Answers: 2
image
Computers and Technology, 23.06.2019 17:00, taytay1828
What are the 12 colors of the spectrum called?
Answers: 1
image
Computers and Technology, 23.06.2019 18:00, taiyana74
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
You know the right answer?
File encryption and decryption write a program that uses a dictionary to assign "codes" to each lett...

Questions in other subjects:

Konu
Business, 26.01.2021 20:40
Konu
English, 26.01.2021 20:40