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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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