Design program to ecode message using caesar cypher

Assignment Help Programming Languages
Reference no: EM1347775

Q1) Design a program which decodes messages. Messages will be encoded using Caesar cypher, with each letter being decoded by replacing it with previous letter in alphabet. (Supposedly, this was invented by Julius Caesar.)

The message: J MPWF KBWB would be decoded as I LOVE JAVA.
Offer the user a menu with the following choices:

1. Decode a message.
2. Display the alphabet.
3. Exit the program.

If the user selects option 1, prompt the user to enter an encoded phrase or sentence of text. Convert it to uppercase. Decode it. Print out each decoded letter as you convert it.

If the user selects option 2, display the alphabet on the monitor screen.

If the user selects option 3, the program should terminate.

Your program should redisplay the menu after each translation is finished.

Each task should be in its own method: load the data, display the menu, read the data/phrase entered at the keyboard, translate the encoded message, display the alphabet.

Your program must also handle the spaces between the words. Do not use or anticipate any punctuation in the input. Use my examples for test data.

Encoded Message
J mpwf Kbwb
Uijt jt gvo
Kbwb jt nz gbwpsjuf
Decoded Message
I LOVE JAVA
THIS IS FUN
JAVA IS MY FAVORITE

Reference no: EM1347775

Questions Cloud

Find out the magnitude and direction of the impulse : what happens to light of a particular frequency when it is incident upon the material that natural frequency is the same as the frequency of the light.
Find the evaluate training programs : What motivation do companies have to evaluate training programs and how would evaluation help the company reach its long term goals?
Objective questions based on inflation rate : If the inflation rate in US is greater than the inflation value in Britain, other things held steady, the British pound will:
Advertising budget : Suppose you're a field marketing professional, responsible for marketing your company's products in South Florida region of medium-size corporation. One day you receive the CD from your corporate marketing group (based in Detroit, Michigan) which ..
Design program to ecode message using caesar cypher : Design a program which decodes messages. Messages will be encoded using Caesar cypher, with each letter being decoded by replacing it with previous letter in alphabet.
What is the velocity of the suspended mass : A single slit has a width of 2.1x10^(-6)m and is used to form the diffraction pattern. Find out the angle that locates the second second dark fringe when the wavelength of the light is 430 nm.
Explain how much will real gdp change : explain how much will real GDP change. Explain how the concept of comparative advantage was relevant to the trade negotiations.
Determine the weighted mean of probability distribution : The potential investment has the given range of possible outcomes and probabilities: 10 percent probability of a -20 percent return, 40 percent probability of a 15 percent return, 40 percent probability of a 25 percent return, Determine the weighted ..
Elucidate from a financial point of view why a firm : Elucidate from a financial point of view why a firm might want to stay in business in the short run when total revenue is below total costsElucidate from a financial point of view why a firm might want to stay in business in the short run when tota..

Reviews

Write a Review

Programming Languages Questions & Answers

  Ruby program that continuously reads in number

Write down Ruby program that continuously reads in number, x, from screen, and then calculates and displays its: factorial, if x is less than 15.

  Create child processes

Create child processes

  Program to inputs four numbers and graphs them as pie chart

Write down a program which inputs four numbers and graphs them as pie chart.

  Explaining exception handling using program

Use exception handling appropriately. Use comments to illustrate the various concepts applied / utilized in the solution.

  What is the throughput of the system

what is the throughput of the system

  Explaining the situation in program

Which of the following best explains the situation after Line 1 has been executed?

  Program to print chains of numbers within a range

Write a program to print the chains for the numbers within a range that the user specifies.

  Accuracy and completeness of computations

Analysis right and you have to develop a plausible argument to "prove" that your analysis is correct

  Program to simulate rolling one die

Write a program which simulates rolling one die using the following steps: Prompt the user for the number of sides on the die.

  Two-level memory cache hierarchy

Explain how you would pipeline the four following pairs of statements.

  Program to print total balances forward and total withdrawal

At the end of report, print total balances forward, total deposits, total interest earned, total withdrawals and total final account balances.

  Recursive method to read in string of characters

Trying to write a recursive method that reads in a string of characters and checks to see if the first character is either a 'D' or and 'E', then is followed by a string of one or more 'F's.

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