Write a program that can encode and decode caesar ciphers

Assignment Help Basic Computer Science
Reference no: EM131302395

1. Expand your solution to the previous problem to allow the calculation of a complete name such as "John Marvin Zelle" or "John Jacob Jingleheimer Smith." The total value is just the sum of the numeric values of all the names.

2. A Caesar cipher is a simple substitution cipher based on the idea of shifting each letter of the plaintext message a fixed number (called the key) of positions in the alphabet. For example, if the key value is 2, the word "Sourpuss" would be encoded as "Uqwtrwuu." The original message can be recovered by "reencoding" it using the negative of the key

Write a program that can encode and decode Caesar ciphers. The input to the program will be a string of plaintext and the value of the key. The output will be an encoded message where each character in the original message is replaced by shifting it key characters in the Unicode character set. For example, if ch is a character in the string and key is the amount to shift, then the character that replaces ch can be calculated as: chr(ord(ch) + key).

Reference no: EM131302395

Questions Cloud

Different type of conflict at a workplace : Read an article or two about different type of conflict at a workplace and give your opinion on what you think about them. Glaring example should be taken from your experience on such conflicts. Your standard is important at the end.
Examine the web pages of a sample of large firms : Examine the web pages of a sample of large firms (such as those listed by fortune in its annual ranking of best companies to work for ) and see if you can identify a particular set of social responsibility programs that involve HR policies
Distance between the centers of co channel cells : Determine the smallest allowable physical distance between the centers of co-channel cells if N = 4 reuse is used, and each cell has a radius of 2 km.
Discuss three ways author uses evidence to support assertion : Provide a brief summary of the argument presented in the article. Identify and discuss three ways the author uses evidence to support assertions.
Write a program that can encode and decode caesar ciphers : Expand your solution to the previous problem to allow the calculation of a complete name such as "John Marvin Zelle" or "John Jacob Jingleheimer Smith." The total value is just the sum of the numeric values of all the names.
What is the conversion ratio of the debenture : Maple Aircraft has issued a convertible subordinated debenture at 6.00% interest due 2020. The conversion price is $64.00 and the debenture is callable at 104.00% of face value. The market price of the convertible is 89.25% of face value, and the pri..
Identify one further implication of each of the arguments : Identify and discuss one further implication of each of those arguments. Assuming the author is "right," what sorts of claims or facts would follow from that argument?
How good is the relationship with the sponsor or customer : What degree of change will the new project introduce into user areas and business procedures? How many distinct user groups does the project need to satisfy? With how many other systems does the new project or system need to interact? Does the org..
Write a program to draw a quiz score histogram : For example, if 15 students got an 8, then the height of the bar for 8 should be 15. Hint: use a list that stores the count for each possible score.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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