Ask the user if they wish to encrypt a message While the user wants to get the shift amount get the plain text encode the plain text print the result Ask the user if they wish to encrypt a message
While there is not a good response Prompt with "Do you wish to encrypt a message (yes/no)? " Read in the entire line of the response. Print a newline after you read in the line. Convert the input line to all lower case. (Yes, YeS and YES are all ok answers).