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

The computer will display an explanation of a transposition cipher The computer

ID: 3537885 • Letter: T

Question

The computer will display an explanation of a transposition cipher The computer will accept a message up to 100 characters The computer will display the original message to the user The computer will then create a 5 column transposition cipher text The computer will then display the transposition cipher text The computer will then ask the user if they would like to write the original text and the cipher text to a text file The computer will then ask the user if he/she would like to enter another message or quit The computer will display an explanation of a transposition cipher The computer will accept a message up to 100 characters The computer will display the original message to the user The computer will then create a 5 column transposition cipher text The computer will then display the transposition cipher text The computer will then ask the user if they would like to write the original text and the cipher text to a text file The computer will then ask the user if he/she would like to enter another message or quit

Explanation / Answer

this should get you started #include <iostream>
#include <fstream>
using namespace std;
int main()
{ ifstream input;  
string message;
int i,s,b;

input.open("input.txt");           //open file
   if(input.fail())             //is it ok?
       { cout<<"file did not open please check it ";
        system("pause");
        return 1;
        }
getline(input,message);
cout<<"Encrypted message ";
cout<<message<<endl;

}
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote