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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started