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

  What can data mining do to help tej electronics

What can data mining do to help Tej Electronics? From the example in the case, do you think Tej be more likely to use rool up or drill down navigation? Why?

  Example about susan the sql programmer

Read the case example about Susan the SQL Programmer on page 6-1 of the Ethical Hacking and Countermeasures: Web Applications and Data Servers textbook.

  What normal form is the relation

If no multivalued attributes exist and no partial dependencies exist in a relation, what normal form is the relation?

  Assignment- quantifying risk and its impact

Assignment: Quantifying Risk and Its Impact, Assignment Instructions: Review the risk events identified in the Gauchito Project Plan in Doc Sharing. Using the Gauchito risk events as an example, make a list of at least ten risk events to your proje..

  Discussion of film story

Identify the film's genre and whether or not it was typical or atypical of its genre. Include a discussion of the film's story in your discussion of the film's genre.

  Components off the shelf in software development

There is a shift to Components off the shelf in software development. What are these and what advantages do they have software engineering.

  What types of threats does the tool mitigate

Research various security tools that an employee can use to keep his or her data safe or to thwart denial of service attacks.

  Latest software and technology

Research the latest software and technology trends surrounding 3D printers. Focus your research on the growth of the 3D printing market. Be prepared to discuss.

  Word-processing program while running windows

Imagine that every time you try to use your word-processing program while running Windows 7, your system slows down or freezes. Which Windows monitoring tool (Windows Task Manager

  Determine the condition for convergence of the algorithm

Determine the condition for convergence of the algorithm in the mean-square sense.

  Mobile computing security

What are some of the current trends organizations face with mobile computing security and what are some of the remediation steps companies take to ensure data confidentiality and integrity?

  What information is required to setup a new account

What information is required to setup a new account, what category information is collected by the site

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