Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Done in C++ with the Visual Studio software. Develop an EncryptedString class with private data fields that hold the encryptedText (string) and positionsShifted (int) Add
Done in C++ with the Visual Studio software.
Develop an EncryptedString class with private data fields that hold the encryptedText (string) and positionsShifted (int) Add at least 2 public member functions to the EncryptString class. One member function(method) should be named decrypt and should decrypt a string based on only the private fields: encryptedText and positionsShifted string decrypt); ifmmp decrypt hello shifted 1char The second version of the decrypt function should have an additional input argument that is a string with letters to ignore string decrypt(string ignore); aifbmcmbpa decrypt and ignore "abc" hello ShiftedChar When you run the program it should look like What string would you like to decrypt? ifmmp How much are the letters shifted? 1 Do you want to ignore any letters? (1=yes, 2-no) 2 Decrypted string: hello What string would you like to decrypt? aifbmcmbpa How much are the letters shifted? 1 Do you want to ignore any letters? (1=yes, 2-no) 1 Enter the letters to iqnore: abc ignoring letters: abc Decrypted string: hello What string would you like to decrypt? N%qt(jshx77:&&& How much are the letters shifted? 5 Do you want to ignore any letters? (1=yes, 2-no) 2 Decrypted string: I love cs225Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started