Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING PYTHON IDLE 3.4: Your output should look like this: Things-to-do: 1) Initialize any necessary variables 2) Prompt the user for the string to encode

USING PYTHON IDLE 3.4:

image text in transcribed

Your output should look like this:

image text in transcribed

Things-to-do:

1) Initialize any necessary variables

2) Prompt the user for the string to encode and integer

3) Create a loop based on the characters in the string

- Calculate the value for each encoded character & Add the new character to the encoded string

4) Display the encoded string

HELP ME PLEASE! Really need help with this PYTHON IDLE 3.4! :(

Write a Python program that prompts the user for a message string and an integer. Based on these entries and using Python's string and character manipulation capabilities, create a new string by capitalizing all the characters, ignoring punctuation, replacing all spaces with a then incrementing each remaining character's ordinal (ord) value by the integer provided. The result of the character increment should always be a capital letter between A Z so if an incremented value goes beyond the capital letters of the alphabet, (ordinal values between 65 and 90), it should "wrap around' to the other end. Once the string is encoded, your program should display the newly encoded message. For example, the user enters the string "Howbow Dah!" and the integer 5 n the table below, the first column shows the original string character and demonstrates the encoding process Char Capitalized ORD ORD New Char 84 82 68 goes beyond Z loops back to B 68 84 82 68 spaces wil always be 68 65 ignored punctuation mark In this example, the program would output the string: "MTBGTBHIFM

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 Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

personal smart goals on volunteering

Answered: 1 week ago