Secret messege in java

Your boss has come to ask for your help with another task. She would like you to write a simple program that encodes and decodes “secret messages” which she plans to demonstrate to elementary school students to kindle their interest in Computer Science.The encoding/decoding scheme is very simple. Each letter is substituted by some other letter according to a given mapping as shown below. DO NOT CHANGE THE FOLLOWING STRING

String letters = "abcdefghijklmnopqrstuvwxyz";

String enc = "kngcadsxbvfhjtiumylzqropwe";

For example, every 'a' becomes a 'k' when encoding a text, and every 'k' becomes an 'a' when decoding.

You will write a program, SecretMessage.java, which asks the user whether they would like to encode or decode a message, and then encodes or decodes the message using the mapping above.Capital letters mapped the same way as the lower case letters above, but remain capitalized.For example, every 'A' becomes 'K' when encoding a text and every 'K' becomes an 'A' when decoding. Numbers and other characters are not encoded and remain the same. The program repeatedly asks the user for input until the user quits.

Below is one run of the program:

Enter 1 to encode, 2 to decode, 3 to quit: 1 Enter the text to encode: Santa Monica College Spring 2014 Lktzk Jitbgk Gihhasa Luybts 2014 Enter 1 to encode, 2 to decode, 3 to quit: 1 Enter the text to encode:programming is fun uyisykjjbts bl dqt Enter 1 to encode, 2 to decode, 3 to quit: 2 Enter the text to decode: Lktzk Jitbgk Gihhasa Luybts 2014 Santa Monica College Spring 2014Enter 1 to encode, 2 to decode, 3 to quit: 3 Good bye