Write program to decodes messages using caesar cypher

Assignment Help Programming Languages
Reference no: EM1370196

Create a program that decodes messages. The messages will be encoded using a Caesar cypher, with each letter being decoded by replacing it with the previous letter in the 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: EM1370196

Questions Cloud

Define total profit as difference in total revenue and cost : Define Q to be level of output produced and sold, and suppose that the firm's cost function is given by the relationship;
Determining non-value added costs : Jet Set Travel, Inc. (JTI) has been hugely successful in the distribution of stylish, comfortable shoes for travel. Please describe how non-value added costs can damage the company, it sales, it costs, and it's value chain
Example for increasing returns to scale : Give one business example for increasing returns to scale and decreasing returns to scale respectively. How does this characteristic affect its business strategies? Justify your arguments.
Explain an intervention that will improve the situation : Explain an intervention that will improve the situation in trauma orthopaedic care. This could include delivering outcomes such as improved patient care and reduced length of stay in hospital.
Write program to decodes messages using caesar cypher : Write a program which decodes messages. Messages will be encoded using Caesar cypher, with each letter being decoded by replacing it with the previous letter in the alphabet.
Determining price of labor and capital : Given production function Q= 100(L^0.5)(K^0.5), where L = labor hours per unit time, K=machine hours per unit time, and Q=output per unit time.
Workplace effectivene with an employee assistance program : Review the definition of an Employee Assistance Program and learn the scope of services that can be offered. From your own experiences in the workplace,
Return on investment and glod price : Roi resources currently have an unused gold mine. Mine was shut down four years ago due to depressed price of gold. However ROI are considering re-opening the mine.
Determining the cost of production : A fashion firm manufactures outfits using two inputs, design skills (L) and expensive materials (M). The cost of fabrication is small and might be ignored as a first approximation.

Reviews

Write a Review

Programming Languages Questions & Answers

  Create unix shell script to input number of hours worked

Create a Unix shell script to input number of hours worked and pay rate and compute the total pay, then the social security amount (assume 5%), then the net pay.

  Design a benefits election system

Individual project for this course is in form of Service Request from Huffman Trucking. It is essential for student to access Service Request: SR-ht-001. Design a Benefits Election System.

  Advantages of using invisible html table to create web page

What advantages do you see in using an invisible HTML table to structure an entire Web page? What disadvantages does the table structure pose?

  Program a maze-type game using assembly language

Project requires you to program a maze-type game using Assembly Language, it is not acceptable to use any other programming language for this project

  Design and implement set of classes to model employees

Design and implement a set of classes to model the employees of a hospital: doctor, nurse, administrator, etc. Include methods in each class.

  Different class maintain programming programs are organized

It allows different classes to maintain programming so that programs are kept more organized. Object orientation also allows a programmer to use the same objects in different programs. Response?

  Create e-r diagram for sell and buy of antiques

Create E-R diagram for following situation (state any assumptions you believe you have to make to develop diagram): XYZ Antiques buys and sells one-of-a kind antiques of all kinds

  Write a program that will use the four sorting algorithm

Write a program that will use the four sorts (Selection sort, Heap Sort, Quicksort and Merge Sort). Each of the four sorts should be TIMED on three different lists of integers.

  Advantages and disadvantages for windows login

The Windows login can be a user or a group with users defined to the group. What do you think the advantages and disadvantages are for each type?

  Find largest number in array

Find the largest number in the array and output the result. use a subprogram to input the numbers, a function to use the largest number.

  Learn redirecting standard output

Learn redirecting standard output (stdout) to a file using the output redirection operator

  Smallest and largest values in element floating-point array

Copy 11-elemts array source into first portion of 34-element array sourceCopy. Find out the smallest and largest values in 99-Element floating-point array data.

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