Develop a crytographic scheme that will encode a message

Assignment Help C/C++ Programming
Reference no: EM131137772

Assignment:

Here you will begin to develop a crytographic scheme that will encode a message. In order to do that, you will convert a single character into its ascii code, add a certain integer value to it, and convert back into a character.

The mapping will be to add CRYPT_KEY. For example, if CRYPT_KEY =2, the mapping would take a---->c, and also take z---->B. Note that ascii values greater that z get "wrapped around" starting again at A.

Your program must:

-Define a constant CRYPT_KEY to any value integer value you want

-Use modulus operator (%) to maintain a mapping between ascii A and z.

-Use static_cast to convert between data type char and int.

Reference no: EM131137772

Questions Cloud

Null hypothesis that on the average the bank cashes : An employee of a bank wants to test the null hypothesis that on the average the bank cashes 10 bad checks per day against the alternative that this figure is too small.
Classify each of the following accounts taken : Classify each of the following accounts taken from Roberts Company's balance sheet.
Transformational supportive task-oriented people-oriented : Katherine Graham took over as head of the Washington Post after her husband committed suicide. At the time, the newspaper was an undistinguished regional paper. Graham, who has no previous experience in the newspaper business, decided that the Washin..
Explain the function of the federal reserve system : Explain the structure and function of the Federal Reserve System. - How the Reserve Requirement Ratio (RRR) is essentially the same concept as the MPS?
Develop a crytographic scheme that will encode a message : Develop a crytographic scheme that will encode a message. In order to do that, you will convert a single character into its ascii code, add a certain integer value to it, and convert back into a character.
Discuss considerations for implementing an operating system : Discuss the considerations for implementing an operating and database system. Recommend the optimum system, considering the types of revenue and expense transactions for this company.
End of the string and then print the results : Write a C++ code that declares a regular C++ null-terminated string that holds upto 20 characters, reads user input into the string, appends an exclamation to the end of the string and then print the results.
Determine the minimum sample size needed : Suppose that we want to test the null hypothesis that the mean of a normal population with σ2 = 1 is μ0 against the alternative hypothesis that it is μ1, where μ1 > μ0. Find the value of K such that  > K provides a critical region of size α = 0.05 fo..
How can we make sure that we find maximizer and the maximum : if we use Lagrangian multipliers to solve the consumption and leisure problem,- how can we make sure that you find the maximizer(s) and the maximum.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Program to next the loops in either direction

You can write your program to next the loops in either direction, that is, process row-by-row or column-by-column. Explain which way you would choose to process the data.

  Design class for textbook-data field for grade level of book

Design a class named TextBook that is child class of Book. Include new data field for grade level of book. Create a displayTextBookInfo () method so that you can accommodate new grade-level field.

  Functional decomposition implementation of the algorithm

Functional decomposition implementation of the algorithm. Must define at least four different functions. Make sure to include functions that exemplify void vs. return-type,and value vs. reference parameters

  You have just upgraded your system

You have just upgraded your system to a "fast and wide" SCSI interface. This system has a floppy disk, a CD-ROM and five 8-gigabyte fixed disks. What is the device number of the host adapter? Why?

  Complete graphical and possibly networked two-player game

Analyze a basic set of requirements for a problem and create basic test cases for a program - Describe what is an attribute or data member of a class

  Write the entire definition for the main function

Write the entire definition for the main function that prints out all of the command-line arguments on its own line.

  Write a program to manipulate strings using pointers

Write a program to manipulate strings using pointers. The program will start out by displaying a menu to ask user what to do as shown below

  Write a program that gives a prompt to the users

Write a program that gives a prompt to the users, asking for an integer n. It then prints out a random permutation, on one line , of 1,2,.......n separated by spaces or lines.

  Write a digital music manager

Your DMM program must have a text-based interface which allows the user to select from a menu of options including: load, store, display, insert, delete, edit, sort, rate, and exit. The "load" option reads records from a file into a dynamic doubly..

  Calculate the area of the circle

Write an application that prompts the user for the radius of a circle and uses a method called circleArea to calculate the area of the circle.

  A password must have at least eight characters

A password must have at least eight characters. A password must consist of only letters and digits. A password should contain at least one uppercase letter. A password must contain at least two digits.

  Build a method for performing frequency analysis

Build a basic cipher base class that may be derived from for the ciphers and decode a Caesar Cipher text. You will have two cases.

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