Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Write a program that opens a local file C:\DataDirectory\data.txt reads in the data into your program without removing the data from the file and appends new data onto the end of the existing data in the program, and then appends the new data onto the existing data within the file.

Part 1

Write a program that opens a local file C:\DataDirectory\data.txt reads in the data into your program without removing the data from the file and appends new data onto the end of the existing data in the program, and then appends the new data onto the existing data within the file.

 For example, if the data file originally contained the following data:

Hello

Then when your program is done, it should say:

HelloHello my name is Bob

Also, you must utilize exception handing technique to validate that the file has been open, and offer the user a chance to enter a correct filename until the file is found.

 Hint: Use the overloaded open functions, or use random access methodology.

Part 2.

Letter frequencies.

 If you were to encrypt a file using the cipher of Exercise P9.2, the letters will mixed up, and will appear as that you cannot decrypt it without the keyword. Also, it would seem illogical to try and guess the keyword, but someone who is trained in decryption would have no trouble breaking the cipher. The average letter frequencies of English letters are common knowledge. The most common letter E, occurs about 13% of the time.

1. See Exhibit B.

2.Write a program that reads as an input file and shows the letter frequencies in the file. This tool is invaluable to a code breaker. If the most frequent letters are H and K there is a high probability that they are the encryptions of E and T.

(optional)

1.Expand on your 9.3 project to add components that either aide in printing out a deciphered message, or to automatically attempt to output

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"