Question: You are an entry-level programmer at a small start-up software company that serves as contractors for larger software security companies. As a new comer to

You are an entry-level programmer at a small start-up software company that serves as contractors for larger software security companies. As a new comer to the company, your team lead has assigned to you the task of encrypting text that will be later used in passwords for some of the companys software clients. Your team lead has given to the following criteria for developing and implementing your code in Java:

1. The text entered must contain six characters only

2. Ask the user to input any six (6) characters from the keyboard:

-a. If any digit (0 9) entered is represented by an even ASCII decimal value then encrypt this digit to its ASCII decimal value equivalent

-b. If any digit (0 - 9) entered is odd then encrypt this digit by shifting (increasing) this digit by 2.

-c. All other input should by encrypted by shifting (increasing) the input by 4.

ASCII Table - https://www.cs.cmu.edu/~pattis/15-1XX/common/handouts/ascii.html

Execution

1. Input program must ask the user to input the six character code

2. Logic program must allow the user to continue to input codes until he/she chooses to terminate the program.

3. Output the program must display:

-a. The original code

-b. The newly created code to the screen:

---i. Even digits should be represented by their ASCII decimal value equivalent.

---ii. Odd digits should be shifted by 2.

---iii. All other input should be shifted by 4.

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!