Your friend
has sent you another message, but this one can’t be decrypted
by your solution to
Problem 2 — it must be using a multi-layer shift.
To keep things from getting too complicated, we will add the restriction that a shift can begin
only at the start of a word. This means that once you have found the correct shift at one location,
it is guaranteed to remain correct at least until the next occurrence of a space character.
Part a: Pseudocode
As in Problem 2, Part b, we want you to sketch out a high level step-by-step algorithm for
solving this problem. HINT: Use recursion. Save your steps in ps4.txt and upload this to your
workspace.
Dostları ilə paylaş: