Question: I need a python codding for this problem. It should be basic codding by using tools like if,else,elif,while,for etc. 02. Two military stations use an

I need a python codding for this problem. It should be basic codding by using tools like if,else,elif,while,for etc.

I need a python codding for this problem. It should be basic

02. Two military stations use an encrypting protocol for communication. Accordingly, a message is sent from a channel. Then, two four-letter words as starting and ending words are also sent from different channels. Their protocol involves following steps: Message is read by separating it into four-letter strings. Starting and ending words are searched. The characters between these words include encrypted numbers. For instance, assume that starting word is "aaaa", ending word is "bbbb", and following message is sent: "5562kjaaaa598370aaaa99*105*97*111*33bbbb89547986hjgr Four-letter strings to be searched: 5562-kjaa-aa59-8370-aaaa-99*1-05*9-7*11-1*33-bbbb-8954-7986-hjgr In this case, the part of interest is 99*105*97*111*33. Notice that another "aaaa" appears in the message but it is not valid when message is separated into four-letter strings. The string between starting and ending words includes codes corresponding to ASCII characters. For instance, 99 corresponds to letter "c", 105 corresponds to letter "", so on. As a result, message reads "ciao!". Notice that "*" marks where you should split the numbers. Hint: Take a look at chr function for converting numbers to their corresponding ASCII characters

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!