Write a program that perform this simple substitution cipher

Assignment Help Computer Engineering
Reference no: EM132131862

A simple substitution cipher can be created by shifting a letter n positions in alphabetic order.

For example, if the possible characters are the list [A...Za...z], a shift of three would translate A to D and Z to c. The shift is circular so z would shift around to C. The shift value, n, can be positive or negative.

Write c/c++ program that performs this simple substitution cipher. Your c/c++ program should request the user to enter a shift value, followed by one alphabetic character. It should then print the cipher text for that character.

Print an appropriate error message if the user enters something other than a letter from the list [A...Za...z].

Reference no: EM132131862

Questions Cloud

Mass of an average silicon atom : What are the symbol and name of the element whose average atoms have a mass very nearly half the mass of an average silicon atom?
What was the percentage yield : When benzene (C6H6 ) reacts with bromine (Br2 ), bromobenzene (C6H5Br ) is obtained: C6H6+Br2?C6H5Br+HBr
Molar enthalpy of ammonium chloride : Theoretical value of molar enthalpy of ammonium chloride is 14.8 kJ/mol. The specific heat capacity of copper is 0.385(j)(g^1)(°C^-1)
Determine the limiting reactant : Determine the limiting reactant, the theoretical yield, and the percent yield.
Write a program that perform this simple substitution cipher : Print an appropriate error message if the user enters something other than a letter from the list [A...Za...z].
What is the mass of naoh in the mixture : What is the mass (in grams) of NaOH in the mixture? What is the mass (in grams) of Ba(OH)2 in the mixture?
Write an incremental program counting from one by one : Write a c++ incremental program counting from one by one to 10 by ten with these lyrics.
Briefly describe the objective of the project : Review an organizational case study which incorporates elements for managing a project from start to finish.
Why does a hydrate exist only as a solid : Why does a hydrate exist only as a solid? What characteristic of a hydrate is responsible for this phenomenon?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Define in detail minimum five practices

Your Web design firm has just hired a talented graphic artist with years of expertise in print media and no experience with producing image production. You have to train this person in the best practices for Web graphics. Explain in detail minimum..

  Create an xml document containing information

Create an XML document containing information.

  What is a network of many hacked smartphones called

What is the block size used by SHA-512 algorithm? What is a network of many hacked smartphones called? Which of the following can be utilized as traceroute tool? Which of the following are Mobile Network Based Attacks?

  Complete hr suite which will include performance management

The application will provide DAS with a HR suite that will provide a complete HR suite which will also include performance management.

  What are the key points to focus on

what are the key points to focus on.

  Create a draggableinterface that specifies a single method

Create a DraggableRectangleclass that implements this method. See Lab 5: Drag & Dropfor details of how to do this. The idea behind the lab exercise is what you need, not the exact code. The code will be different because this is not Wheels.

  Draw particular attention to the interaction

COIT 20268 - Responsive Web Design (RWD) - Identify the positive and negative aspects of the website. Draw particular attention to the interaction.

  Which calculation provides more security

Which calculation provides more security? Which calculation is more efficient in terms of space and time?

  Design the logic for a program that merges the two files

Design the logic for a program that merges the two files into one file containing a list of all students in the district, maintaining student ID number order.

  Describe organizations size and summarize primary mission

Describe the organizations size and summarize the primary mission and vision of the organization. Provide the name of an existing organization

  Estimate how long it will take both the statically scheduled

Suppose function evaluations are so costly in execution time that they dominate all other costs. Suppose that r = 10, p = 4, and that tasks 2 through 40.

  What is the minimum signal-tonoise ratio

What is the minimum signal-tonoise ratio (in dB) that the channel must have in order for it to be possible to achieve this data rate?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd