Question: In java please Write a program called Caesar that encodes messages using an improved Caesar cipher. As in the previous problem, the user should be

 In java please Write a program called Caesar that encodes messages

In java please

Write a program called Caesar that encodes messages using an improved Caesar cipher. As in the previous problem, the user should be prompted for the number of positions to shift and a message to encode. For this version, however, shifting beyond the end (or beginning) of the alphabet wraps around to the beginning (or end). For example, a shift of 3 would map A to D, B to E, and Y to B. And a shift of -3 would map A to X, B to Y, and Y to V. You can assume that only capital letters need to be shifted and that other characters will not be changed. Example 1 Enter shift: 4 Enter message: HELLO WORLD Encoded message: LIPPS ASVPH Example 2: Enter shift: 1 Enter message: IBM 9000 Encoded message: HAL 9000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!