Question: (( C++)) Scrambled Word Write a program that reads letters, scramble them into a word, and prints the scrambled word. Reading stops at the character
Scrambled Word Write a program that reads letters, scramble them into a word, and prints the scrambled word. Reading stops at the character CO. One way to scramble lower-case letters into a word is to replace each letter by the kth letter in the alphabet. For example, the scrambled version of the letters shtqixew with k = 4 is wlxumbia. Sample inputs / outputs: Enter the k number: 4 Enter a lower-case letter, 0 to stop: s Enter a lower-case letter, 0 to stop: h Enter a lower-case letter, 0 to stop: t Enter a lower-case letter, 0 to stop: 9 Enter a lower-case letter, 0 to stop: i Enter a lower-case letter, 0 to stop: x Enter a lower-case letter, 0 to stop: e Enter a lower-case letter, 0 to stop: w Enter a lower-case letter, 0 to stop: 0 A scrambled version of the letters is wlxumbia
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
