Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python D | Question 15 20 pts Write a function a function that accept a string object (inString). The function will scramble the string and

Python
image text in transcribed
D | Question 15 20 pts Write a function a function that accept a string object (inString). The function will scramble the string and return the scrambled string. The function uses the following algorithm to scramble the string: 1. Only letter characters are allowed. 2. First convert the character to an uppercase. 3. Use the mapping table below to replace each character. Define a string object alpha 'ABCDEFGHIJKLMNOPORSTUVWXYZ. Let the variable char represent the old character after you have converted it to uppercase. The new character is alpha[G+alpha.index(char))%26] 4. Example: For "HelloWorld", the function will return "KHOOZRUOG 5. The mapping is New D E F G HI KLIM NOpQRSTUVwXYZ ABC HTML Editor F3 3 4 5 7 8

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions

Question

Define the placebo effect and describe what it tells us.

Answered: 1 week ago