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

(( C++))
Scrambled Word Write a program that reads letters, scramble them into a word, and prints the scrambled word. Reading stops at the character 0. 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: q
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
(( C++)) Scrambled Word Write a program that reads letters, scramble them

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!