Question: Question Goal: Learn to write while loops. Assignment: Assume a string is assigned to passphrase. Unfortunately, whoever wrote it did not read the requirements correctly

Question
Goal: Learn to write while loops.
Assignment: Assume a string is assigned to passphrase. Unfortunately, whoever wrote it did not read the
requirements correctly because they used special characters, which is not allowed. Passphrases need to be
alphanumeric only. Fortunately, they added most of these special characters to the end of the passphrase. Write
some code that assigns to passphrase the longest substring of the original passphrase that satisfies the
alphanumeric requirement. For example, if the original passphrase is abc2%t3@5, the new passphrase will be abc 2.
You must use a while loop in this exercise.
Question Goal: Learn to write while loops.

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 Programming Questions!