Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need some assistance or guy creating a C++ that can create a ciphertext for sp

ID: 3889216 • Letter: I

Question

I need some assistance or guy creating a C++ that can create a ciphertext for space and character

Statistics analyzer (ciphertext). It could be any ciphertext text in gerneral. I doesn't have to be a specific file from a program.

Please create a program called sol_sac.ext, where ext denotes the file extension

corresponding to your choice of programming language (.py, .c, .cpp, .c++,

or .java).

This program should read in the file ciphertext.txt. The output should be

a file cipher_freq.txt which is much like corpus_freq.txt, but with ciphertext

characters rather than only letters and spaces. This is very similar to the

statistical analyzer for the corpus, and you should be able to reuse the code you

have from the previous task with very few changes. In fact there is a way to

arrange things so that this program is identical to sol_sap.ext. (But please

hand in two files to make the grading uniform.)

Explanation / Answer

#include #include #include int main () { std::string message("some string that you will probably get from some encrypted file"); std::map occurences; std::string seq(" "); for(int i = 1; i