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

d. DO NOT FORGET TO INCLUDE SIGNIFICANT DOCUMENTATION!

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.

This is a sample execution of a program once it is compiled and executed.

You are an entry-level programmer at a small start-up software company that

G File: lester.cynthiajava CAu File Edit View Build Project Settings Tools Window Help SC 2920 Summer 201Programming Assignment-iGRASp CSD (Java) Compile Messages jGRASP Messages Run /OInteractions Please input your six digit code. End Clear Help The orginal code is: 1 2 3 45 6 The new code is 3 50 5 52 7 54 Would you like to continue (Y/y)? Please input your six digit code. The orginal code is: PkJ hm y The new code is: T o N 1 q Would you like to continue (Y/y)? Please input your six digit code. 1 The orginal code is: Re 1 2 3 4 The new code is: V i3 50 5 52 Would you like to continue (Y/y)? ELIStatus: running user program Line :57 Col:49 Code : 111 Top:40 0VSBLK

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!