Question
Lang C++ Need help starting the code Problem: write a program that asks the user for a string of characters and prints the encrypted message
Lang C++ Need help starting the code Problem: write a program that asks the user for a string of characters and prints the encrypted message back to the user as a string of ASCII values in base 2 OR asks the user for a string of ASCII values in base 2 and prints the decrypted string of characters corresponding to those values back to the user. This program will use functions for converting numbers, getting input from the user, converting input from the user, and error checking. Ask the user if they want to encrypt a message entered as string of text or decrypt a message given as a string of ASCII characters in base 2. If the user wants to encrypt a message of text, then read a line of text that can include spaces, e.g. jen or jen mocello. o Print the users encrypted message back to the user in binary. If the user wants to decrypt a message of characters in binary, then read a string of 1s and 0s from the user. o Print the decrypted message in corresponding text. Continue to prompt the user for encrypting or decrypting until the user doesnt want to do this anymore
(please include dealing with bad user inputs)
Step 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