Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ST:Pls help for this programing problem in c++ (standard IO without file read/write),better with some comment about why coding that way,thanks Problem A: Secret text

image text in transcribedST:Pls help for this programing problem in c++ (standard IO without file read/write),better with some comment about why coding that way,thanks

Problem A: Secret text Time limit:2 sec Problem Description Write a program to translate a secret text. The text is encrypted by the following rules. First if the text is a lowercase letter, we translate it into an uppercase letter, and the first letter 'a' is translate into the last letter "Z', the second letter 'b' is translated into the second to the last letter 'Y", and so on. If the text is an uppercase letter, we translate it into a lowercase letter similarly. If we see a digit, we will translate it into the next digit, and the only exception is "9, which will be translated into "O. On all other cases, the text is not changed. Input File Format The input is lines of text. Output Format The output is the text after translation. Example Sample Input: This is a test line. We have roughly 59 characters in this example. Sample Output: gSRH RH Z GVHG ORMV. dV SZEV ILFTSOB 60 XSZIZXGVIH RM GSRH VCZNKOV

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_2

Step: 3

blur-text-image_3

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

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions

Question

Explain the development of human resource management (HRM)

Answered: 1 week ago

Question

7. It is advisable to do favors for people whenever possible.

Answered: 1 week ago

Question

9. Power and politics can be destructive forces in organizations.

Answered: 1 week ago